View Full Version : Force-changing editor type with a plugin
Mark.B
01-29-2012, 09:00 PM
I would like to force the non-wysiwyg version of CKEditor for users of a certain browser, using this plugin code:
if (is_browser('whatever')
{
$vbulletin->userinfo[showvbcode]=0;
}
I have tried putting this at editor_toolbar_switch but it doesn't work.
Any idea where to put this?
Lynne
01-29-2012, 11:38 PM
Mark, did you mean to put this in the vB3 forum?
Mark.B
01-30-2012, 09:43 AM
No it should be vB4, sorry. Late at night.
Lynne
01-30-2012, 09:28 PM
Moved.
Maybe editor_toolbar_start?
Mark.B
02-01-2012, 07:04 PM
Thanks Lynne; I found that the only way to reliably force the change was actually to hack the includes_editor.php file and put it in there, can't see any hooks near to where I placed the code but at least it works.
I don't mind the odd file edit, I've got about a dozen now anyhow.
Lynne
02-02-2012, 12:47 AM
File edits - oh noooooos!
LOL. That is the way we used to have to always install mods, as you know. :)
ForumsMods
02-02-2012, 01:17 AM
editor_wysiwyg_compatible
if (is_browser('whatever')
{
$hook_return = 0;
}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.