Hey folks,

I've put together a module for integrating the OpenWYSIWYG editor into Drupal. It seems to work somewhat well, although I have some CSS issues I'm working on.

Does anyone think this is worth uploading to Drupal or is too much of a duplication of work (considering we have 4 WYSIWYG modules already available for various versions of Drupal)?

Dave

Comments

test127’s picture

Someone might want it. After all, you apparently did.

bomarmonk’s picture

I checked out the demo for it, and the editor seems to load fast and looks very nice. It's never bad to have more choices, in my opinion!

killes@www.drop.org’s picture

If it works well, I don't see much of a problem adding a 5th to the four we have.
--
Drupal services
My Drupal services

John Bryan’s picture

See http://drupal.org/node/126233

So far there is no "What You See Is What You Get" editor for Drupal that uses the themes CSS as opposed to a seperate CSS. TinyMCE comes close but substantially shrinks the font sizes.

Regards

John Bryan
www.ALT2.com
Application Integration Specialists
Tel: UK 08700 3456-31

drupalnesia’s picture

dwees,

I have done 99% of openWYSIWYG.module (only 1% about js conflict in Drupal and openWYSIWYG that I can not solve).
Here are the summaries that I have done:

1. Complete Package:
We know that many Drupal editor difficult to install compare to Joomla/Mambo or *nuke. Since the openWYSIWYG lib only 77 KB (TinyMCE/FCKEditor 400-500 KB, uncompressed size is 2 MB!) then I include openWYSIWYG lib in the package. Total package size is only 115 KB! Very small.
2. Built-in File/Image Browser. 100% free!
3. Support User Define Buttons Set: user can set which button on Toolbar 1 and 2.
4. Enable/Disable editor on certain Content-Type.
5. Enable/Disable editor on certain textarea-id (this is usefull for Drupal Blocks).
6. Supported buttons set: basic, complete, customize (I have rename the original button set name because I think better to list this set in ordered list on Administer-Access Control). Basic is Small set with ordered and unordered button. Complete is Full.

I have send you a contact message and will send you my module after I got your email.

This openWYSIWYG is very2 fast! Very small but contain most of popular button (table, image, paste from Word, font color, background, font list with preview, view source, preview).

Regards.

killes@www.drop.org’s picture

"1. Complete Package:" You still don't get that we don't want third party code in cvs, do you?

--
Drupal services
My Drupal services

dwees’s picture

The creator of this module has sent me their work, and I intend to merge it with mine. Then I will create a download link for the modified version of the 3rd party script and force people to download it separately and drop it into a folder.

When I add this module to the repository, it will not have any 3rd party code.

Dave

killes@www.drop.org’s picture

The situation is different if you _have_ to modify the third party software. While I suggest you try to avoid that (which you probably did already) we can host 3rd party software that is customized to be usable with Drupal.
--
Drupal services
My Drupal services

drupalnesia’s picture

Killes,

I just know from Andy that we have no permission to include any 3rd Party js in our module, sorry for this. I think next time, better you explain me as a new developer, like Andy does. So, as new developer we can follow Drupal rule.

we can host 3rd party software that is customized to be usable with Drupal.

what do you mean by this statement? if I edit several lines of the 3rd Party Library then I have permission to upload their js to Drupal CVS?

dwess: I have edit the path of original openWYSOWYG editor to meet Drupal requirement, so: Does this mean we have a "customized to be usable with Drupal"?
Regards.

dwees’s picture

I've also edited some of the JavaScript to prevent function naming problems with jQuery.js. Basically the wysiwyg.js file overwrites a corce jQuery function, so I renamed the OpenWYSIWYG function and did a find and replace to rename all of the dependencies within the JavaScript. Not a huge modification, but an important one for our purposes.

However I will have to host this modification myself as OpenWYSIWYG appears to have hosting issues. Their website appears to have been abandoned.

It's too bad because I'm been using it and really enjoying it. I'll have to take a peek under the hood and see what needs to be done to convert more of it to using jQuery. I've even included it in another CMS that I use regularly.

I haven't had a chance to look at your code you've sent me to see what I can wrap into my module, but from the features you have described, I can see there are some things I can add to my code. One thing I think needs to be done is the CSS for the editor needs to be configurable. Actually, it would be nice if automatically tell the editor to include the current style.css. I suppose this is possible. Maybe sometime over the Easter holidays I'll get a chance to look at this.

Dave

cmscritic’s picture

Do you have this module somewhere?

adrinux’s picture

Looks like this editor is LGPL licenesed so the editor code couldn't be on drupal.org, though of course the drupal module could.
http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm

Also, if you follow the links to the home site from say freshmeat:
http://freshmeat.net/projects/openwysiwyg/

The domain has expired :/

Looks like this might be a dead project, so whilst I'm not against YAWYSIWYG module this doesn't look like such a good choice.

Adrian Simmons
adrinux@perlucida.com

Adrian Simmons
adrinux@anaath.at

dwees’s picture

Well I guess that's why I didn't receive any email from the producers of this editor. It just expired!

Anyway, I'm going to move ahead then and find a place to host my modified version and then upload the module up here. It might be a little bit as I am quite busy right now.

Dave

dwees’s picture

Adrian can attest with me that the site WAS down, at least temporarily. Not sure it changes anything since the creators of the script won't response to my emails asking about fixing the JavaScript naming problems with JQuery (and Drupal.js from 4.7.x).

Dave

viniciusgracia’s picture

Please, I would like to know if someone has that module, even with bugs, for drupal 4.7, 5.X or 6.X.

drupalnesia’s picture

Download here: http://drupal.org/project/openwysiwyg

After some discussions and fix the conflict to jQuery now you can try this module. Any feature will be available in next version soon. To make this editor works in Drupal I need to change the source-code, therefore the module including all scripts.

Please try and let me see what we can improve to this nice WYSIWYG editor.