<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
my primary target is to activate the "Link" function in fckeditor
for an xmlcontent type. I don't mean the link button which is
actived when I add ",link" to the configuration attribute in the xsd
schema. I mean the extra link button which is available in the
xmlpage editor (button with a litte world image in the background).
I'm using OpenCMS 7.0.5 .<br>
<br>
My current working fall back plan is, to force replacing the string
<tt>"oc-link"</tt> with <tt>"oc-link","Link"</tt> in the jsp
script "<span class="xmlInput textInput" style="border: 0px solid
black;">/system/workplace/editors/fckeditor/configwidget.js</span>":<br>
<br>
<tt>// old code:<br>
FCKConfig.ToolbarSets["OpenCmsWidget"] = [<br>
<%= toolbar %><br>
];<br>
<br>
// new code:<br>
</tt><tt>FCKConfig.ToolbarSets["OpenCmsWidget"] = [<br>
<%=
toolbar.toString().replaceFirst("\"oc-link\"","\"oc-link\",\"Link\"")
%><br>
];<br>
</tt><br>
<span id="result_box" class="" lang="en"><span class="hps">But</span>
<span class="hps">I</span> <span class="hps">don't want</span> <span
class="hps">to live permanently</span> <span class="hps">with</span>
<span class="hps">this unprofessional solution.</span></span> I
have a problem to understand this line in the script above:<br>
<br>
<tt>if (CmsFCKEditorWidget.buildOpenCmsButtonRow(toolbar,
configuration)) {<br>
</tt><br>
The variable <tt>toolbar</tt> is of type <tt>StringBuffer</tt>.
But in the API documentation and also in the source code the method
name <tt>buildOpenCmsButtonRow </tt>is only implemented in two
variants:<br>
<tt>A_CmsHtmlWidget.html.buildOpenCmsButtonRow(org.opencms.widgets.I_CmsWidgetDialog,
java.lang.String)<br>
A_CmsHtmlWidget.html.buildOpenCmsButtonRow(int,
org.opencms.widgets.I_CmsWidgetDialog)</tt><br>
<br>
Then <tt>java.lang.StringBuffer</tt> would have to implement <tt>org.opencms.widgets.I_CmsWidgetDialog</tt>
? This can't be real???<br>
<br>
I would expect the variant <tt>buildOpenCmsButtonRow(</tt><tt>java.lang.</tt><tt>StringBuffer,
</tt><tt>java.lang.</tt><tt>String)</tt> but don't found this.<br>
<br>
Can anyone explain me where my understanding switches off ?<br>
<br>
Kind Regards<br>
Holger<br>
<br>
</body>
</html>