Added emoji picker to card description edit and card comment edit.

Removed Summernote wysiwyg editor, package-lock.json etc.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2021-03-28 06:56:05 +03:00
parent 3ddfe7c1fd
commit 84fde1ecfc
9 changed files with 13 additions and 15811 deletions

View file

@ -1,4 +1,5 @@
Template.editor.onRendered(() => {
new MeteorEmoji();
const textareaSelector = 'textarea';
const mentions = [
// User mentions
@ -99,7 +100,9 @@ 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) {
@ -258,6 +261,7 @@ Template.editor.onRendered(() => {
});
});
}
*/
} else {
enableTextarea();
}