Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#10573 closed Bug (invalid)

CKEditor 4 conflicts with PureText add-on

Reported by: Stefan Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


There was an alike Ticket 3 months before...

We use PureText from Steve P. Miller to paste formatted text into our CKEditor. We had never problems with that but now we updated the ckeditor to Version 4.

Before Updating: paste formatted text with PT into ckeditor-window and the text is inserted with formatting of target (without PT it is inserted with formatting of source)

After Updating: paste formatted text with PT into ckeditor-window and the text is inserted with NO formatting

we use paste-plugin (paste from word etc.) in both versions

Change History (7)

comment:2 Changed 11 years ago by Jakub Ś

This error was reported in #10278.

As Reinmar has written

you don't need to use puretext if you have Allowed Content Filter correctly configured.

I think too this is very unlikely that there is error in editor. @Voodoo225 please check ACF and if you still get this error please provide detailed explanation of the problem - step by step scenario.

comment:3 Changed 11 years ago by Piotrek Koszuliński

Resolution: invalid
Status: pendingclosed

I also wrote:

I'm closing this issue, since it's very unlikely that this is a bug in editor.

And I'm closing this one too, because pasting works. Pasting with that addon stops working so this is that addon's fault.

comment:4 Changed 11 years ago by Stefan

i tried to use some ACF options to solve the problem, the ACF options work well but i doesnt change anything!

did u test PureText?

i want to copy from whereever i like and paste into a template inside CKE and it should take the formatting of the template / of the point where the cursor stands while i paste

at 2.x it worked, now i use 4.x and it ALWAYS paste pure text, but CKE does active end all formatting tags before the pasted text, i dont want that, how can i switch that off? i think its not the ACF itself...

comment:5 Changed 11 years ago by Jakub Ś

o a template inside CKE and it should take the formatting of the template

What exactly are you trying to paste and into what element?

I have copied part of initial text from CKEditor and check what Pure Text produces:

Apollo 11<br><br>Apollo 11 was the spaceflight that landed the first humans, Americans Neil Armstrong and Buzz Aldrin, on the Moon on July 20, 1969, at 20:18 UTC. Armstrong became the first to step onto the lunar surface 6 hours later on July 21 at 02:56 UTC.<br><br>Armstrong spent about three and a half two and a half hours outside the spacecraft, Aldrin slightly less; and together they <br>

In CKEditor 4 with default EnterMode set to P you will get 3 Paragraphs from such text and if you paste it e.g. into Strong element it will of course split Strong element as phrasing content may not contain flow content.

I don't see any erros here.

comment:6 Changed 11 years ago by Stefan


i made some pictures:

  1. what i copy/paste:
  1. what Ctrl-V makes, and also PureText at V4.x:
  1. what Button "paste as text" (Als Text einfügen) does (and PureText did at V2.x):
  1. config and build-config:

At FCKEditor 2.x PureText did what it should do, at V4.x Ctrl-V and PureText only paste clean text AND! it is shown as pure text BUT it shall paste into the destination-formatting and use it. I want to use paste with PureText like you can see on foto

maybe you can tell me what to change at config.js

best regards Stefan

comment:7 Changed 11 years ago by Jakub Ś

Now this is clear.

Please set!/api/CKEDITOR.config-cfg-clipboard_defaultContentType to text and your styles will be merged.

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