Quote:
Code:
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script> |
Have som problems here. The code:
PHP Code:
Any ideas? EDIT: It's only in the WYSIWYG-mode that it refuses to save the new data. In the regular mode where the bb-code is visible unformatted it saves without problems. |
What exactly does this part do?
Code:
onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})" |
Quote:
1.- Add at the end another return. eg Code:
onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars}); return validateForm_vbform()" Code:
input type="submit" class="button" name="sbutton" value="{vb:var vbphrase.microdating_submit}" onclick="return validateForm_vbform()"> |
Alright, thanks for the answer... although I did remove it, and it still saved the data without issue...
However, I have a different question... is there a reason why the editor controls would randomly disappear from the editor? No buttons or smilies are appearing, just the text box. |
Quote:
This javascript moves the wysiwyg data into textbox before it submits the form. |
Okay... next question... how do I DISABLE the wysiwyg option with a text box?
On my quick reply form, i want it to use the standard editor, with no WYSIWYG option. --------------- Added [DATE]1273268438[/DATE] at [TIME]1273268438[/TIME] --------------- I dont think onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.inputname.value, {vb:raw vboptions.postminchars})" works correctly. I have that code in my forms, and it still won't save the text when I am in WYSIWYG mode. It still saves perfectly fine in the standard editor. |
so guys, i figured out the problem, that you there is no message if you are in the wysiwyg mode! actually my soluiton is not that pretty, but it works fine.
PHP Code:
but that actually result in pure html which will arrive the db |
Steve,
Do you happen to have the instructions to do this on the 3.8 series archived? Thanks. |
Thanks for this great thread. It saved me a lot of time. But I was wondering if it was possible to remove the smilies panel easily only for my mod? Or maybe I should use the WYSIWYG from the quick reply?
If only the second option available, what's the variable name? --- edit --- Ok, after looking into the source code I found out: Code:
$editorid = construct_edit_toolbar('',1,'signature',0,1,($vbulletin->userinfo['userid'])); |
All times are GMT. The time now is 05:48 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|