Opened 12 years ago

Last modified 12 years ago

#4210 closed New Feature

CKEditor plugin for jQuery — at Version 4

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

Description (last modified by Tobiasz Cudnik)

Create a jQuery plugin, which will allow jQuery users easily integrate rich text editing into their applications.

Below mockup of planned API.

Editor creation

// chainably transform textareas into CKEditor instance

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

Internal API access

// get data from editor
  var data = this.getData();

// set data into editor
var data;
  this.setData("New editor content");
// change ui color

// remove editor from the page

jQuery integration

// use val() to get data
$('textarea:first').ckeditor(function( textarea ){

// use val() to set data
$('textarea:first').ckeditor(function( textarea ){
  $(textarea).val("New editor contents);

Possible, not confirmed:

  1. Automatically push instance data into textarea on events:
    1. submit
    2. ajaxSubmit
  2. Easy editor's content lookup using selectors

Change History (4)

comment:1 Changed 12 years ago by Tobiasz Cudnik

Owner: set to Tobiasz Cudnik
Status: newassigned

comment:2 Changed 12 years ago by Tobiasz Cudnik

Description: modified (diff)

comment:3 Changed 12 years ago by Frederico Caldeira Knabben

Description: modified (diff)

comment:4 Changed 12 years ago by Tobiasz Cudnik

Description: modified (diff)
Keywords: Confirmed added
Note: See TracTickets for help on using tickets.
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy