GithubHelp home page GithubHelp logo

Documentation - How to? about line-control HOT 5 CLOSED

dottodot avatar dottodot commented on September 2, 2024
Documentation - How to?

from line-control.

Comments (5)

nmohanan avatar nmohanan commented on September 2, 2024

HI, We have a function called getText() this function will returns the contents inside the text editor, or you just call the $("#contentarea").html(); thus will get the textarea contents. We have another function called setText() this function sets the content inside the textarea.

from line-control.

alexramdesigner avatar alexramdesigner commented on September 2, 2024

Can you give us a more detailed example, please.

from line-control.

rgaba avatar rgaba commented on September 2, 2024

I wouldn't mind some additional documentation as well. I'm pulling the html from a mySql database and then using the built-in setText function to populate the text area. However, if the html in the database has a single or double quote, the function completely blows up. I'm now using php's htmlentities to convert the special characters to html, but now the text area is getting populated with html.

from line-control.

nmohanan avatar nmohanan commented on September 2, 2024

$("#placeHolder").Editor("setText", "Hello")

from line-control.

rgaba avatar rgaba commented on September 2, 2024

Thank you very much, this is a GREAT plugin! I also found what I was missing to get this to work in PHP, I had to do an addslashes to the html I was storing in the database. This way, any single or double quotes I had in my html would not break in the JavaScript.

from line-control.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.