Skip to content

Commit cf5dccd

Browse files
authored
show char count (#13)
1 parent 821ba80 commit cf5dccd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

public/js/editor.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ pimcore.bundle.tinymce.editor = Class.create({
6363
language = {};
6464
}
6565

66-
const toolbar1 = 'undo redo | blocks | ' +
66+
let charCountPlugin = '';
67+
if (this.maxChars !== -1) {
68+
charCountPlugin = '| wordcount ';
69+
}
70+
71+
72+
const toolbar1 = `undo redo ${charCountPlugin} | blocks | ` +
6773
'bold italic | alignleft aligncenter ' +
6874
'alignright alignjustify | link hr charmap';
6975

0 commit comments

Comments
 (0)