- Moderated by:
- Support Team
-
- rank:
-
Freshman
- registered:
- December 1969
- Status:
- offline
- last visit:
- 16.03.06
- Posts:
- 10
What I really would like to know is how you turn off the WYSIWYG editor for some modules. There is no real documentation to be found anywhere on this subject. If there is please point the way!
thanks -
- rank:
-
Registered User
- registered:
- December 1969
- Status:
- offline
- last visit:
- 16.01.03
- Posts:
- 1
I added the following line to includes/page_header.php at about line 500 (just before "include("header.php")):
Code
pnConfigSetVar('WYSIWYGEditor', 0);
Seems to work -- I don't get the editor anymore in phpBB2, at least not that I have come across. Anyone else tried this? If so, can you let me know if you run into any problems. -
- rank:
-
Helper
- registered:
- September 2002
- Status:
- offline
- last visit:
- 27.10.05
- Posts:
- 115
Yes it is, it's a lot of messing around though.
I was able to edit the HTML files in the javascript and one javascript file directory to take out most of the functions and only leave in the text formatting and upload function (and swapmode).
You will need to edit HTML and javascript to do this, but someone with limited programming knowledge like me can :) -
- rank:
-
Helper
- registered:
- September 2002
- Status:
- offline
- last visit:
- 27.10.05
- Posts:
- 115
CyberSliver
Currently the only way to disable the WYSIWYGEditor in a module (or rather a page) is by modifying the module.
Calljust before the header.Code
pnConfigSetVar('WYSIWYGEditor', 0);
Worked for me too. (in Weblinks mod) -
- rank:
-
Helper
- registered:
- September 2002
- Status:
- offline
- last visit:
- 27.10.05
- Posts:
- 115
Actually, it didn't work perfectly. The problem being that you need to turn the WYSIWYG editor back on! When I used the above solution, it kept changing the setting (globally) for the WYSIWYG editor to 'No' and the only way I could get it back on was to go into the settings in the admin menu and reselect the radio button to 'Yes' again. :(
If this happened to you too, do this:
Wherever you have entered
Code
pnConfigSetVar('WYSIWYGEditor', 0);
add this just before the footer.php of the same subroutine (found just before the leftmost '}':
Code
pnConfigSetVar('WYSIWYGEditor', 1);
(the only problem is that if someone jumps out of the page while in the middle of an edit (ie. before they reach the end of the routine), the variable will not have been set back to '1' in the admin menu (settings).
It's possible that I'm doing something wrong here since I'm not a programmer. The above solution is the only one that I can think of.
Anyone any better ideas?
For instance, why not place
Code
pnConfigSetVar('WYSIWYGEditor', 0);
after the header.php statement of the page you want to disable WYSIWYG and then have the
Code
pnConfigSetVar('WYSIWYGEditor', 1);
placed somewhere near the top of the /html/header.php file? You would only need to place this once since it is called by all PN modules
That way, WYSIWYG would always have the value 1 in all pages except the ones that you wanted it dissabled. -
- rank:
-
Helper
- registered:
- September 2002
- Status:
- offline
- last visit:
- 27.10.05
- Posts:
- 115
SadGeezer
For instance, why not place
Code
pnConfigSetVar('WYSIWYGEditor', 0);
after the header.php statement of the page you want to disable WYSIWYG and then have the
Code
pnConfigSetVar('WYSIWYGEditor', 1);
placed somewhere near the top of the /html/header.php file? You would only need to place this once since it is called by all PN modules
That way, WYSIWYG would always have the value 1 in all pages except the ones that you wanted it dissabled.
I'm afraid that didn't work either :(
Does anyone know how to turn off WYSIWYG (Virtual Mode) in specific modules? -
- rank:
-
Software Foundation
- registered:
- December 1969
- Status:
- offline
- last visit:
- 15.11.08
- Posts:
- 4481
see here and here for some nice workarounds...
--
regards from germany
..::[Zikula Application Framework]::.. ..::[SEO-Blog]::.. ..::[CMS Sicherheit]::..
