Completed
Last Updated: 10 Nov 2014 13:13 by Elena
ADMIN
Rumen
Created on: 08 Jan 2013 07:52
Category: UI for ASP.NET AJAX
Type: Bug Report
1
Setting full HTML via the set_html method breaks the Undo functionality
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.
1 comment
Elena
Posted on: 10 Nov 2014 13:13
Not reproducible in Q3 2014.