add JS function for embedding FCKeditor; CSS fix
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3078 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
2fb6bddf8f
commit
1c014857d3
2 changed files with 18 additions and 2 deletions
|
@ -386,13 +386,13 @@ div.comment {
|
|||
/* dojo stuff */
|
||||
|
||||
.dijitDialog {
|
||||
background-color: #aaaaaaa;
|
||||
background-color: #aaaaaa;
|
||||
border: 1px solid #999;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.dijitDialogPaneContent {
|
||||
background-color: #aaaaaaa;
|
||||
background-color: #aaaaaa;
|
||||
}
|
||||
|
||||
.dijitDialog th {
|
||||
|
|
|
@ -189,3 +189,19 @@ function inlineEdit(id) {
|
|||
editor = new dijit.Editor({}, dojo.byId(id));
|
||||
}
|
||||
}
|
||||
|
||||
// FCKeditor stuff
|
||||
|
||||
function createFCKEditorInstance(fieldName, width, height) {
|
||||
var editor = new FCKeditor(fieldName);
|
||||
/*if (document.all) {
|
||||
editor.Config['ToolbarStartExpanded'] = false;
|
||||
}*/
|
||||
editor.BasePath = '/@@/fckeditor/';
|
||||
//editor.Config['SkinPath'] = editor.BasePath + 'editor/skins/office2003/';
|
||||
editor.Config['SkinPath'] = editor.BasePath + 'editor/skins/silver/';
|
||||
editor.ToolbarSet = 'Standard';
|
||||
editor.Width = width;
|
||||
editor.Height = height;
|
||||
editor.ReplaceTextarea();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue