Permalink
Browse files

Adding support for new GetHtml plugin

  • Loading branch information...
julmis
julmis committed Mar 6, 2006
1 parent 4773034 commit 515e6eccbee05d511bf5b6d6c7d2cb5767b67b97
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/editor/htmlarea/htmlarea.php
@@ -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 @@ function createButton(txt) {
// 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") {

0 comments on commit 515e6ec

Please sign in to comment.