The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
WYSIWYG enabled user field?
Hi there,
I've had a scout around, and I cant find an answer to this, im sure it must be really simple and it's just that im missing something: How do you create a custom user field that lets the user put info into it using the WYSIWYG editor? I can see how you create plain old text fields (single line and multi line) from the admin control pannel, but there is no option there to make the field WYSIWIG enabled. Basically I'd like people to be able to write abit about themselves and be able to style it a bit. thanks in advance. --------------- Added [DATE]1235036843[/DATE] at [TIME]1235036843[/TIME] --------------- Hi again, this isn't a bump, I have just made some progress...and as I see there have been some views on this I presume it's handy information. You can add a wysiwyg field simply by calling the "construct_edit_toolbar" function. That function returns the id name of your wysiwyg and put the wysiwyg html into a variable called $messagearea. Then you just dump something like <div id="$editorid">$messagearea</div> into your html where you want it.....dump it into a from though yeah? Obviously :P.. However, there is still a bug: Sometimes when you submit your form the wysiwyg doesn't put it's contents into it textarea, so you end up submitting the text you started with not what you have changed it to. Does anyone know why this is and/or how to fix it? thanks. --------------- Added [DATE]1235040202[/DATE] at [TIME]1235040202[/TIME] --------------- Thanks for listening people. I have solved it now. When you submit your form just make sure that you call the js function "save_iframe_to_textarea()" and all wysiwygs will put their content into their textareas...and it's all magic! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|