Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 05:50:16 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Switch off default css editor backend  (Read 314 times)
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« on: March 11, 2010, 03:44:57 PM »

I think the built in css editor that you see in Droplets and Modules admin is quite annoying. It takes long to load, it makes the screen flicker nervously, and it adds nothing useful. I know, others may feel otherwise  grin

I would like to get rid of the thing, turn it off by default or remove it. Is it possible?
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Argos
Moderator
**
Offline Offline

Posts: 2161


WWW
« Reply #1 on: March 11, 2010, 11:58:14 PM »

Ah! I found the solution myself. The editor is called EditArea (http://www.cdolivet.com/editarea/editarea/docs/configuration.html), and it's in the /include/editarea folder. The file wb_wrapper_edit_are a.php has the settings for WB. By adding 2 lines to the file, you can set the default state for the editor to OFF. So default is just a clean and fast text area, and with the Advanced toggle you can invoke the editor if you want to. Actually I think that should be the default setting for next WB versions.

So if you want to turn the editor off by default, change
Code:
$min_height=300,
$toolbar='default'
to
Code:
$min_height=300,
$display='later',
$toolbar='default'

and

Code:
toolbar: $toolbar',
language: '$language'
to
Code:
toolbar: $toolbar',
display: $display',
language: '$language'
« Last Edit: March 12, 2010, 12:02:30 AM by Argos » Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
solbu

Offline Offline

Posts: 22


« Reply #2 on: March 23, 2010, 04:55:13 AM »

Nice!
I've missed this feature. smiley
Logged

My posts are licensed under a Creative Commons license
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!