You are not logged in.
Pages: 1
Hello,
Although, this is not the HTMLarea forum, I hope to get some help here:
Does anybody know how I apply a css to the editor area in HTMLarea?
Thank you for your help.
Offline
use config.pageStyle
Niko
Offline
thanks for getting back to me - tried it, but doesn't seems to have an impact at all????
this is what I have:
<script type="text/javascript">
_editor_url = "/dev/wysiwyg/htmlarea/";
_editor_lang = "en";
</script>
<script type="text/javascript" src="htmlarea/htmlarea.js"></script>
<script type="text/javascript" >
HTMLArea.loadPlugin("ImageManager");
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("ContextMenu");
HTMLArea.loadPlugin("ibrowser");
</script>
<script type="text/javascript">
var editor = null;
function initEditor() {
editor = new HTMLArea("ta");
var config = new HTMLArea.Config();
editor.config.toolbar = [
[ "formatblock", "space",
"bold", "italic", "underline", "strikethrough", "separator",
"subscript", "superscript", "separator",
"copy", "cut", "paste", "space", "undo", "redo",
"orderedlist", "unorderedlist", "separator",
"inserthorizontalrule", "createlink", "insertimage", "inserttable", "htmlmode"]
];
editor.config.width = '620px';
editor.config.height = '440px';
editor.config.pageStyle = 'plugins/ibrowser/css/style.css';
editor = new HTMLArea("ta");
editor.registerPlugin(TableOperations);
editor.registerPlugin(ContextMenu);
editor.registerPlugin(ibrowser);
setTimeout(function() {
editor.generate();
}, 500);
return false;
}
</script>
</head>
<body onload="initEditor()">
Offline
write
editor.config.pageStyle = '@import url(plugins/ibrowser/css/style.css);'
that one should work
....but you are creating new HTMLArea("ta") twice in your code!
please follow the NewbieGuide or you might get trouble
Niko
Offline
got it to work - thank you
had to take out the orderered and unordered list, but that's o.k.
Offline
Pages: 1