Hi!

I would like to have a feature that cleans ALL html when pasted with either a button or ctrl-v . For instance, when copying and pasting text from word it leaves a lot of crap html in it. (even if i click clean html)

How is filtering handeling? Should I leave filtering for drupal to handle or does whizzywig do it?

btw. whizziviw homepage is not availible right now, can you post the js file? or is it against the license?

Comments

cybertron1’s picture

ok, this is probably a problem with whizzywig i changed (the version of the js file that i have) gentlyCleanup = "true" to "false" and it almost worked, if I changed it to ask it does work perfectly!

so it is a problem there

cybertron1’s picture

well, more testing and it doesn't quite work.

i would still like to have something that cleans ALL code, (div are not cleaned

Some text

" I would like this to become:

or something like that, but this might not be your mission but whizzywig developers headache?

cybertron1’s picture

well, drupal filtering filtered away some of the text above.

<div id="node-353">
<h2><a href="http://mydomain/index.php?q=node/353">MY Text</a> </h2>
<div>

I would like that to become:

<strong><a href="http....:"> MY Text</a></strong>
sdecabooter’s picture

Status: Active » Closed (won't fix)

Hi,

Unfortunately this is a Whizzywig feature request, and is beyond the scope of this module.
The Whizzywig editor does some basic cleanup, as you have found out yourself, but if it doesn't clean up they way you want it to clean up, the only solution is to notify the Whizzywig editor author(s) and request support, either by mail or through their forums. The forums also contain a few posts regarding Word cleanup already, maybe you can have a look at those...

This Drupal module only provides integration of the editor into Drupal, so any functionality that is handled by the Whizzywig JavaScript is beyond my control.
I hope you can find a solution to your problem somehow...

cybertron1’s picture

ok, thanks for clearing it out :D

Keep up the good work ,this module and this whizzywig is very nice! It is light, I would vote for it to be drupal's own core wysiwyg editor.