You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have successfully attached ckeditor instance with textarea, but problem comes with backbone model data. The editor content are not reflecting in backbone model.
we have tried to update content with following ways
set CKEDITOR.instances['ckeditor'].getData() to the textarea
CKEDITOR.instances['ckeditor'].updateElement();
But no luck. Any help on this problem would be greatly appreciated!
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Hi,
I have used CK editor with Rivets and backbone many times. Usually, it does not involve rivets.
The key takeaway is that you add event handling to the editor ckeditor.on('change', ..update the model and backbone.model.on('change', ...updateCK editor
Here is how I solved it in this CMS:
Taken out of context, but I hope it helps: (written in a require.js env, all of ckeditors dependencies are loaded ASYNC)
Though, I bet you could write a super slick binder for this, ...or event a component.
I will try both of those out on my lunch break and get back to you. Could be mutually beneficial.
We are trying to use ckeditor in a rivet and backbone js based application.
Following are the part of code where we are trying to attach ckeditor with class 'ckeditor'
<textarea class='ckeditor' data-rv-input="model.<%= Formbuilder.options.mappings.CONTENT %>" /> </textarea>
We have successfully attached ckeditor instance with textarea, but problem comes with backbone model data. The editor content are not reflecting in backbone model.
we have tried to update content with following ways
But no luck. Any help on this problem would be greatly appreciated!
Thank you in advance!
The text was updated successfully, but these errors were encountered: