Comments (5)
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.
Can you give us a more detailed example, please.
from line-control.
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.
$("#placeHolder").Editor("setText", "Hello")
from line-control.
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)
- How I can disable editing HOT 2
- Line Control (Insert link, image and table) HOT 2
- How to get current/last cursor position if focus is outside the editor.
- Update
- Can't use text Editor HOT 2
- styling issue HOT 1
- Resize while uploading an image HOT 2
- How to "Paste as Plain Text" HOT 1
- I want to add some features to the "Image Attributes" edit page HOT 2
- Table is not re-edit
- Allow Line Control Editor to Support Tabbing HOT 1
- using MathJax.js for displaying formulas
- Enter/return/newline is not working
- How to detect input event changes in the textarea of editor ?
- Problem restoring to editor after pasting any text and saving it to database
- About erasing the space between two HTML tags
- URL in the image is not removed
- How to show beautiful html code in source code viewing area? HOT 2
- Viewing Text in Editor displays everything in Bold including the Font, Formatting and Font Size Buttons .
- How can I hide the toolbar? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from line-control.