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:
using table add-on together with customised toolbar


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.

 


chh
Novice

Jun 12, 2004, 1:08 AM

Post #1 of 5 (2980 views)
Shortcut
using table add-on together with customised toolbar Can't Post

I tried to figure out how to use my own configuration (as described in the reference.html) together with the table add-on. The problem as it appears to me: While a customised toolbar is implemented by HTMLArea.replace('id', config) all the add-ons I have seen in the examples are using editor.generate(), which seem to be exclusive to each other.

How is it possible to implement both at the same time. And if it is possible, are there any examples?


hubertus
User

Jun 12, 2004, 2:31 AM

Post #2 of 5 (2978 views)
Shortcut
Re: [chh] using table add-on together with customised toolbar [In reply to] Can't Post

Hi,

Use:

Code
 		editor = new HTMLArea('id', config); 
// register the plugins
editor.registerPlugin("TableOperations");
editor.generate();


Hubertus
----------------------
CMS with HTMLArea (Username: testuser Password: test):
http://www.sundes.de/sundes_wcg/
HTMLArea direct(choose "Textinhalt"):
http://www.sundes.de/cgi-bin/sundes_wcg/egert.pl?layout&kundendir=gastzugang&idlog=RMNaNcMRMcLa2NP

http://www.sundes.de - http://www.hubertus-egert.de


chh
Novice

Jun 12, 2004, 5:48 AM

Post #3 of 5 (2974 views)
Shortcut
Re: [hubertus] using table add-on together with customised toolbar [In reply to] Can't Post

Hi

I tried this. But then if I use editor.generate() the editor displays the plugin but not my customised toolbar made with config.toolbar = [..] but instead the default toolbar since I used editor.generate() and not HTMLArea.replace('id', config).

Is there a way to use both customized toolbars and the plugin?

charly


hubertus
User

Jun 12, 2004, 12:58 PM

Post #4 of 5 (2964 views)
Shortcut
Re: [chh] using table add-on together with customised toolbar [In reply to] Can't Post

Hi,

you have two possibilities:

Code
 		config = new HTMLArea.Config(); 
config.toolbar = [.];
editor = new HTMLArea('id', config);
// register the plugins
editor.registerPlugin("TableOperations");
editor.generate();

or

Code
 		editor = new HTMLArea('id'); 
editor.config.toolbar = [.];
// register the plugins
editor.registerPlugin("TableOperations");
editor.generate();


Hubertus
----------------------
CMS with HTMLArea (Username: testuser Password: test):
http://www.sundes.de/sundes_wcg/
HTMLArea direct(choose "Textinhalt"):
http://www.sundes.de/cgi-bin/sundes_wcg/egert.pl?layout&kundendir=gastzugang&idlog=RMNaNcMRMcLa2NP

http://www.sundes.de - http://www.hubertus-egert.de


chh
Novice

Jun 13, 2004, 4:33 AM

Post #5 of 5 (2947 views)
Shortcut
Re: [hubertus] using table add-on together with customised toolbar [In reply to] Can't Post

Thanks for your help Hubertus. I could not get the table plugin in concert with my own toolbar configuration running either way you proposed. When I decided to make the toolbar modification in htmlarea.js itself by "//-out" the default toolbar-config, where required, it worked.

Strolling across the code I got aware that it wouldn't be easy (for me) to e.g. enable it doing customized image import (read the directory-content with php and dynamically enrich the js-code with a form select widget (using php).

Kevin Roths RichTextEditor (see http://www.kevinroth.com/rte/demo.htm ) is much easier in this respect because it is less object oriented (is this paradox?) and less complex so I probably go this way.
-other pros: writes clean(er) code, multi step undo for all functions, very lightweight, very reliable (no unfinished loading), really cross OS and crossbrowsing.
-cons: no table handling (until now), smaller community than htmlarea.

HTMLArea is great, so I stay tuned anyway

Charly


(This post was edited by chh on Jun 13, 2004, 4:37 AM)

 
 
 


Search for (options)