Ticket #4548 (closed New Feature: fixed)
Fake comment plugin
| Reported by: | garry.yao | Owned by: | garry.yao |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.1 |
| Component: | General | Version: | |
| Keywords: | Confirmed Review- | Cc: |
Description (last modified by fredck) (diff)
A fake comment plugin that displays HTML comments with specified pattern as placeholders.
Attachments
Change History
comment:1 Changed 2 years ago by garry.yao
- Owner set to garry.yao
- Status changed from new to assigned
comment:3 Changed 2 years ago by garry.yao
As denoted by Wiktor, the comment would be more useful been displayed as a block in the editor, whic h make the requiring of changes to core codes as a mandatory.
Ticket Test has been also updated in this sense at: http://ckeditor.t/tt/4548/1.html.
comment:4 Changed 2 years ago by garry.yao
After discussing with Wiktor, the display name and style of individual comment should also be configurable, update the TC accordingly and attach a new patch.
It's noticed that the patch even fix a bug of the htmlFilter which doesn't allow more 3+ 'catch all ($)' rules to be registered in one filter instance.
comment:6 Changed 2 years ago by fredck
- Keywords Review- added; Review? removed
The isKnown variable is being added to _source/core/htmlparser/fragment.js but it's never used.
comment:7 Changed 2 years ago by garry.yao
- Keywords Review? added; Review- removed
As Wiktor pointed out that the previous patch was missing the whole plugin codes :(
comment:8 Changed 2 years ago by garry.yao
- Adding 'drupalpagebreak' plugin ask Wiktor asked;
- Fixing a bug where inline style is not applied on fake comment;
- Update a feature where fake comment get another css class name according to the fake name (thanks Pawel for the code).
comment:9 Changed 2 years ago by garry.yao
Ticket Test added at :
http://ckeditor.t/tt/4548/2.html.
comment:10 Changed 2 years ago by fredck
- Keywords Review- added; Review? removed
- It looks like the "drupalpagebreak" inclusion was a misunderstanding. Wiktor just wanted to show how they are using the feature.
- Making this feature so generic is also making its implementation much more complex than needed. Couldn't the Drupal plugin simply handle this case by its own? Maybe the right thing is having us helping Wiktor and Pawel to develop their plugin.
In general, more discussion is needed around this feature. Please contact me.
comment:11 Changed 2 years ago by garry.yao
- Status changed from assigned to closed
- Resolution set to fixed
Confirmed to be fixed by #4729.


Ticket Test added at : http://ckeditor.t/tt/4548/1.html.