[HOW TO] Add WYSIWYG Editor to Your Modifications
1 Attachment(s)
I do this as a free service, I am a student however and all donations are welcome. You can click on the Paypal icon to make a donation: https://www.paypalobjects.com/en_US/..._donate_LG.gif
I will add instructions for pulling data when editing a file. This article was done for vB 3.5 and later, I now bring you the article for vB 4.0 in regards to the editor in modifications. Working Versions: Currently 4.1.10 Testing Versions: NONE This tutorial will provide you the proper method for including the WYSIWYG editor in your modifications. I have tested this and it works so following this tutorial will provide a working editor. You are welcome to tweak it to your liking so that you get different output's or vice versa. Lets begin. Step 1. Make sure you have already added the row to your database table. The new row to add is: PHP Code:
Step 2. Open your template containing your form. Step 3. Install the provided plugin xml file. Step 3. Add the following lines of code. Now add this in place of your opening form tag (Remember to change your action to your correct file): HTML Code:
<form class="vbform block" action="file.php" method="post" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(0, 0)"> Open the file you wish to add your editor to (Make sure you have this code in the area where your template containing the editor is to be called): PHP Code:
PHP Code:
PHP Code:
PHP Code:
This is a short article/tutorial and I hope many find it useful. Even though I did not come up with the code or discover the code, I am happy to help others out as I was helped out. Preview provided at attachments. |
Instead of adding all these templates to globaltemplates, you could add this:
PHP Code:
PHP Code:
|
Thanks. :)
|
Quote:
I should ask what that does since I have never seen that code before. I'm sure others will question as well. |
Quote:
From /includes/class_bootstrap.php: PHP Code:
|
Quote:
|
I've followed the instruction, editors works as it must works, but in all pages there is that dammit yellow triangle at browser's status bar with error:
vB_XHTML_Ready has not been definied URI: http://www.microhellas.com/main/clie...tor.js?v=400b5 Maria |
Maria, can you show me the page that you get the yellow triangle? I don't get the triangle so I'm a bit concerned right now, oh yeah, what browser you viewing the page in?
|
Quote:
Thank you so much. By the way. IE8 Maria |
Hmmmm, I opened it in IE8 but I get no error report. Let me check a few things and I'll post back.
Your welcome. |
All times are GMT. The time now is 12:43 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:
|