Commit aa4a2ef8 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Disable change page check for IE in edit site pages (see bug 3201)

parent 1547093f
......@@ -15,7 +15,10 @@ function updateWYSIWYGText() {
$('editsitepage_pagename').value = oldPageName;
return;
}
checkOldContent = true;
if (!tinyMCE.isMSIE) {
// Disable changed content check for IE (see below)
checkOldContent = true;
}
sendjsonrequest(
'editchangepage.json.php',
{'pagename' :$('editsitepage_pagename').value},
......@@ -36,7 +39,12 @@ function connectElements() {
function contentSaved(form, data) {
connectElements();
oldPageContent = tinyMCE.getContent();
if (!tinyMCE.isMSIE) {
// Disabling changed content check for IE; Need to work out
// why the getBody() call in getContent fails to return the
// body element.
oldPageContent = tinyMCE.getContent();
}
formSuccess(form, data);
}
......
......@@ -100,9 +100,11 @@ function pieform_element_wysiwyg_get_headdata() {
. "\nPieformManager.connect('onload', null, function() {\n";
foreach ($_PIEFORM_WYSIWYGS as $editor) {
$result .= " tinyMCE.execCommand('mceAddControl', false, '$editor');\n";
$result .= " tinyMCE.execCommand('mceFocus', false, '$editor');\n";
}
$result .= "});\nPieformManager.connect('onreply', null, function() {\n";
foreach ($_PIEFORM_WYSIWYGS as $editor) {
$result .= " tinyMCE.execCommand('mceFocus', false, '$editor');\n";
$result .= " tinyMCE.execCommand('mceRemoveControl', false, '$editor');\n";
}
$result .= "});</script>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment