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:
Is CSS dependant on TableOperations?


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.

 


cs7ac
New User

Nov 4, 2004, 3:13 PM

Post #1 of 2 (6302 views)
Shortcut
Is CSS dependant on TableOperations? Can't Post

Hi,

Here is my set up, when I delete the loadPlugin or the registerPlugin for TableOptions, it breakes.

Thanks,
Anthony.

<script type="text/javascript">
_editor_url = "/htmlarea/";
_editor_lang = "en";
</script>

<script type="text/javascript" src="/htmlarea/htmlarea.js"></script>

<script type="text/javascript">
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("CSS");
</script>

<script type="text/javascript">
function initEditor() {
// inititalize editor
editor = new HTMLArea("editor");
// retrive the config object
var config = editor.config;
// add custom configuration
config.toolbar = [
[ "bold", "italic", "underline", "separator",
"copy", "cut", "paste", "separator", "textindicator",
"separator", "createlink", "separator"]
];

config.pageStyle = "@import url(http://www.mysite.co.uk/main.css);";

//register plugins

editor.registerPlugin(TableOperations);

editor.registerPlugin(CSS, {
combos : [
{ label: "Colour",
// menu text // CSS class
options: { "None" : "",
"Blue" : "blue",
"Red" : "red",
"Green" : "green",
"Yellow" : "yellow"
}
}
]
});

editor.generate();
}
</script>

</head>
<body onload='initEditor()'>


kimastergeorge
Novice

Nov 4, 2004, 6:10 PM

Post #2 of 2 (6298 views)
Shortcut
Re: [cs7ac] Is CSS dependant on TableOperations? [In reply to] Can't Post

Well... if you remove the loadPlugin but not the registerplugin, You'll get an error. However if you leave the loadplugin it'll be fine. Also, you have one to many closing curly brace ("}") after the options thing.

 
 
 


Search for (options)