if I set the editor content using set_html() method, it creates an undo point but when you click on undo (or call editor.fire('Undo'); ) undo icon becomes inactive but nothing happens to the content
function setHtmlTestCommand(commandName, editor, args) {
var html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
html += '<html xmlns="http://www.w3.org/1999/xhtml">';
html += "<p style='color:red;background-color:black;'>Test test test</p>";
html += "</html>";
editor.set_html(html)
};
The problem is due to that full HTML content is set in the content area.