Ticket #4548 (closed New Feature: fixed)

Opened 2 years ago

Last modified 2 years ago

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

4548.patch Download (3.5 KB) - added by garry.yao 2 years ago.
4548_2.patch Download (5.0 KB) - added by garry.yao 2 years ago.
4548_3.patch Download (9.4 KB) - added by garry.yao 2 years ago.
4548_4.patch Download (12.9 KB) - added by garry.yao 2 years ago.
4548_5.patch Download (9.1 KB) - added by garry.yao 2 years ago.
4548_6.patch Download (6.2 KB) - added by garry.yao 2 years ago.

Change History

comment:1 Changed 2 years ago by garry.yao

  • Owner set to garry.yao
  • Status changed from new to assigned

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

Changed 2 years ago by garry.yao

comment:2 Changed 2 years ago by garry.yao

  • Keywords Drupal Review? added

Changed 2 years ago by garry.yao

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:5 Changed 2 years ago by fredck

  • Keywords Drupal removed
  • Description modified (diff)

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.

Changed 2 years ago by garry.yao

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 :(

Changed 2 years ago by garry.yao

comment:8 Changed 2 years ago by garry.yao

  1. Adding 'drupalpagebreak' plugin ask Wiktor asked;
  2. Fixing a bug where inline style is not applied on fake comment;
  3. 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.

Changed 2 years ago by garry.yao

Changed 2 years ago by garry.yao

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.

Note: See TracTickets for help on using tickets.
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy