From f96e7eec05ea49f64413253bc2cf787992f11115 Mon Sep 17 00:00:00 2001 From: Tristan Lins Date: Mon, 14 Jul 2014 08:27:19 +0200 Subject: [PATCH] Use ACE editor in newer contao versions. --- contao/dca/tl_theme_plus_javascript.php | 2 +- contao/dca/tl_theme_plus_stylesheet.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contao/dca/tl_theme_plus_javascript.php b/contao/dca/tl_theme_plus_javascript.php index f814322..d4c481b 100644 --- a/contao/dca/tl_theme_plus_javascript.php +++ b/contao/dca/tl_theme_plus_javascript.php @@ -274,7 +274,7 @@ 'allowHtml' => true, 'preserveTags' => true, 'class' => 'monospace', - 'rte' => 'codeMirror|javascript', + 'rte' => version_compare(VERSION, '3.3', '<') ? 'codeMirror|javascript' : 'ace|javascript', 'helpwizard'=> true), 'sql' => "blob NULL" ), diff --git a/contao/dca/tl_theme_plus_stylesheet.php b/contao/dca/tl_theme_plus_stylesheet.php index f7cf061..66cc0a6 100644 --- a/contao/dca/tl_theme_plus_stylesheet.php +++ b/contao/dca/tl_theme_plus_stylesheet.php @@ -278,7 +278,7 @@ 'allowHtml' => true, 'preserveTags' => true, 'class' => 'monospace', - 'rte' => 'codeMirror|css', + 'rte' => version_compare(VERSION, '3.3', '<') ? 'codeMirror|css' : 'ace|css', 'helpwizard' => true ), 'sql' => "blob NULL"