-
Notifications
You must be signed in to change notification settings - Fork 337
Functions and properties
After initiating the editor object var editor = new wysihtml5.Editor("wysihtml-textarea");
there are various functions available on the obtained editor object.
Parses and cleans the content of editor. Parameter rules is optional and if omitted uses rules provided at initiation. Custom rules parameter can be used for example for cleaning to plain text (using empty parser rules set):
editor.cleanup({tags: {}});
Returns current editor configuration parameters
Deactivate editor (make it readonly)
Activate editor disable previously by .disable()
Sets focus to editable area.
It returns the cleaned HTML content of editor.
var html = editor.getValue();
Attribute parse
can be set to false
to get the uncleaned content from editor. Default is true
.
Returns if content empty placeholder is visible.
Returns if wysihtml is supported in current browser.
Sets editor content to given html string.
Attribute parse
can be set to false
to bypass HTML cleanup on insertion. Default is true
.