This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/htmlarea/htmlarea_loader.js
2005-06-23 00:10:03 +00:00

29 lines
1.0 KiB
JavaScript

_editor_url = "../htmlarea/";
_editor_lang = "en";
document.writeln('<script type="text/javascript" src="../htmlarea/htmlarea.js"></script>');
function initDocument() {
config = new HTMLArea.Config();
config.toolbar = [
[ "bold", "italic", "underline", "strikethrough", "separator",
"copy", "cut", "paste", "space", "undo", "redo", "separator",
"justifyleft", "justifycenter", "justifyright", "justifyfull", "separator",
"orderedlist", "unorderedlist", "outdent", "indent", "separator",
"forecolor", "hilitecolor", "separator",
"inserthorizontalrule", "createlink", "inserttable" ]
];
config.width = 700;
var editor = new HTMLArea("editor",config);
editor.config.pageStyle = "@import url(../application.css);";
editor.registerPlugin(DynamicCSS);
editor.generate();
HTMLArea.replace("editor2", config);
}
onload = function() {
HTMLArea.loadPlugin("DynamicCSS");
HTMLArea.init();
HTMLArea.onload = initDocument;
}