You are not logged in.
Pages: 1
I used HTMLArea 3.x for some time before switching to Xinha, and am having some trouble doing what I want to do: I have a custom tool-bar, but I now want to use the TableOperations plugin, but only use SOME of the toolbars from it.
How I'm using Xinha is I'm loading the .js lib, then setting up a custom config with new HTMLArea.Config(). For that config I defined the toolbar. When I go to convert a textarea to Xinha, I use HTMLArea.replace('IDOfTextArea',myHTMLAreaConfig).
How do I Register a plugin for the HTMLArea this way, and how can I customise my toolbar to use some, but not all, of the plugin's features? I've tried calling registerPlugin(), but HTMLArea.replace seems to return "false", rather than the editor object.
I'm currently using a nightly build from May 25th...
Thanks.
Offline
It's not possible to use just some features of a plugin (well, not of TableOperations), you would have to make a copy of TableOperations and modify it. For usage directions see the Newbie Guide.
James Sleeman
Offline
That's a shame. I've grown accustomed to customising the toolbar from the base set of operations...
Offline
I've managed to do it fairly simply by redefining TableOperations.btnList with just the buttons I want, after the Plugin is loaded, but before the Editor is set up.
And while I'm talking about Table functions: Any chance the Popup for Insert Table could be changed to assume no values? I'd rather use CSS to control tables, so all the defaults for width, borders, padding, etc, just clutter up the code. I've edited my own Popup to default to blank values, but I'm wondering if there's any reason to have default non-zero values...
Offline
Dortamur: I don't like those table popups either, waaay to complicated for the average joe. Sometime in the future a simplified table operations plugin will be made.
I have done this - restructured TableOperations to use the same architecture as the other plugins. It's got a bit of stuff in it that is custom for my application. When I get a spare minute I'll strip that stuff out and post my code.
Offline
Pages: 1