Open olemarius opened 1 year ago
One more workaround for the case
let Froala;
let FroalaView;
const fakeApp = {
component(name, component) {
if (name === 'Froala') {
Froala = component;
}
if (name === 'FroalaView') {
FroalaView = component;
}
}
}
VueFroala.install(fakeApp);
export { Froala, FroalaView };
It should be possible to import Froala in a component instead of installing it globally.
import VueFroala from 'vue-froala-wysiwyg'; only provide the install method. This means that the only way to dynamically load a component locally is by dynamically installing the plugin globally like this: