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

@ -3,5 +3,5 @@ template(name="descriptionForm")
.new-description.js-new-description(
class="{{#if descriptionFormIsOpen}}is-open{{/if}}")
form.js-new-description-form
+editor(class="js-new-description-input" data-meteor-emoji-large="true" autofocus="autofocus")
+editor(class="js-new-description-input" autofocus="autofocus")
| {{getUnsavedValue 'cardDescription' _id getDescription}}

View file

@ -4,6 +4,7 @@ template(name="editor")
class="{{class}}"
id=id
autofocus=autofocus
data-meteor-emoji="true"
placeholder="{{_ 'comment-placeholder'}}")
+Template.contentBlock

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