Changes between Version 8 and Version 9 of Ticket #4210
- Timestamp:
- Aug 7, 2009, 10:35:36 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4210 – Description
v8 v9 3 3 == Planned == 4 4 * All API mockups 5 * .ckeditor( func, config )[[BR]]6 Create new editor instance and fire callback when ready. 7 * .ckeditorGet()[[BR]]5 * '''.ckeditor( func, config )'''[[BR]] 6 Create new editor instance and fire callback when ready. Allowed are all elements, not only textareas. 7 * '''.ckeditorGet()'''[[BR]] 8 8 Get already existing editor instance. 9 * .ckeditorConfig()[[BR]] 10 Change global ckeditor config 11 * .val()[[BR]] 9 * '''.val()'''[[BR]] 12 10 val() on textareas returns/sets data on the editor 13 * Some global CKEditor events 14 * create 11 * '''jQuery.ckeditorConfig()'''[[BR]] 12 Change global CKEditor config 13 * Forwarding some CKEditor events (namespaced) 14 * newInstance 15 15 * setData 16 16 * getData … … 18 18 * Submit integration 19 19 * normal submit 20 * ajaxSubmit ?20 * ajaxSubmit 21 21 22 22 Below mockup of planned API. … … 55 55 this.destroy(); 56 56 }); 57 58 // use editor synchronously 59 // requires it to be created earlier 60 var editor = $('textarea').ckeditorGet(); 61 alert( editor.getData() ); 57 62 }}} 58 63 … … 68 73 $(textarea).val("New editor content"); 69 74 }); 75 76 // listen to creation event of any CKEditor 77 $( document ).bind( 'instanceCreated.ckeditor', function( editor ){ 78 alert( editor.name + ' has been created' ); 79 }); 70 80 }}} 71 81