X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8496b280c5142ead5a0c211f50865b32586d3b5c..ae2cc55131fd76e9e431278bf47bd67e64edceb0:/js/kivi.js 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); }); };