#11841 closed Bug (invalid)
Attributes get lost after drop a anchor in ckeditor (chrome)
Reported by: | vinit | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
When we drop a link in ckeditor all attributes get lost except href in chrome.
Attachments (2)
Change History (7)
comment:1 Changed 11 years ago by
Summary: | Attributes get lost after drop a anchor in chrome → Attributes get lost after drop a anchor in ckeditor (chrome) |
---|
comment:3 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.3.4 |
- Drag & Drop support is to be implemented
- I wasn't able to reproduce this even with ACF turned on.
- I got opposite result - lots of garbage styles that chrome adds.
Since I didn't get even close to your result I'm closing this issue as invalid.
It is possible that this is happening due to ACF. If that is the case and you want to use all kinds of attributes for A tags please use the following configuration option:
extraAllowedContent : 'a[*]'
.
comment:4 Changed 11 years ago by
it is working fine in firefox when we drag and drop a link or anchor tag but it's not working in chrome browser on demo site http://ckeditor.com/demo i have attached screen shot for both browser.
comment:5 Changed 11 years ago by
Now I see what you mean but issue is still invalid.
You will get same result in native browser (just try below):
<ul> <li style="margin:0;padding:0;"> <a href="http://google.com" class="someclass" style="margin:0;padding:15px 25px;border-bottom:none;" >Link</a> </li> </ul> <div style="margin: 20px; border:1px solid black; width:500px;" contenteditable="true"> </div>
Native D&D will be implemented soon and will handle such cases.
If we drag and drop a anchor tag in ckeditor and anchor tag have attribute like id, class, onclick etc, all attribute get lost in ckeditor except href.