Error while adding Quill Emojis to editor
See original GitHub issueI tried to add Quill Emojis to editor but I am getting console error as Uncaught ReferenceError: Quill is not defined
This is I have tried so far:
<template>
<div id="app">
<vue-editor v-model="content"></vue-editor>
</div>
</template>
<script>
import { VueEditor, Quill } from 'vue2-editor';
import Emoji from 'quill-emoji/dist/quill-emoji';
Quill.register('modules/quill-emoji', Emoji);
export default {
name: 'vue2editor',
components: { VueEditor },
data() {
return {
content: "<h1>Some initial content</h1>",
editorSettings: {
modules: {
toolbar: {
container: [
[{'size': ['small', false, 'large']}],
['bold', 'italic', 'underline', 'strike'],
['blockquote', 'code-block'],
[{ 'header': 1 }, { 'header': 2 }],
[{ 'list': 'ordered' }, { 'list': 'bullet' }],
[{ 'script': 'sub' }, { 'script': 'super' }],
[{ 'indent': '-1' }, { 'indent': '+1' }],
[{ 'direction': 'rtl' }],
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
[{ 'color': [] }, { 'background': [] }],
[{ 'font': [] }],
[{ 'align': [] }],
['clean'],
['link', 'image', 'video'],
['emoji'],
],
handlers: {
'emoji': function () {}
},
},
toolbar_emoji: true,
short_name_emoji: true,
textarea_emoji:true,
},
},
text: null,
};
},
};
</script>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (2 by maintainers)
Top Results From Across the Web
Quill-emoji: Quill editor emoji remove issue - Stack Overflow
The demo I tested with uses Quill 1.3.5 and the latest master version of Quill Emoji. Before deleting emoji: Quill editor panel and...
Read more >quill-emoji - npm
Start using quill-emoji in your project by running `npm i quill-emoji`. There are 22 other projects in the npm registry using quill-emoji.
Read more >API - Quill Rich Text Editor
Quill is a free, open source WYSIWYG editor built for the modern web. Completely customize it for any need with its modular architecture...
Read more >Add an emoji picker to the textarea in two steps | TinyMCE
When working within a React application, if you receive an error that states “could not load emoticons” this means that editor init (tinymce....
Read more >ngx-quill | Yarn - Package Manager
include theme styling: bubble.css or snow.css of quilljs in your index.html (you can find them in node_modules/quill/dist ), or add them in your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Kind of work this way:
Not a perfect solution however:
As you can see, there is an “extra” emoji button inserted in the editor (don’t know why). Also, the shortcut
:
to add an emoji directly doesn’t work (issues are already open in the quill emojis module project about that).@M1CK431 thank you for your help the emoji in the textarea you can hide it with