I have an application using FCKEditor 2.6 and users of this app have been reporting that sometimes text they paste into the editor moves to a different position or disappears altogether. I suspect that this is being caused by pasting in bad HTML from other sources, but so far I haven't been able to reproduce it. Has anyone else encountered this problem, and if so, do you have any insight or suggestions? Thanks!
Thu, 07/31/2008 - 18:14
#1

Re: Text moving or disappearing
The text that is giving us issues originally came from MSWord, which then had images reinserted (they didn't remain in place when pasting in the content), formatting done, and links added to the page.
I suspect the same as you, that it's a formatting issue throwing something off. I don't think it's related to the incoming content since it doesn't happen on all articles, but more likely how the formatting is done. I've noticed that there is some weird behavior when you get 2 styles next to each other and you add and remove space in between them.
Hopefully someone can find a fix for this.
Re: Text moving or disappearing
Edit:
Re: Text moving or disappearing
I'm using Firefox 3.0.1
Mark
Re: Text moving or disappearing
I just wanted to find out if anyone established the main cause of this problem. The editor is used heavily by the data entry team at my company and they complain about this occuring from time to time. This is regardless of whether they are copying over from word, a website or textpads.
I have tried to reproduce it but i can't.
Re: Text moving or disappearing
Most recently it was ignoring <br> tags and deleting everything after them on a specific page. I even put the code into Dreamweaver and cleaned it up and pasted it in code view, but it didn't help (even though that's fixed the problem before).
I then switched over to Safari and pasted the code. It worked just fine. I could even switch between code and WYSIWYG mode without anything going away. So I saved it. I then I re-opened it in Firefox and it was having the same problem.
Edit: Logged out of site in Firefox and logged back in an text no longer disappeared on that specific page, but it has happened with different pages on my site.
Re: Text moving or disappearing
The problem is intermittent and I have not been able to find a way to consistently reproduce the problem. It seems to occur with larger amounts of text and complex HTML.
We have had reports of this happening lately with links inside of table cells.
Re: Text moving or disappearing
http://dev.deems.nl/fckconfig.js
Re: Text moving or disappearing
Re: Text moving or disappearing
I realized that it was because I was testing a user without the rights to switch to plain text. When I changed that (made it possible), everything worked fine.
Re: Text moving or disappearing
http://www.fckeditor.net/demo
Re: Text moving or disappearing
Re: Text moving or disappearing
So anything can happen when you provide something that way.
Fix your HTML and then if you think that there is still some problem, create a minimal testcase.