Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#9868 closed New Feature (invalid)

Add Tatg in Selected text

Reported by: varun Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Tagging Cc:


We need a feature where we can select a text inckEditor and have abilty to add tag. Here is the ref for the same Here you can check that on checked text you can add comments. Please let me know if you have any plugin or add on having same feature OR you can add this to Ck Editor.

Change History (2)

comment:1 Changed 11 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
  1. How to write tutorials was described here: Link provided looks also good.
  2. "select a text inckEditor and have ability to add tag"
    Most of the plugins work that way. Just check the source of plugin you are interested in.

What you need to know is that inline/phrasing styles wrap selection and block/flow styles change one block element to another (p gets changes to h1 despite collapsed selection).
In your case the best approach is probably using the same code as in link plugin.

In CKEditor 4 key code is located in \ckeditor4_git\plugins\link\dialogs\link.js; Lines 1204 -1206

var style = new{ element: 'a', attributes: attributes } );
style.type = CKEDITOR.STYLE_INLINE; // need to override... dunno why.
style.applyToRange( range );;

Good luck.

Anyway this more of a support request than feature request thus I’m closing this as invalid.

comment:2 Changed 11 years ago by Jakub Ś

One more thing. If you are using CKE 4.x please have a look at this link -!/guide/plugin_sdk_intro

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