suyati / line-control

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

Remove formatting does not actually reset to the original format #102

Open toderesa97 opened 6 years ago

toderesa97 commented 6 years ago

The title says everything... Before writing or pasting nothing, I write:

``

. `` and executing ``console.log($("editor").Editor("getText");``, the app returns the expected output. But when pasting something from outside with a custom format and clicking the button of ``Remove Formatting`` the editor seems not to remove everything because what it is printed in the terminal is: ```
.
``` So I was wondering... If that is something the app does when an external source with a different format is loaded, how can I call the method of cleaning format programmatically? Is the app going to do this thing always? Thanks