Opened 15 years ago

Closed 15 years ago

#4254 closed New Feature (fixed)

Add API sample

Reported by: Alfonso Martínez de Lizarrondo Owned by: Alfonso Martínez de Lizarrondo
Priority: Normal Milestone: CKEditor 3.1
Component: General Version: 3.0
Keywords: Review+ Cc:

Description

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 Alfonso Martínez de Lizarrondo 15 years ago.
Proposed sample file
4254.patch (5.6 KB) - added by Alfonso Martínez de Lizarrondo 15 years ago.
Proposed patch

Download all attachments as: .zip

Change History (8)

Changed 15 years ago by Alfonso Martínez de Lizarrondo

Attachment: api.html added

Proposed sample file

comment:1 Changed 15 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 15 years ago by Alfonso Martínez de Lizarrondo

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 15 years ago by Alfonso Martínez de Lizarrondo

Attachment: 4254.patch added

Proposed patch

comment:3 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Keywords: Review? added; Discussion removed
Milestone: CKEditor 3.1
Version: SVN (CKEditor)CKEditor 3.0

comment:4 Changed 15 years ago by Frederico Caldeira Knabben

Keywords: Review+ added; Review? removed

comment:5 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Fixed with [4302]

comment:6 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy