#10968 closed New Feature (fixed)
Pasting plain text inside links becomes plain text
Reported by: | ComputecWebDev | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Pasting | Version: | |
Keywords: | Cc: |
Description
- Load CKEditor Demo: http://ckeditor.com/demo or http://nightly.ckeditor.com/standard/samples/
- Select any "plain" text (no links, formatting etc.), press CTRL+C
- Place cursor inside any text with <a>, e.g. after the "m" of "Neil Armstrong" in first paragraph
- Press CTRL+V
Result in CK3.x (any browser): Pasted text becomes part of the link text, there's still only one link Result in CK4.x (any browser): Pasted text "breaks" the link in two linked sections, text itself remains unlinked
This may be semantically correct behavior, as plain text remains plain text on pasting, but it's highly inconvenient when one wants to edit linked text via pasted text.
Change History (2)
comment:1 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 4.2.2 (GitHub - master) |
comment:2 Changed 11 years ago by
Thx a lot, Reinmar! Changing clipboard_defaultContentType to 'text' solved the problem.
Fortunately there's a configuration option which allow to change this behaviour: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-clipboard_defaultContentType
Although, before CKEditor 4 browsers were making most of decisions how to insert pasted HTML into document. Since CKEditor 4 the editor handles that, so there definitely are some differences between CKEditor 4 and 3.