Ability to replace entire content in HTMLEditorField JS API

This commit is contained in:
Ingo Schommer 2012-12-10 15:36:14 +01:00
parent 3c0bd405a1
commit b15b5cd115

View File

@ -106,6 +106,15 @@
selectNode: function(node) {
this.getInstance().selection.select(node);
},
/**
* Replace entire content
*
* @param String HTML
* @param Object opts
*/
setContent: function(html, opts) {
this.getInstance().execCommand('mceSetContent', false, html, opts);
},
/**
* Insert content at the current caret position
*