Version: 1.00, by eiSecure
Developer Last Online: Apr 2003
Version: 2.2.x
Rating:
Released: 06-24-2002
Last Update: Never
Installs: 64
No support by the author.
WYSIWYG Post Editor
Description:
Lets you have a Microsoft Word/FrontPage-like editing box when you reply to threads, create new threads, and/or edit posts.
Features:
- Supports BBCode
- HTML is converted to BBCode
- Gives user a visual layout of what he/she is typing
- Supports dynamic bolding/underlining/etc.
- Has cool-looking Office XP-styled buttons.:bunny:
- Allows users to choose wether to use this editor, or vB's default one.
- Makes BBCodes obsolete
- And many more...:bunny:
The standard buttons from the old editor, Quote and IMG, is there an easy way of hacking those into your WYSIWYG editor? I installed the editor, and my users are split half and half between loving it, and switching it off because they're missing those two buttons.
Yes, it is possible to add thoes buttons to the toolbar. However, they will only print out the vBCode, and not show how they will look when the user submits the form.
If you select a different font and/or size for one of the words in a message after you have written it and want to edit it before sending it, it will set it fine. But if you go to do another word right after that, it is still set to what it was on the last word instead of going back to the default size like when you first came into the message. Sorry if it sounds confusing but the wife did the best she could at explaining it with what she had (me).
Quote:
Originally posted by eiSecure huh? I'm kinda confuesd about what you two are asking...
Originally posted by Boofo If you select a different font and/or size for one of the words in a message after you have written it and want to edit it before sending it, it will set it fine. But if you go to do another word right after that, it is still set to what it was on the last word instead of going back to the default size like when you first came into the message. Sorry if it sounds confusing but the wife did the best she could at explaining it with what she had (me).
OK, I see what you're saying. Now that I know how to do the cursor thing I should be able to get this and the depressed B/I/U buttons done.
Originally posted by Erwin Superman - care to share your vbcode.js for the cursor position???
Not done yet. I just have a prototype finished. Basically I made a blank page with an iframe and neutered the vbcode.js so I had just the relevant functions and I was able to get it to work. I have to be at my church in about 30 minutes, but I'll see if I can't bang out some code super-fast
OK, I don't have the B/I/U thing done yet, but here is the code to put the smily at the cursor position. It may be buggy: I don't have time to thouroughly test it right now. Also the pop-up smily box won't work correctly.
First of all, you need to find the line in the ****_wysiwyg templates that says:
Code:
<iframe width=......>
Add this to the end of that line before the >:
Code:
onblur="getActiveText(this);"
Then use the updated vbcode2.js attached. Make a backup of your previous copy of vbcode2.js before uploading this one in case it doesn't work. Works fine on my forum.
EDIT: Oops! Forgot to give credit to the original creator of the hack to insert the smilies at the cursor! Thanks!