Closed (fixed)
Project:
BUEditor
Version:
6.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Mar 2010 at 18:22 UTC
Updated:
2 Aug 2010 at 19:10 UTC
I have two templates, regular and mobile. I want to unset bueditor for mobile version. In the comment form I inspect with dsm($form);, but I can't seem to find element to unset. I can easily spot notify or attachments to unset, but not bueditor.
I guess this has to be done via js, but no idea to make it.
Any help would be very much appreciated.
Comments
Comment #1
ufku commentedTry this
drupal_add_js('if (Drupal.settings.BUE) Drupal.settings.BUE.preset = {};', 'inline');Comment #2
gausarts commentedThanks. It works.
So sorry to reopen, but I have the rest of inline javascripts to clean up as well. They are produced by smiley markups, I guess. The below code is not rendered here if I pasted it all, so I have cut it up:
Any idea how to clean it up as well? Thanks again for great support.
Comment #3
gausarts commentedComment #4
ufku commentedThat's the smileys button.
It must be starting with php:
Change the first line to
php: if ($GLOBALS['theme_key'] == 'YOUR-THEME-NAME') return;in order to disable it for your theme.If you want to alter all inline javascript for your theme, you should consider implementing THEME_preprocess_page(&$vars) and change the $vars['javascript'] in it.
Comment #5
ufku commented