Opened 11 years ago

Last modified 11 years ago

#4210 closed New Feature

CKEditor plugin for jQuery — at Initial Version

Reported by: Tobiasz Cudnik Owned by:
Priority: Normal Milestone: CKEditor 3.1
Component: General Version:
Keywords: Confirmed Review+ Cc:

Description

For CKEditor 3.1 there is planned a jQuery plugin, which will allow jQuery users easily integrate rich text editing into their's applications.

Mockup of planned API:

// chainably transform textareas into CKEditor instance
$('textarea').ckeditorCreate()

// extensive example
$('#editors textarea')
  .eq(0).ckeditorCreate({ lang: 'pl', width: 300 }).end()
  .eq(1).ckeditorCreate({ width: 500, height: 400 }).end()
  // more then one at once
  .slice(2).ckeditorCreate({ lang: 'ar' }).end()

// get instance (create it if needed)
$('textarea').ckeditor()

# access internal API methods

// get data from editor
$('textarea').ckeditor().getData()

// set data into editor
$('textarea').ckeditor().setData()

// change ui color
$('textarea').ckeditor().setUiColor('#FFFFFF')

// remove editor from the page
$('textarea').ckeditor().destroy()

Possible, not confirmed:

  1. Automatically push instance data into textarea on events:
    1. submit
    2. ajaxSubmit
  2. Bridge textarea setter/getter val() with CKEditor

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2020 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy