1 Attachment(s)
Hello all,
The code to include qr editor is: 1.- PHP File Code:
$editorid = construct_edit_toolbar('', false, 'nonforum', false, true, false, 'qr'); Code:
<div class="wysiwyg_block"> Maria |
Quote:
thank you so much, this was excaktly what i needed I can get this working just fine, but the full editor wont work for me message returns blank.. But this is fine,, Tx Maria ;) :up: |
Quote:
Code:
$editorid = construct_edit_toolbar($profile['bodytext'],1,'',0,1,($vbulletin->userinfo['userid'])); Maria |
I dont know man... I copy and pasted your code EXACTLY and I'm still getting the same error.
Code:
Uncaught ReferenceError: vB_Text_Editor is not defined |
Quote:
Code:
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script> Quote:
Maria |
Heh, sorry, woman... Anyways, I got all that and it's not making a difference, text editor buttons dont work... the error pops up on the console in Chrome too... This is all my code related to this...
Code:
if ($perms['comment']) Code:
$templater->register('editorid', $editorid); Code:
<vb:if condition="$perms['comment']"> Everything works fine if I switch to the FE, instead of the QR... but I don't want to use the FE in this specific spot. |
Quote:
Code:
enctype="multipart/form-data" Code:
class="block vbform" |
The multipart/form-data encoding type shouldn't be required, as I'm not supporting attachments in this form. However, i added both that and the class just to test it out, and neither made a difference (except that the class made the style look ugly, which is why I removed it in the first place).
Buttons still not working. |
Quote:
Nope still wont transfer "message / bodycontents" Ive made a video exsample http://www.screencast.com/t/M2U2ZGU1NGUt wow screencast stinks,, youtube for the win.. http://www.youtube.com/watch?v=MS2UXqNOA-0 i changed the "Type="POST" to TEST so i get the entire line postet in my URL field for debugging.. and as seen on the video, message= thats it.. --------------- EDIT / UPDATE If i change the editor mode to view BBcode (Aa button topright in editor) the text submit fine, and it submits as wysiwyg=0 then it works.. which is strange.. so it has to be something with the initial setup... --------------- EDIT / UPDATE 2 - it works if im logged out, if im logged in, it dosent submit the textarea named message.. got to be login info in the php.. --------------- FINAL EDIT just using Quick reply box, its the only one working for me.. the full editor got some problems with user permissions.. |
@Vaupell
i got the same problem ! but i am not as far as your edits describe - i want to figure out, how it works in a proper way!does anybody know a solution ? |
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'])); |
Quote:
Does anyone have a "cleaner" solution for the long-term? |
How to disable WYSIWYG advanced editor? I want to use only standart in my mod.
Because in Firefox and IE I cant send with my form. Or, how I remove a button from tollbar? |
I od have a mysterious problem, maybe a handsome guy could lend me a helping hand.
I followed all the instructions down to the end and it works with one simple failure: When I use the advanced WYSIWG a formated text is stored in my db as plain text. Any ideas why bbcodes are ripped off? kind regards |
I may have a solution to the WYSIWYG problem here.
Change: PHP Code:
PHP Code:
|
Does this need to be updated for the new editor or is there a newer How To elsewhere?
|
Quote:
|
As I have returned to vBulletin I will be updating this article to work with any changes incurred from 4.0.x to 4.1.x
|
Hi Steve,
Do you have any updates on this? I can't seem to get this to work with 4.1.5. |
Quote:
In your php near the beginning: PHP Code:
PHP Code:
HTML Code:
<script type="text/javascript" src="clientscript/vbulletin-editor.js?v={vb:raw vboptions.simpleversion}"></script> HTML Code:
|
Wow! I so wasn't expecting such a quick reply. This worked, thanks!
Now I have to dig into what is the difference between what I was trying to use and what you posted here.... After I realized that the original work doesn't work on 4.1.5, I basically ripped apart newthread.php and newthread template from vb and came up with almost exactly what you posted. I probably left out a semi colon or something:) |
I will get this updated in the next day or so. Thanks bananalive for the update, I will check the difference and get an update done.
|
Probably a stupid question, but how do we retrieve the text inside the messagearea?
|
When passing the data, it is passed as 'message'.
|
pls tut add WYSIWYG to admincp :D
|
1 Attachment(s)
I integrate it into the admincp but it does not display error icon. :confused:
|
how to add CKEditor to my custom php page without using TemplateEngine of vbb. Thanks
|
I've come back to this to update my product from the old WYSIWYG to CKEditor and after following the instructions here I'm just getting an empty box - no editor, text area or buttons.
Could anyone offer any advice what could be going wrong or even offer a clean working version I could try? I'm running the latest 4.1.7 PL2. A full new article would definitely be worthwhile if someone in the know could spare the time as the old one is now so outdated it's just confusing. Thanks |
yes could some one explain how to add this new vb editor .. it would be great appreciated
|
I will be testing this on 4.1 platform tonight or tomorrow. First my homework for class then coding. :P
|
Quote:
|
All times are GMT. The time now is 04:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|