Details
-
Improvement
-
Resolution: Fixed
-
Major
-
7.4
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Right now it's up to the user of BaseClass to write stuff such as:
needsUpdate |= baseClass.addTextAreaField(FIELD_SCRIPT, "Job Script", 60, 10);
// make sure that the script field is of type pure text so that wysiwyg editor is never used for it
TextAreaClass scriptField = (TextAreaClass) baseClass.getField(FIELD_SCRIPT);
// Note: getEditor() returns lowercase but the values are actually camelcase...
if (!scriptField.getEditor().equals("puretext")) {
scriptField.setStringValue("editor", "PureText");
needsUpdate = true;
}
It would be better if it were automatically done and so that we could simply use:
needsUpdate |= baseClass.addTextAreaField(FIELD_SCRIPT, "Job Script", 60, 10, "PureText");
Attachments
Issue Links
- is duplicated by
-
XWIKI-13757 New annotations contain HTML code on xwiki upgraded
-
- Closed
-