Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 3.3
-
Fix Version/s: None
-
Component/s: ACE-Components
-
Labels:None
-
Environment:All Browsers, JBoss AS 7.1.1
-
Workaround Exists:Yes
-
Workaround Description:Use h:commandButton instead and style it like a pushButton.
Description
The saveOnSubmit from the richTextEntry doesn't work if the form will be submitted by an ace:pushButton.
Calling the following JavaScript Method in the onClick Handler of the ace:pushButton did the trick for me:
function saveRichEditor() {
{ // console.log(CKEDITOR.instances[i]); var myName = CKEDITOR.instances[i].name; // updating the value of the textarea from all the found the CKEDITOR CKEDITOR.instances[i].updateElement(); var myValue = CKEDITOR.instances[i].getData(); console.log('Updating CKEDITOR for RichEditName:' + myName + ' Value:' + myValue); var doc = document.getElementById(myName); doc.value = myValue; }for ( var i in CKEDITOR.instances)
}
The value is updated when the button is pressed this way in any case before it is submitted.