[opencms-dev] Solution fo CmsFCKEditorWidget issue
Andy Bicksbo
schlachtzeuger at gmail.com
Sat Dec 2 04:43:43 CET 2006
hi
My last thread was about questioning CmsFCKEditorWidget. In the meantime i
found a solution. In the class where i use the widget i overwrite "protected
void dialogButtonsHtml(StringBuffer result, int button, String attribute)".
So the request param for the hidden field get updated.
protected void dialogButtonsHtml(StringBuffer result, int button, String
attribute) {
attribute = appendDelimiter(attribute);
switch (button) {
case BUTTON_OK:
result.append("<input name=\"ok\" value=\"");
result.append(key(
org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_OK_0) + "\"");
if (attribute.toLowerCase().indexOf("onclick") == -1) {
// !! Invoking "submitHtml(form)" updates
result.append(" onClick=\"submitHtml('form');\"");
result.append(" type=\"submit\"");
}
result.append(" class=\"dialogbutton\"");
result.append(attribute);
result.append(">\n");
break;
default :
super.dialogButtonsHtml( result, button, attribute);
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20061202/dd57bd1e/attachment.htm>
More information about the opencms-dev
mailing list