[opencms-dev] Adding a links toolbar to FCKEditor within XML Content
Tosi, Joel
JTosi at cme.com
Wed Apr 12 15:05:42 CEST 2006
I was able to get the buttons to show up by adding the following to the
XML content xsd...
<layouts>
<layout
element="BodyDescription" widget="HtmlWidget"
configuration="source,link,anchor,formatselect,imagegallery,downloadgall
ery,linkgallery,htmlgallery,tablegallery,height:400px" />
</layouts>
I tried that from something I had previously seen on the list. Your
approach is interesting though, but perhaps on an upgrade it might be
overwritten?
Joel
________________________________
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Ashok Hariharan
Sent: Wednesday, April 12, 2006 8:01 AM
To: The OpenCms mailing list
Subject: [opencms-dev] Adding a links toolbar to FCKEditor within XML
Content
Hi:
I was trying to figure out a way to add the insert/edit link buttons to
the FCK Editor toolbar when it appears as a HTML Widget within XML
Content.
(It appears by default when creating a normal page).
I found that by adding a line to the file:
/system/workplace/editors/fckeditor/configwidget.js
the toolbar buttons appear within the XML Content widget, and it seems
to work fine...
the line I added is marked below:
<code>
toolbar.append(",'-','Outdent','Indent'");
//this is the line i added....
toolbar.append(",'-','oc-link','Link', 'Anchor','Unlink'");
toolbar.append("]");
</code>
Is this the right way to enable these buttons, or am I missing
something?
thanks
Ashok
--
++++ Ashok Hariharan ++++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060412/f5f360df/attachment.htm>
More information about the opencms-dev
mailing list