Opened 7 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: |
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)
Change History (8)
Changed 7 years ago by alfonsoml
comment:1 Changed 7 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 7 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.
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

Proposed sample file