A wysiwyg editor That support Pasting from word?

HairyHun

Masturbating Bandit
Oct 11, 2007
576
2
0
Hi,

We've been trying to upgrade to a modern wysiwyg editor.
They seem to have an option paste from word, which opens a separate window.
When we click ok, the colors and some of the formatting is gone.

We tried like 3 of them: TinyMCE, CKEditor and the WP editor, all the same.

I find this strange because an early version of TinyMCE we used had no such issue. You paste and works like a charm.

Now I wonder is the formatting-removal a default setting these days, which can be disabled or? Or has it become a standard to strip those formatting always?


We need something stable that can take full color and formatted text from word and handle it well. Any suggestions?


Thanks
HH
 


Whatever they use in Wordpress can accept a lot of Word formatting stuff, but if you look at the HTML view, it's a cluster fuck of tags and the farthest thing from clean, semantic code you'll ever see.

Might be a start at least...
 
What dchuk says. If you're formatting in word and you want to keep this formatting when you paste it you obviously have no care for code. Less than no care in fact, because the shit that gets dumped in your code by a word processor (it's not a web editor) is unbelievable.

Copy it to notepad, then copy it into your wysiwyg, then edit in your wysiwyg editor. One day you'll be glad you did, because you really, really, really don't want a site full of that crappy excuse for markup.

As a work around, if you're determined to do that, which just shouldn't be done, is save as webpage/html in word, then open it in notepad and copy that into the html view on your wysiwyg editor.
 
AFAIK in tinymce there is "paste from word" button. it looks like a regular paste button but has Word logo on it. That cleans up the mess. I used it just recently on the TinyMCE example site. It worked even from a very messy Word file.
 
AFAIK in tinymce there is "paste from word" button. it looks like a regular paste button but has Word logo on it. That cleans up the mess. I used it just recently on the TinyMCE example site. It worked even from a very messy Word file.


Yes it cleans up and the colors are gone.
I need something that cleans up the crap but keep the coloring other aesthetic attributes
 
Well, our clients are really not tech savvy then don't understand and care for "proper semantic code"

They want to copy paste and they want it to work. So the motivation is high to find a solution. If the code is not perfect, as long as it doesn't break the layout it's ok. I was hoping these modern editors have an option to ENABLE such color-full copy.

We're also exploring alternate ways of achieve the end goal: be able to save and reuse pieces of text that are formatted ( color and all )

HH
 
I would look into trying to get them to use a simpler text editor, maybe something like Wordpad. Word uses a crazy xml-based language to attain it's formatting, which doesn't translate well to the web. You might be able to easily copy and paste stuff from it, but if they tried to tweak things in Wordpress, shit will probably blow up and things will light on fire, power will go out, etc.
 
What we'll probably do is give a way to save chunks of text in the system once they did the formatting. This way they don't need to do no crazy ass word copy paste.

HH
 
How much have you tested different configuration options in TinyMCE? It has like a ton and then some...

I believe WordPress and a whole bunch of tools/sites use TinyMCE. You just have to set it up correctly.

Read up on TinyMCE options, do some testing and let us know what you find!
 
All of these editors just attach to textareas with javascript. TinyMCE has a ridiculous amount of options, I built a CMS a while back and integrated with it and it was intense.
 
How much have you tested different configuration options in TinyMCE? It has like a ton and then some...

I believe WordPress and a whole bunch of tools/sites use TinyMCE. You just have to set it up correctly.

Read up on TinyMCE options, do some testing and let us know what you find!

Will do, however all the editors strip the word formatting so we might not want to go against the collective wisdom. ( I thought that WP did not, and even they do )

I will definitely reads the options and share what i find.

Working with non tech savvy people has it advantages and disadvantages. When the servers are down they are like "Oh ok, it'll be back in a couple of days right?" when everyone else wouldn't be freaking out after 60 seconds of outtages. However they don't understand the meaning of good semantic code. They just want their thing to work the way they want it.

HH
 
Will do, however all the editors strip the word formatting so we might not want to go against the collective wisdom. ( I thought that WP did not, and even they do )

I will definitely reads the options and share what i find.

Working with non tech savvy people has it advantages and disadvantages. When the servers are down they are like "Oh ok, it'll be back in a couple of days right?" when everyone else wouldn't be freaking out after 60 seconds of outtages. However they don't understand the meaning of good semantic code. They just want their thing to work the way they want it.

HH

Sigh. I am dealing with the same TinyMCE problems running a UGC site for non-tech savvy people.

I had a chance to wrestle with an older version of TinyMCE awhile back. It sort of kind of works, but I never went all the way to fix Word pasting the way you might find it in Wordpress. Right now my old setup is held together by scotch tape and good habits of low number of user, but I am just as interested as you in fixing these problems for real.

Post results of your initial configuration / testing, I'll definitely take a look and see if I have further ideas.

You should look into using Open WYSIWYG. It's basically a JavaScript that will attach itself to whatever TextArea you tell it too.

I clicked on the link, went to demo and got a warning that it does not work in Chrome.

That's the problem with many of these little known editors, there are so many ways they can break it is not funny.