Open MJ-sayeh opened 6 years ago
it shows the error safari: TypeError: undefined is not an object (evaluating 'this.emitter.emit') update quill.js 4329 FireFox
TypeError: this.emitter is undefined[Learn More] quill.js:4329:9 update http://cdn.quilljs.com/1.3.6/quill.js:4329:9
ScrollBlot/_this.observer< http://cdn.quilljs.com/1.3.6/quill.js:7118:13
on the console when ever i insert this line Quill.register({ 'formats/video': Video });
i did add quill to it's own root
quill.root.quill = quill;
here's my code
`Quill.register({ 'formats/video': Video }); let quill = new Quill('#editor', { modules: { toolbar: [ [{ size: [ 'small', false, 'large', 'huge' ]}], ['bold', 'italic',"underline"], ['link', { 'align': [] }, 'image',"video" ], [{ list: 'ordered' }, { list: 'bullet' },{ 'direction': 'rtl' }] ] }, placeholder: 'Hello World', theme: 'snow' });
quill.root.quill = quill; // Embed the video into the editor: let src = 'https://www.youtube.com/embed/o-KdQiObAGM'; quill.insertEmbed(0, 'video', src, 'user');`
Same problem. Using Quill 1.3.6.
it shows the error safari: TypeError: undefined is not an object (evaluating 'this.emitter.emit') update quill.js 4329 FireFox
TypeError: this.emitter is undefined[Learn More] quill.js:4329:9 update http://cdn.quilljs.com/1.3.6/quill.js:4329:9
ScrollBlot/_this.observer< http://cdn.quilljs.com/1.3.6/quill.js:7118:13
on the console when ever i insert this line Quill.register({ 'formats/video': Video });
i did add quill to it's own root
quill.root.quill = quill;
here's my code
`Quill.register({ 'formats/video': Video }); let quill = new Quill('#editor', { modules: { toolbar: [ [{ size: [ 'small', false, 'large', 'huge' ]}], ['bold', 'italic',"underline"], ['link', { 'align': [] }, 'image',"video" ], [{ list: 'ordered' }, { list: 'bullet' },{ 'direction': 'rtl' }] ] }, placeholder: 'Hello World', theme: 'snow' });
quill.root.quill = quill; // Embed the video into the editor: let src = 'https://www.youtube.com/embed/o-KdQiObAGM'; quill.insertEmbed(0, 'video', src, 'user');`