From f94425b8eabeb99abcb6f0fb2759cc9ce3d49f3f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 23 Feb 2022 13:33:16 +0100 Subject: [PATCH] =?utf8?q?kivi.js:=20CKEditor=20macht=20platz=20f=C3=BCr?= =?utf8?q?=20Toolbox,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit wenn das Platzhalter-Element die Klasse 'texteditor-space-for-toolbar' gestezt hat. --- js/kivi.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/kivi.js b/js/kivi.js index 31a56a443..5f9360f66 100644 --- a/js/kivi.js +++ b/js/kivi.js @@ -347,6 +347,14 @@ namespace("kivi", function(ns) { var editor = CKEDITOR.inline($e.get(0), config); $e.data('ckeditorInstance', editor); + if ($e.hasClass('texteditor-space-for-toolbar')) + editor.on('instanceReady', function() { + var editor = $e.ckeditorGet(); + var editable = editor.editable(); + $(editable.$).css("margin-top", "30px"); + }); + + if ($e.hasClass('texteditor-autofocus')) editor.on('instanceReady', function() { ns.focus_ckeditor($e); }); }; -- 2.20.1