#10573 closed Bug (invalid)
CKEditor 4 conflicts with PureText add-on
Reported by: | Stefan | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
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:1 Changed 12 years ago by
Keywords: | PureText Paste removed |
---|---|
Status: | new → pending |
Version: | 4.1.2 |
comment:2 Changed 12 years ago by
This error was reported in #10278.
As Reinmar has written http://dev.ckeditor.com/ticket/10278#comment:2
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 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
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 12 years ago by
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 12 years ago by
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 12 years ago by
Hi,
i made some pictures:
- what i copy/paste: http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/1.JPG
- what Ctrl-V makes, and also PureText at V4.x: http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/2.JPG
- what Button "paste as text" (Als Text einfügen) does (and PureText did at V2.x): http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/4.JPG
- config and build-config: http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/config.JPG
http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/config-build1.JPG http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/config-build2.JPG http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/config-build3.JPG
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 http://www.zeit-zeichen.de/_Ebay/Goedeke/Abbildungen/2013_Juni/SJoel/4.JPG
maybe you can tell me what to change at config.js
best regards Stefan
comment:7 Changed 12 years ago by
Now this is clear.
Please set http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-clipboard_defaultContentType to text and your styles will be merged.
This may happen due to ACF. Please see: http://ckeditor.com/blog/Upgrading-to-CKEditor-4.1[[BR]] http://ckeditor.com/blog/CKEditor-4.1-RC-Released
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
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
You can simply disable it (allowContent:true) and check results. Please check it.