Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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:


  1. Load CKEditor Demo: or
  2. Select any "plain" text (no links, formatting etc.), press CTRL+C
  3. Place cursor inside any text with <a>, e.g. after the "m" of "Neil Armstrong" in first paragraph
  4. 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 10 years ago by Piotrek Koszuliński

Resolution: fixed
Status: newclosed
Version: 4.2.2 (GitHub - master)

Fortunately there's a configuration option which allow to change this behaviour:!/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.

comment:2 Changed 10 years ago by ComputecWebDev

Thx a lot, Reinmar! Changing clipboard_defaultContentType to 'text' solved the problem.

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