froala / vue-froala-wysiwyg

Vue component for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
633 stars 86 forks source link

How to add default icon and RegisterCommand? #83

Open artjerom opened 5 years ago

artjerom commented 5 years ago

Trying to make something similar to this We use nuxt, froala is loaded as a plugin.

import "froala-editor/js/froala_editor.pkgd.min"; import Vue from "vue"; import VueFroala from "vue-froala-wysiwyg";

Vue.use(VueFroala);

this is the code that loads the plugin. How and where to call method RegisterCommand?

Tried import froala from "file-editor/js/frame_editor.png.min"; in this case, the froala is an empty object

nikpok commented 5 years ago

you can modify app.vue file to add custom buttons ,i have attached app.vue file with this comment. App.zip

seal713 commented 5 years ago

I tried the App.zip, but in the console it shows: __WEBPACK_IMPORTED_MODULE_0_vue_froala_wysiwyg___default.a.DefineIcon is not a function

Any clue, please.

GaddMaster commented 4 years ago

Same error. Following

m-zuro commented 3 years ago

Hi @nikpok, can you take a look at this please? I am getting the same error as above two comments.