openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e20f5c52857d01e2ece247908fb44064a9efd2c9
parent 5afefa52a84542eeea5e82fb2ebec40ef7633801
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 20 Dec 2017 01:23:38 +0100

Code-Editor passt sich der Größe an.

Diffstat:
modules/template-engine/components/html/editor/editor.js | 1+
themes/default/css/openrat-ui.less | 7+++++++
themes/default/layout/index.php | 2+-
3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/modules/template-engine/components/html/editor/editor.js b/modules/template-engine/components/html/editor/editor.js @@ -95,6 +95,7 @@ $(document).on('orViewLoaded',function(event, data) { var editor = CodeMirror.fromTextArea( this, { lineNumbers: true, + viewportMargin: Infinity, mode: mode /** settings **/ }) diff --git a/themes/default/css/openrat-ui.less b/themes/default/css/openrat-ui.less @@ -1483,3 +1483,9 @@ div.filler div.header a.back.button img.image-icon { visibility: hidden; } + + +/* Make Codemirror Auto-Resizable */ +.CodeMirror { + height: auto; +}+ \ No newline at end of file diff --git a/themes/default/layout/index.php b/themes/default/layout/index.php @@ -27,9 +27,9 @@ <?php foreach( $jsFiles as $jsFile ) { ?> <script src="<?php echo $jsFile ?>" defer></script> <?php } ?> + <link rel="stylesheet" type="text/css" href="<?php echo OR_MODULES_DIR . 'editor/codemirror/lib/codemirror.css' ?>" /> <?php foreach( $cssFiles as $cssFile) { ?> <link rel="stylesheet" type="text/css" href="<?php echo $cssFile ?>" /> <?php } ?> - <link rel="stylesheet" type="text/css" href="<?php echo OR_MODULES_DIR . 'editor/codemirror/lib/codemirror.css' ?>" /> <style type="text/css"> <?php echo $themeCss ?> </style>