X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=js%2Fkivi.js;h=5f9360f6661e415cce846c577de8eb7ae2bebf7c;hb=f94425b8eabeb99abcb6f0fb2759cc9ce3d49f3f;hp=31a56a4434df811a1b0e6ad07d5c31c6a57f88f2;hpb=0582e44f1f8b8ab4c8e63bdf1f06c7cb95353c67;p=kivitendo-erp.git 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); }); };