Added back Summernote editor. Removed emoji picker.

Thanks to ryanMushy and xet7 !

Related 84fde1ecfc (commitcomment-48956373)
This commit is contained in:
Lauri Ojansivu 2021-04-01 00:30:46 +03:00
parent b9a4ae654e
commit 47ecc654b8
4 changed files with 4 additions and 8 deletions

View file

@ -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();
}