Thanks to Mark Huot, i’ve actually got the WidgEditor extension working. It’s kind of kludgey, but it works properly.
The zip file is here:
www.eidolongroup.com/Stuff/widgEditor_Extension.zip
The files include a CUSTOMIZED copy of widgEditor.js (you CANNOT just use the one off of Cameron Adams’ site, i had to gimmick it), as well as the compressed version of the jQuery script (i needed a better onload handler), and some prettified buttons based on the Tango project.
Put the widgEditor folder in the ROOT of your site; currently the extension doesn’t have any configuration options. Put the ext.widgedit.php file in the usual place. :)
ALL your textareas will get widgEditor controls; again, there’s no configuration yet. I developed this for some personal & client projects; if there’s interest, I’ll try to futz with it some more and get you a way to tell it WHICH textareas should be WYSIWYG and which should not. (This will probably involve a lot of cursing, shouting, and sending more PMs to Mark Huot. I’m really not great with Javascript.)
NOTE FOR MOZILLA BROWSERS: when you open the Publish form with this extension turned on, you’ll notice that all your publish fields are “folded up” for a fraction of a second before opening. That’s to fix a weird bug with the textarea replacement. If you’re annoyed by it, you can open the extension file and change the setTimeout delay—but you’ll have to experiment, because if you set it too low, it might not work for you! (Again, i can try for putting in some config options if anyone’s interested.)
NOTE FOR WEBKIT/SAFARI BROWSERS: I have no idea if this extension even works for you guys. Signs point to no, but if you have evidence one way or another, you might put it in the thread!
NOTE FOR EVERYONE: you CAN insert images, but it doesn’t seem to like the EE {filedir} syntax at all, and it will break. Either use actual absolute paths after uploading your images, or skip the extension until i get that problem sorted out. (Unfortunately, i have no idea HOW to sort it out, so that may be awhile.)
This whole shebang is released under the GPL—that’s the license under which all the components (widgEditor itself, jQuery, and Tango) fall. So, do whatever you want with it (as long as you obey the GPL)—i have NO RIGHTS to stop you, nor would i want to if i did—but if you DO improve it (significantly or otherwise), i’d love it if you’d post your improvements here!
Thanks,
Adrienne
