wysihtml5 icon indicating copy to clipboard operation
wysihtml5 copied to clipboard

Source view documentation?

Open emsal0 opened this issue 10 years ago • 1 comments

On http://wysihtml.com/, the example text editor has a "show source" button that shows the HTML source of the editor. However, the wiki doesn't show how I can implement this in my own wysihtml editor.

More than a code issue, this is a documentation issue more than anything else.

emsal0 avatar Feb 25 '15 17:02 emsal0

Add an anchor inside your toolbar that contains these attributes:

<a href="javascript:;" data-wysihtml5-action="change_view">html</a>

harrybailey avatar Jan 23 '16 13:01 harrybailey