jQuery adapter: allow to work with existing instances
It's common to see a problem for people trying to use things like jQuery validation on existing CKEditor instances and they just see that the value that they get is the original value.
The jQuery adapter only adds its code when a CKEditor instance is created with it, but it's common for the people to use things like replace by class or a server side integration, and then they want to use AJAX or validation using jQuery and they say that they have added the jQuery adapter but that it still doesn't work.
The idea to fix it is simple: the adapter should always use a listener CKEDITOR.on( 'instanceCreated' ) so that every instance gets augmented to be used properly with jQuery. That way is they add the adapter they'll always now that .val() with an element that is replaced with CKEditor will work.
Change History (10)
Keywords: |
HasPatch? added
|
Status: |
new →
confirmed
|
Keywords: |
HasPatch added; HasPatch? removed
|
Owner: |
set to Piotr Jasiun
|
Status: |
confirmed →
review
|
Milestone: |
→ CKEditor 4.2
|
Status: |
review →
assigned
|
Resolution: |
→ wontfix
|
Status: |
assigned →
closed
|
Good idea.