X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2065624062cd59d7d21a6e1f39ae433a9668301e..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); }); };