|
@@ -1,5 +1,4 @@
|
|
Template.editor.onRendered(() => {
|
|
Template.editor.onRendered(() => {
|
|
- new MeteorEmoji();
|
|
|
|
const textareaSelector = 'textarea';
|
|
const textareaSelector = 'textarea';
|
|
const mentions = [
|
|
const mentions = [
|
|
// User mentions
|
|
// User mentions
|
|
@@ -100,9 +99,7 @@ Template.editor.onRendered(() => {
|
|
if (inputs.length === 0) {
|
|
if (inputs.length === 0) {
|
|
// only enable richereditor to new comment or edit comment no others
|
|
// only enable richereditor to new comment or edit comment no others
|
|
enableTextarea();
|
|
enableTextarea();
|
|
- }
|
|
|
|
- /*
|
|
|
|
- else {
|
|
|
|
|
|
+ } else {
|
|
const placeholder = inputs.attr('placeholder') || '';
|
|
const placeholder = inputs.attr('placeholder') || '';
|
|
const mSummernotes = [];
|
|
const mSummernotes = [];
|
|
const getSummernote = function(input) {
|
|
const getSummernote = function(input) {
|
|
@@ -261,7 +258,6 @@ Template.editor.onRendered(() => {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- */
|
|
|
|
} else {
|
|
} else {
|
|
enableTextarea();
|
|
enableTextarea();
|
|
}
|
|
}
|