Opened 8 years ago

Closed 7 years ago

#4254 closed New Feature (fixed)

Add API sample

Reported by: alfonsoml Owned by: alfonsoml
Priority: Normal Milestone: CKEditor 3.1
Component: General Version: 3.0
Keywords: Review+ Cc:


Similar to the old sample08, I've removed the buttons to interact directly with the content as I'm not sure about the policy now about that.

Is it OK this way?

Attachments (2)

api.html (3.8 KB) - added by alfonsoml 8 years ago.
Proposed sample file
4254.patch (5.6 KB) - added by alfonsoml 7 years ago.
Proposed patch

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by alfonsoml

Proposed sample file

comment:1 Changed 8 years ago by garry.yao

How about adding getSnapshot/loadSnapshot data into the sample, beside, I think we need an alert for the executeCommand within source mode.

comment:2 Changed 8 years ago by alfonsoml

OK for the warning about executeCommand, I thought about it, but I just followed the previous sample.

But I don't know about the getSnapshot/loadSnapshot. They lacks any documentation explaining what do they do, and even reading the code, I don't know why they are interesting in a simple API example.

Many people ask how to insert some text, how to read the contents, or detect if they have been modified, so a sample covering that (and even some blog posts to explain it again) is useful, but as I said, I just don't know right now why those functions could be useful for a newcomer.

Changed 7 years ago by alfonsoml

Proposed patch

comment:3 Changed 7 years ago by alfonsoml

  • Keywords Review? added; Discussion removed
  • Milestone set to CKEditor 3.1
  • Version changed from SVN (CKEditor) to CKEditor 3.0

comment:4 Changed 7 years ago by fredck

  • Keywords Review+ added; Review? removed

comment:5 Changed 7 years ago by alfonsoml

Fixed with [4302]

comment:6 Changed 7 years ago by alfonsoml

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy