Run commands
Buttons outside the editor run its commands on the current selection.
The PHP for this demo
var editor = PhpHtmlEditor.get('Editor1');
editor.execCommand('bold');
editor.insertHTML('<em>text</em>');
Buttons outside the editor run its commands on the current selection.
var editor = PhpHtmlEditor.get('Editor1');
editor.execCommand('bold');
editor.insertHTML('<em>text</em>');