Poll
Are you interested in further development of this extension?
Yes 5
Yes, and I’ll help! 0
No 1
Total Votes: 6
You must be a logged-in member to vote
widgEditor extension VERY ALPHA but usable!
Posted: 20 February 2007 01:31 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  06-12-2002

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

File Attachments
widgEditor_Extension.zip  (File Size: 41KB - Downloads: 154)
Profile
 
 
Posted: 20 March 2007 04:31 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  06-12-2002

I’ve made a couple of improvements to this extension and am releasing it as version 1.01. It’s still REALLY alpha software, but I’ve been using it and it seems to be working (except for having to hardcode images!)

Changes made are as follows:

* Packed the WidgEditor.js file using jsJuicer to reduce file size.
* Made it so that any textarea set to 5 or fewer rows does NOT get WidgEditor applied—this gives a little bit of extra control. (I chose 5 because 6 is the default EE setting for new fields; this way you have to think a little bit to override the configuration, but you don’t have to use a TINY textarea.)

You can still get it from www.eidolongroup.com/Stuff/widgEditor_Extension.zip; I’ve also attached it to the first post in this thread.

Adrienne

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 66476 Total Logged-in Users: 46
Total Topics: 84883 Total Anonymous Users: 18
Total Replies: 455409 Total Guests: 252
Total Posts: 540292    
Members ( View Memberlist )
Newest Members:  ckitiliRemerceFuturelabdjc200flyingzgpyrodigymarcus@localhorstcilianixsterreliance