Oscar Godson
Oscar Godson
Ugh, yeah. This is probably because we strip out everything on paste so it doesn't paste formatted HTML. Looks like we're ripping out spaces too, but maybe we can preserve...
Right now there isn't really a good way of doing these types of extensions. There's a ticket for this here tho: https://github.com/OscarGodson/EpicEditor/issues/33 However, we do have some APIs like `getElement`...
Not totally sure what you're stuck on exactly. Originally you said you weren't going to touch the editable body? Again, I'd suggest against touching that for anything that's _not_ meant...
That code above is old and exactly what the textarea option I mentioned above does. You can manually sync the other way, but im not sure why. It'd help to...
Ah didnt mean to close it and comment yet. Stupid web app on a phone... hold on. Updating my post.
OK, updated my answer
Underscores are private methods. I would highly advise against using those since they aren't tested, can be ripped out or changed at anytime and aren't supported.
Triggering an update event should do that. If not that's probably a bug.
I'd love to see this also for sure, but probably as an extension. Both of these things would be super simple, but so far the majority of implementations I've seen...
jQuery has a .text method right? Could you simply get the html with exportFile(name, 'html') and get the text of it with jQuery?