projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0582e44
)
kivi.js: CKEditor macht platz für Toolbox, …
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 23 Feb 2022 12:33:16 +0000
(13:33 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Wed, 9 Mar 2022 10:50:37 +0000
(11:50 +0100)
wenn das Platzhalter-Element die Klasse 'texteditor-space-for-toolbar'
gestezt hat.
js/kivi.js
patch
|
blob
|
history
diff --git
a/js/kivi.js
b/js/kivi.js
index
31a56a4
..
5f9360f
100644
(file)
--- 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); });
};