tiff / wysihtml5

Open source rich text editor based on HTML5 and the progressive-enhancement approach. Uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.
http://xing.github.com/wysihtml5/
MIT License
6.49k stars 998 forks source link

fromComposerToTextarea and fromTextareaToComposer callbacks #268

Open ghost opened 12 years ago

ghost commented 12 years ago

It would be great if wysihtml5 could provide optionable callbacks before setting text to textarea and to composer this would allow to perform some additional operations on html / text.

Example usecase: a wysiwyg editor that produces markdown syntax instead of html

r043v commented 11 years ago

check my commit, it's not really the same case but can give you some inspiration, use the .on and .fire are really powerfull and easy to use

https://github.com/xing/wysihtml5/pull/272

ghost commented 11 years ago

thanks!

I'll check this out