mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 23:21:47 +01:00
Added back Summernote editor. Removed emoji picker.
Thanks to ryanMushy and xet7 !
Related 84fde1ecfc (commitcomment-48956373)
This commit is contained in:
parent
b9a4ae654e
commit
47ecc654b8
4 changed files with 4 additions and 8 deletions
|
|
@ -4,7 +4,6 @@ template(name="editor")
|
|||
class="{{class}}"
|
||||
id=id
|
||||
autofocus=autofocus
|
||||
data-meteor-emoji="true"
|
||||
placeholder="{{_ 'comment-placeholder'}}")
|
||||
+Template.contentBlock
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
Template.editor.onRendered(() => {
|
||||
new MeteorEmoji();
|
||||
const textareaSelector = 'textarea';
|
||||
const mentions = [
|
||||
// User mentions
|
||||
|
|
@ -100,9 +99,7 @@ Template.editor.onRendered(() => {
|
|||
if (inputs.length === 0) {
|
||||
// only enable richereditor to new comment or edit comment no others
|
||||
enableTextarea();
|
||||
}
|
||||
/*
|
||||
else {
|
||||
} else {
|
||||
const placeholder = inputs.attr('placeholder') || '';
|
||||
const mSummernotes = [];
|
||||
const getSummernote = function(input) {
|
||||
|
|
@ -261,7 +258,6 @@ Template.editor.onRendered(() => {
|
|||
});
|
||||
});
|
||||
}
|
||||
*/
|
||||
} else {
|
||||
enableTextarea();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue