Adding support for new GetHtml plugin

This commit is contained in:
julmis 2006-03-06 07:44:35 +00:00
parent 4773034906
commit 515e6eccbe

View File

@ -88,7 +88,7 @@ function HTMLArea(textarea, config) {
var scripts = HTMLArea._scripts = [ _editor_url + "htmlarea.js",
_editor_url + "dialog.js",
_editor_url + "popupwin.js",
_editor_url + "lang/" + _editor_lang + ".js" ];
_editor_url + "plugins/GetHtml/get-html.js" ];
var head = document.getElementsByTagName("head")[0];
// start from 1, htmlarea.js is already loaded
for (var i = 1; i < scripts.length; ++i) {
@ -575,6 +575,9 @@ HTMLArea.prototype._createStatusBar = function() {
// Creates the HTMLArea object and replaces the textarea with it.
HTMLArea.prototype.generate = function () {
var editor = this; // we'll need "this" in some nested functions
try {
editor.registerPlugin(GetHtml);
} catch (e) {}
// get the textarea
var textarea = this._textArea;
if (typeof textarea == "string") {