06-24-2009 09:10 AM
editorConfig :
{
<#–
//YUI
// height: this.options.height + 'px',
// width: this.options.width + 'px',
// dompath: false, //Turns on the bar at the bottom
// animate: false, //Animates the opening, closing and moving of Editor windows
// markup: "xhtml",
// toolbar: Alfresco.util.editor.getTextOnlyToolbarConfig(this._msg),
–>
//Tiny MCE
theme:'advanced',
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,forecolor,backcolor",
theme_advanced_buttons2 :"bullist,numlist,|,outdent,indent,blockquote,|,alfresco-imagelibrary,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,removeformat",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_path : false,
theme_advanced_resizing : true,
theme_advanced_buttons3 : null,
language:'${locale?substring(0, 2)}'
},
The code seems all right, and according to Firebug my alfresco-imagelibrary adding is taken, but nothing new appears. Is there anything else to change in order to add this button?06-24-2009 10:06 AM
<@link rel="stylesheet" type="text/css" href="${page.url.context}/modules/simple-editor.css" />
<@script type="text/javascript" src="${page.url.context}/modules/simple-editor.js"></@script>
3 - Change new Alfresco.util.RichEditor()
to Alfresco.util.createImageEditor()
and remove the first parameter.06-21-2012 08:32 AM
new Alfresco.BlogPostEdit("${args.htmlid}").setOptions(
{
siteId: "${page.url.templateArgs.site}",
editorConfig:
{
inline_styles: false,
convert_fonts_to_spans: false,
siteId: "${page.url.templateArgs.site}",
theme: "advanced",
theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,forecolor",
theme_advanced_buttons2: "bullist,numlist,|,outdent,indent,blockquote,|,alfresco-imagelibrary,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,removeformat",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_path: false,
theme_advanced_resizing: true,
theme_advanced_buttons3: null,
language: "${locale?substring(0, 2)?js_string}"
},
containerId: "blog",
<#include "../component.head.inc">
<!– Tag Library –>
<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/modules/taglibrary/taglibrary.css" />
<@script type="text/javascript" src="${page.url.context}/res/modules/taglibrary/taglibrary.js"></@script>
<!– Blog Edit –>
<@script type="text/javascript" src="${page.url.context}/res/components/blog/postedit.js"></@script>
<@link rel="stylesheet" type="text/css" href="${page.url.context}/modules/simple-editor.css" />
<@script type="text/javascript" src="${page.url.context}/modules/simple-editor.js"></@script>
// Instantiate the simple editor we use for the form
//this.widgets.editor = new Alfresco.util.RichEditor(Alfresco.constants.HTML_EDITOR, this.id + //"-content", this.options.editorConfig);
this.widgets.editor = Alfresco.util.createImageEditor(this.id + "-content", this.options.editorConfig);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.