htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Add-Ons:
Problem with TableOperations Plugin


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


pascal
New User

Apr 15, 2004, 2:10 PM

Post #1 of 1 (10622 views)
Shortcut
Problem with TableOperations Plugin Can't Post


Code
var dialog = new PopupWin(this.editor, i18n["Table Properties"], function(dialog, params) {


I have an error at the line on top. he seys that PopupWin is not defined. i included the script like this:

Did it with PHP


Code
 
$ret .= '<textarea id="'.$textarea_name.'" cols="40" rows="6" name="'.$textarea_name.'">'.$value.'</textarea>';

$ret .= '<script type="text/javascript" src="inc/htmlarea/htmlarea.js"></script>
<script type="text/javascript" src="inc/htmlarea/dialog.js"></script>
<script type="text/javascript" src="inc/htmlarea/lang/en.js"></script>
<script type="text/javascript" src="inc/htmlarea/plugins/TableOperations/table-operations.js"></script>
<script type="text/javascript" src="inc/htmlarea/plugins/TableOperations/lang/en.js"></script>';


$ret .= '<script type="text/javascript">

editor = new HTMLArea("'.$textarea_name.'");

// register the TableOperations plugin with our editor
editor.registerPlugin("TableOperations");

var config = editor.config;
config.imgURL = "inc/htmlarea/images/";
config.popupURL = "inc/htmlarea/popups/";
config.width = \''.$width.'px\';
config.height = \''.$height.'px\';


editor.generate();


</script>';


Also the images were not shown until i changed this line


Code
cfg.registerButton(id, tt[id], "plugins/TableOperations/img/" + btn[0] + ".gif", false,


to


Code
cfg.registerButton(id, tt[id], "inc/htmlarea/plugins/TableOperations/img/" + btn[0] + ".gif", false,


thanx a lot (the tool is sooooo cool)


(This post was edited by pascal on Apr 15, 2004, 2:11 PM)

 
 
 


Search for (options)