Hello,
i've got 2 (or more) ckeditors in the same form, when i submit, i only get the value of the first one ...
It worked before with the ckeditor3, i have the problem since i'm using the new version
i've tried with the basic config unmodified, changing names, swapping stuffs... can't find anything about it on the forums...
Does anybody have/had the same problem ?
Thanks.
Nicko
Same problem
I have the same problem!
I use hidden elements in form to solve.
<form>
<textarea name="texto_superior" ...... {CKEDITOR} ></textarea>
<textarea name="texto_inferior" ...... {CKEDITOR} ></textarea>
<input type="hidden" name="txt_inf" id="txt_inf" />
<input type="hidden" name="txt_sup" id="txt_sup" />
</form>
And the submit buttom i set the value to the hidden inputs.
$('#btnSave').click(function(){
$('#txt_inf').val(CKEDITOR.instances.texto_inferior.getData());
$('#txt_sup').val(CKEDITOR.instances.texto_superior.getData());
$('#form').submit();
});
If anyone have another solution, please post!
It's a known bug of CKEditor
It's a known bug of CKEditor 4.2.
There is a ticket for that at ckeditor-dev, it's fixed in dev repository;
If you can't buid it from github, downgrade to CKEditor 4.1.3, or wait for upcoming CKEditor 4.2.1...
Regards