Changes between Version 8 and Version 9 of Ticket #4210


Ignore:
Timestamp:
Aug 7, 2009, 10:35:36 AM (15 years ago)
Author:
Tobiasz Cudnik
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4210 – Description

    v8 v9  
    33== Planned ==
    44 * 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]]
    88    Get already existing editor instance.
    9   * .ckeditorConfig()[[BR]]
    10     Change global ckeditor config
    11   * .val()[[BR]]
     9  * '''.val()'''[[BR]]
    1210    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
    1515  * setData
    1616  * getData
     
    1818 * Submit integration
    1919  * normal submit
    20   * ajaxSubmit ?
     20  * ajaxSubmit
    2121
    2222Below mockup of planned API.
     
    5555  this.destroy();
    5656});
     57
     58// use editor synchronously
     59// requires it to be created earlier
     60var editor = $('textarea').ckeditorGet();
     61alert( editor.getData() );
    5762}}}
    5863
     
    6873  $(textarea).val("New editor content");
    6974});
     75
     76// listen to creation event of any CKEditor
     77$( document ).bind( 'instanceCreated.ckeditor', function( editor ){
     78  alert( editor.name + ' has been created' );
     79});
    7080}}}
    7181
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy