Commit 592af108 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Edit site page fix for normal textarea boxes.

parent 31e8418c
......@@ -112,9 +112,6 @@ function contentSaved () {
}
function onLoad() {
originalcontent = getEditorContent();
requestPageText();
connect('pagename', 'onchange', requestPageText);
if (typeof(tinyMCE) != 'undefined') {
setEditorContent = function (c) {
tinyMCE.setContent(c);
......@@ -123,12 +120,12 @@ function onLoad() {
getEditorContent = tinyMCE.getContent;
}
else {
setEditorContent = function (c) {
$('pagetext').innerHTML = c;
$('pagetext').focus();
};
getEditorContent = function () { return $('pagetext').innerHTML };
setEditorContent = function (c) { $('pagetext').value = c; };
getEditorContent = function () { return $('pagetext').value; };
}
originalcontent = getEditorContent();
requestPageText();
connect('pagename', 'onchange', requestPageText);
}
addLoadEvent(onLoad);
......
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