suyati / line-control

A Light Weight HTML5 Text Editor designed as a JQuery Plugin
Other
124 stars 90 forks source link

How to get HTML source code in WYSIWYG LineControl #94

Open Rose8080 opened 6 years ago

Rose8080 commented 6 years ago

Hello everyone,

can u help me please, i want to get the HTML source code value from editor, but i always get nothing with this code

$("#txtEditor").Editor("getSource");

thank you

xOneca commented 6 years ago

getSource is for toggling source view:

getSource: //Function to show the html source code to the editor and toggle the text display.

Use getText to get the contents of the editor as a HTML string.

getText: //Function to get the source code.
Rose8080 commented 6 years ago

thanks bro for your solution. my problem solved.

and i have one question again, what code if i want to get the PLAIN TEXT from the Editor?

Thanks...