From 56c7d14b9a24add79119917e8b0e23a837ed924f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 31 Mar 2014 13:25:40 +0200 Subject: [PATCH] We do not force disabling of ckeditor for phones. We let ckeditor decide (currently ckeditor is disabled with android). --- htdocs/admin/fckeditor.php | 19 +++++++++++++++++++ htdocs/core/class/doleditor.class.php | 2 +- htdocs/core/menus/standard/eldy.lib.php | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/htdocs/admin/fckeditor.php b/htdocs/admin/fckeditor.php index 841b52cec1a..c1ace67bff9 100644 --- a/htdocs/admin/fckeditor.php +++ b/htdocs/admin/fckeditor.php @@ -167,8 +167,27 @@ else $editor=new DolEditor('formtestfield',isset($conf->global->FCKEDITOR_TEST)?$conf->global->FCKEDITOR_TEST:'Test','',200,$mode,'In', true, $uselocalbrowser, 1, 120, 8, $readonly); $editor->Create(); print '

'."\n"; + print '
'; print ''."\n"; + // Add env of ckeditor + // This is to show how CKEditor detect browser to understand why editor is disabled or not + if (1 == 2) // Change this to enable output + { + print '
'; + } + /* print ''; print $_POST["formtestfield"]; diff --git a/htdocs/core/class/doleditor.class.php b/htdocs/core/class/doleditor.class.php index 3bc599ed61f..04b4751bdb0 100644 --- a/htdocs/core/class/doleditor.class.php +++ b/htdocs/core/class/doleditor.class.php @@ -81,7 +81,7 @@ class DolEditor // Check if extended editor is ok. If not we force textarea if (empty($conf->fckeditor->enabled) || ! $okforextendededitor) $this->tool = 'textarea'; - if ($conf->browser->phone) $this->tool = 'textarea'; + //if ($conf->browser->phone) $this->tool = 'textarea'; // Define content and some properties if ($this->tool == 'ckeditor') diff --git a/htdocs/core/menus/standard/eldy.lib.php b/htdocs/core/menus/standard/eldy.lib.php index cc45281f1af..c564856854d 100644 --- a/htdocs/core/menus/standard/eldy.lib.php +++ b/htdocs/core/menus/standard/eldy.lib.php @@ -1283,7 +1283,7 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu { for ($j=0; $j < $tabul; $j++) { - $tabstring.='   '; + $tabstring.='     '; } }