Weitere old initializers entfernt.
git-svn-id: https://svn.libreccm.org/ccm/trunk@793 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
b1f3f53081
commit
4587d20352
|
|
@ -174,10 +174,12 @@ public final class CMSConfig extends AbstractConfig {
|
||||||
* DHTML Editor Configuration for use in CMS module, lists the
|
* DHTML Editor Configuration for use in CMS module, lists the
|
||||||
* config object name and Javascript source location for its definition.
|
* config object name and Javascript source location for its definition.
|
||||||
*/
|
*/
|
||||||
private final Parameter m_dhtmlEditorConfig = new DHTMLEditorConfigParameter("com.arsdigita.cms.dhtml_editor_config",
|
private final Parameter m_dhtmlEditorConfig =
|
||||||
Parameter.REQUIRED,
|
new DHTMLEditorConfigParameter(
|
||||||
new DHTMLEditor.Config("XinhaConfig",
|
"com.arsdigita.cms.dhtml_editor_config",
|
||||||
"/assets/xinha/CCMcmsXinhaConfig.js"));
|
Parameter.REQUIRED,
|
||||||
|
new DHTMLEditor.Config("XinhaConfig",
|
||||||
|
"/assets/xinha/CCMcmsXinhaConfig.js"));
|
||||||
// previous parameter definition:
|
// previous parameter definition:
|
||||||
// > DHTMLEditor.Config.STANDARD); <
|
// > DHTMLEditor.Config.STANDARD); <
|
||||||
// didn't work because of broken unmarshalling (cf. similiar problem
|
// didn't work because of broken unmarshalling (cf. similiar problem
|
||||||
|
|
@ -192,7 +194,8 @@ public final class CMSConfig extends AbstractConfig {
|
||||||
* Defines which plugins to use, e.g.TableOperations,CSS
|
* Defines which plugins to use, e.g.TableOperations,CSS
|
||||||
* Format: [string,string,string]
|
* Format: [string,string,string]
|
||||||
*/
|
*/
|
||||||
private final Parameter m_dhtmlEditorPlugins = new StringArrayParameter("com.arsdigita.cms.dhtml_editor_plugins",
|
private final Parameter m_dhtmlEditorPlugins = new StringArrayParameter(
|
||||||
|
"com.arsdigita.cms.dhtml_editor_plugins",
|
||||||
Parameter.OPTIONAL,
|
Parameter.OPTIONAL,
|
||||||
null);
|
null);
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,20 @@ if(!Xinha.loadPlugins(xinha_plugins,xinha_init)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
xinha_config=xinha_config?xinha_config():new Xinha.Config();
|
xinha_config=xinha_config?xinha_config():new Xinha.Config();
|
||||||
|
//this is the standard toolbar for CCM, feel free to remove buttons as you like
|
||||||
|
xinha_config.toolbar =
|
||||||
|
[
|
||||||
|
["popupeditor"],
|
||||||
|
["separator","formatblock","bold","italic","underline","strikethrough"],
|
||||||
|
["separator","subscript","superscript"],
|
||||||
|
["separator","justifyleft","justifycenter","justifyright","justifyfull"],
|
||||||
|
["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
|
||||||
|
["separator","inserthorizontalrule","createlink"],
|
||||||
|
["separator","undo","redo","selectall"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite"]),
|
||||||
|
["separator","clearfonts","removeformat"],
|
||||||
|
["separator","htmlmode","showhelp","about"]
|
||||||
|
];
|
||||||
|
|
||||||
xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"];
|
xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"];
|
||||||
xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins);
|
xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins);
|
||||||
Xinha.startEditors(xinha_editors);
|
Xinha.startEditors(xinha_editors);
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ class AdminSplitPanel extends BoxPanel implements ChangeListener {
|
||||||
*
|
*
|
||||||
* @param p
|
* @param p
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void register(Page p) {
|
public void register(Page p) {
|
||||||
Assert.isUnlocked(this);
|
Assert.isUnlocked(this);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ public class InternalPrefixerServlet extends HttpServlet {
|
||||||
|
|
||||||
private String m_prefix;
|
private String m_prefix;
|
||||||
|
|
||||||
|
@Override
|
||||||
public void init()
|
public void init()
|
||||||
throws ServletException {
|
throws ServletException {
|
||||||
ServletConfig conf = getServletConfig();
|
ServletConfig conf = getServletConfig();
|
||||||
|
|
@ -79,6 +80,7 @@ public class InternalPrefixerServlet extends HttpServlet {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
protected void service(HttpServletRequest req,
|
protected void service(HttpServletRequest req,
|
||||||
HttpServletResponse resp)
|
HttpServletResponse resp)
|
||||||
throws ServletException,
|
throws ServletException,
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,20 @@ if(!Xinha.loadPlugins(xinha_plugins,xinha_init)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
xinha_config=xinha_config?xinha_config():new Xinha.Config();
|
xinha_config=xinha_config?xinha_config():new Xinha.Config();
|
||||||
|
//this is the standard toolbar for CCM, feel free to remove buttons as you like
|
||||||
|
xinha_config.toolbar =
|
||||||
|
[
|
||||||
|
["popupeditor"],
|
||||||
|
["separator","formatblock","bold","italic","underline","strikethrough"],
|
||||||
|
["separator","subscript","superscript"],
|
||||||
|
["separator","justifyleft","justifycenter","justifyright","justifyfull"],
|
||||||
|
["separator","insertorderedlist","insertunorderedlist","outdent","indent"],
|
||||||
|
["separator","inserthorizontalrule","createlink"],
|
||||||
|
["separator","undo","redo","selectall"], (Xinha.is_gecko ? [] : ["cut","copy","paste","overwrite"]),
|
||||||
|
["separator","clearfonts","removeformat"],
|
||||||
|
["separator","htmlmode","showhelp","about"]
|
||||||
|
];
|
||||||
|
|
||||||
xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"];
|
xinha_config.pageStyleSheets=[_editor_url+"examples/full_example.css"];
|
||||||
xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins);
|
xinha_editors=Xinha.makeEditors(xinha_editors,xinha_config,xinha_plugins);
|
||||||
Xinha.startEditors(xinha_editors);
|
Xinha.startEditors(xinha_editors);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue