Opened 8 years ago
Closed 8 years ago
#14747 closed New Feature (fixed)
The enhanced image caption does not support the link target attribute.
Reported by: | ahmad | Owned by: | Tade0 |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.5.11 |
Component: | UI : Widgets | Version: | 4.3 |
Keywords: | Cc: |
Description
Steps to reproduce
1.Click on the enhanced image (image2) in the editor and add a url to the image and select the captioned image checkbox.
- select the caption text and click the link icon in the editor.
- in the link dialog you will notice that the target tab is disabled
Expected result
the expected result should be that the caption should also support the link target attribute.
you can reproduce this on the demo page.
Attachments (1)
Change History (15)
comment:1 Changed 8 years ago by
Component: | General → UI : Widgets |
---|
comment:2 Changed 8 years ago by
Keywords: | Enhanced image plugin added |
---|
comment:3 Changed 8 years ago by
Keywords: | image2 added; Enhanced image plugin removed |
---|
comment:4 Changed 8 years ago by
Keywords: | image2 removed |
---|---|
Status: | new → confirmed |
Summary: | the enhanced image caption does not support the link target attribute. → The enhanced image caption does not support the link target attribute. |
Type: | Bug → New Feature |
Version: | 4.5.10 (GitHub - master) → 4.3 |
comment:5 Changed 8 years ago by
Milestone: | → CKEditor 4.5.11 |
---|
comment:6 Changed 8 years ago by
I added like this
allowedContent: 'br em strong sub sup u s target; a[!href]; a[target]'
but is not working
comment:7 Changed 8 years ago by
Try this (don't forget to clear browser's cache (this is not Ctrl+F5)):
allowedContent: 'br em strong sub sup u s; a[!href,target]'
and please read something about ACF:
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
comment:8 Changed 8 years ago by
Owner: | set to Tade0 |
---|---|
Status: | confirmed → assigned |
comment:9 Changed 8 years ago by
Status: | assigned → review |
---|
Changed the filtering so that now link targets are allowed in the caption.
Changes pushed to branch:t/14747.
comment:10 Changed 8 years ago by
Status: | review → review_failed |
---|
The fix is fine.
Unfortunately, all IE browsers (IE8-IE11, Edge) has different attributes order and the added test fails (see attached screenshot).
Changed 8 years ago by
Attachment: | Screen Shot 2016-08-19 at 15.04.15.png added |
---|
comment:12 Changed 8 years ago by
Status: | review_failed → review |
---|
Corrected the error, rebased with master, changes pushed to branch:t/14747.
comment:14 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Merged to master with 2f98a20.
This is not a bug. This is a feature.
It is enough to add
target
attribute to caption's ACF https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/image2/plugin.js#L289