#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: |
Description
Steps to reproduce
- Put a in bold (same issue exist with italic, underline...)
- With the dev tools add an id on the tag
- 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 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Version: | 4.5.8 |
comment:2 Changed 9 years ago by
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.
comment:3 Changed 9 years ago by
CKEditor can do that for you if you have ACF enabled. Any pasted content will be filtered against ACF rules.
To learn more about ACF please see:
http://docs.ckeditor.com/#!/guide/dev_acf
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
http://docs.ckeditor.com/#!/guide/dev_disallowed_content
http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
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 withspans
?