Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14612 closed Bug (duplicate)

Impossible to remove a bold style if the strong tag has an id

Reported by: Damien Pobel Owned by:
Priority: Normal Milestone:
Component: Core : Styles Version:
Keywords: Cc:


Steps to reproduce

  1. Put a in bold (same issue exist with italic, underline...)
  2. With the dev tools add an id on the tag
  3. Select the whole word in bold and try to remove the bold style

Expected result

The bold style should be removed

Actual result

The bold style remains

Other details (browser, OS, CKEditor version, installed plugins)

Of course the steps to reproduce are a bit artificial, but the same issue is valid if for instance, an id is generated server side. Also this issue was reproduced on the Online Demo with Chrome and Firefox (not tested with IE but I think it's valid there).

Change History (3)

comment:1 Changed 8 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed
Version: 4.5.8

Please see: #6026 and #8369 and especially this comment - #8369#comment:14

Comment made by Reinmar is very true - there is no way to create such element inside CKEditor (even if you could you should do this with span but not strong). If you have ACF configured properly invalid attributes will be removed.

Could you perhaps tell us what is the real life use case behing adding id to strong element? If you could also explain why not doing the same with spans?

comment:2 Changed 8 years ago by Damien Pobel

Thanks for your comment j.swiderski. I get the point and I must admit it makes sense.

For the record, the ids are automatically added by a framework in my application, so I would not call that an editing use case ;-) and I guess I have to get rid of those ids by myself.

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