froala/vue-froala-wysiwyg is tracked by TopGit as an open-source project, with 3 stars on GitHub, written primarily in JavaScript. Vue component for Froala WYSIWYG HTML Rich Text Editor.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
vue-froala-wysiwyg provides Vue 3 bindings to the Froala WYSIWYG editor.
Table of contents
Installation
Update editor version
Integration
Usage
Manual Instantiation
Displaying HTML
Nuxt and server-side rendering
License
Development environment setup
Installation
Install vue-froala-wysiwyg from npm:
npm install vue-froala-wysiwyg
This also installs the matching version of froala-editor, which vue-froala-wysiwyg depends on. The wrapper needs Vue 3.2 or later.
Update editor version
vue-froala-wysiwyg pins the exact froala-editor version it was built and tested against — an exact version, not a range. So froala-editor isn't meant to be updated on its own. Update the wrapper to get a newer editor:
npm install vue-froala-wysiwyg@latest
Integration
1. Register the plugin in your entry file (src/main.js, or src/main.ts in a TypeScript project).
// Import all Froala Editor plugins.
import 'froala-editor/js/plugins.pkgd.min.js';
// Import third-party plugins if you need them, with their stylesheets.
// import 'froala-editor/js/third_party/embedly.min.js';
// import 'froala-editor/css/third_party/embedly.min.css';
// import 'froala-editor/js/third_party/font_awesome.min.js';
// import 'froala-editor/css/third_party/font_awesome.min.css';
// font_awesome also needs Font Awesome itself (npm install [email protected]):
// import 'font-awesome/css/font-awesome.min.css';
// spell_checker loads WebSpellChecker from its CDN and needs a WProofreader subscription;
// pass your customer ID as the scaytCustomerId option.
// import 'froala-editor/js/third_party/spell_checker.min.js';
// import 'froala-editor/css/third_party/spell_checker.min.css';
// image_tui also needs TUI Image Editor, loaded on window.tui or passed as the tui option.
// import 'froala-editor/js/third_party/image_tui.min.js';
// import 'froala-editor/css/third_party/image_tui.min.css';
// Import Froala Editor css files.
import 'froala-editor/css/froala_editor.pkgd.min.css';
import 'froala-editor/css/froala_style.min.css';
import App from './App.vue';
import { createApp } from 'vue';
// `es/index.js` is published as CommonJS, so the default export may arrive
// wrapped. This form works whichever way the bundler resolves the package.
import * as VueFroalaModule from 'vue-froala-wysiwyg';
const VueFroala = VueFroalaModule.default?.default ?? VueFroalaModule.default;
const app = createApp(App);
app.use(VueFroala);
app.mount('#app');
This registers two global components, Froala (the editor) and FroalaView (for displaying HTML). Use them in templates as <froala> and <froalaView>, or <froala-view> in in-DOM templates.
2. Use the editor in a component, for example src/App.vue.
<template>
<froala id="edit" :tag="'textarea'" :config="config" v-model:value="model"></froala>
</template>
<script setup>
import { ref } from 'vue';
const config = {
events: {
initialized: function () {
console.log('initialized');
}
}
};
const model = ref('Edit Your Content Here!');
</script>
Vite 8 (the npm create vue default)
In a Vite 8 project whose package.json has "type": "module", a plain default import (import VueFroala from 'vue-froala-wysiwyg') doesn't return the plugin — it returns the module namespace with the plugin one level deeper. In dev, app.use() warns A plugin must either be a function or an object with an "install" function., <froala> isn't registered and the page renders blank. In a production build there is no warning at all, only the blank page. Until this is fixed in the package, import it like the entry file above does.
TypeScript
The package doesn't ship type declarations yet, so a TypeScript build (vue-tsc) stops with TS7016: Could not find a declaration file for module 'vue-froala-wysiwyg'. Add a declaration file, for example src/vue-froala-wysiwyg.d.ts:
declare module 'vue-froala-wysiwyg';
The examples in this README use plain JavaScript in <script setup>. In a TypeScript project, use <script setup lang="ts"> instead (and <script lang="ts"> for the plain block in Custom Buttons, since both blocks must use the same language), otherwise vue-tsc can't read the component (TS7016: Could not find a declaration file for module './App.vue'). With TypeScript, also type this in event callbacks:
import FroalaEditor from 'froala-editor';
const config = {
events: {
focus: function (this: FroalaEditor) {
console.log(this.selection.get());
}
}
};
Type the controls in Manual Instantiation too, for example const initControls = shallowRef<any>(null); and function initialize(controls: any).
Usage
Initialize
<!-- If model is initialized, 'Init text' text child will be overwritten. -->
<froala :tag="'textarea'" :config="config" v-model:value="model">Init text</froala>
tag sets the element the editor is created on (default: div).
There are special tags: a, button, img, input. See Special tags.
Options
You can pass editor options as a component attribute (optional).
:config="config"
You can pass any existing Froala option. Consult the Froala documentation to view the list of all the available options:
key is your Froala license key. The wrapper adds one option of its own:
immediateVueModelUpdate: (default: false) This option updates the Vue model as soon as a key is released in the editor. Note that it may affect performance.
config is read once, when the editor is created. To apply new options, re-create the component, for example by changing the Vue :key attribute on <froala> (not the key license option).
Events and Methods
Pass events in the events option, keyed by event name, with the callback as the value. Inside the callback, this is the editor instance, so use a regular function rather than an arrow function:
The model must be an object containing the attributes for your special tags. Example:
import { ref } from 'vue';
import imageUrl from './image.jpg';
const imgModel = ref({
src: imageUrl
});
The model will change as the attributes change during usage.
The model can contain a special attribute named innerHTML which inserts innerHTML in the element: If you are using 'button' tag, you can specify the button text like this:
You can define custom buttons before the editor is created. Register them once: in a plain <script> block, which runs once per module rather than every time the component is created, or in your entry file:
Gives you control over when the editor is created and destroyed, and access to the editor instance. Use it if you want to initialize the editor manually.
The import uses the same form as the entry file, which works whichever way the package resolves (see the Vite 8 note).
Then wrap the components in <ClientOnly>. Both froala and froalaView are only registered in the browser, so leaving either outside <ClientOnly> makes SSR fail to resolve it ([Vue warn]: Failed to resolve component: froalaView) and then produces a hydration mismatch:
Register custom buttons, icons and languages in the same client-only plugin, so they only run in the browser. Nuxt type-checks with the same TS7016 error, so add the declaration from TypeScript as vue-froala-wysiwyg.d.ts at the project root, where both Nuxt 3 and Nuxt 4 pick it up.
License
The vue-froala-wysiwyg project is under MIT license. However, in order to use Froala WYSIWYG HTML Editor plugin you should purchase a license for it.
Froala Editor has 3 different licenses for commercial use.
For details please see License Agreement.
Development environment setup
If you want to contribute to vue-froala-wysiwyg, you will first need to install the required tools to get the project going.
Prerequisites
Node.js — tested on 22.x and 24.x
Git
The build script calls Yarn 1, which is installed locally as a dev dependency, so you don't need it globally.
Install dependencies
npm install --ignore-scripts
Plain npm install fails: its prepublish script runs the webpack 4 build, which errors with ERR_OSSL_EVP_UNSUPPORTED on Node 17 and later.
Build
npx cross-env NODE_OPTIONS=--openssl-legacy-provider npm run build
Run Demo
npx cross-env NODE_OPTIONS=--openssl-legacy-provider npm run dev
cross-env is one of the project's dev dependencies, so these commands work the same in Bash, PowerShell and cmd.
How active is development on froala/vue-froala-wysiwyg?
The most recent commit recorded on froala/vue-froala-wysiwyg was 8 days ago, based on the GitHub push timestamp. The repository has 1 forks — one of the better signals of community interest.
How many stars does froala/vue-froala-wysiwyg have?
froala/vue-froala-wysiwyg has 3 GitHub stars — refresh the page for the live number, or check github.com/froala/vue-froala-wysiwyg. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is froala/vue-froala-wysiwyg open source?
TopGit's metadata for froala/vue-froala-wysiwyg does not record a license. Most public repositories on GitHub ARE open source, but the exact terms vary — verify by opening the LICENSE file directly.
What is froala/vue-froala-wysiwyg?
froala/vue-froala-wysiwyg (froala/vue-froala-wysiwyg) is a JavaScript project on GitHub. From the project's own README: Vue component for Froala WYSIWYG HTML Rich Text Editor.
Where do I read more about froala/vue-froala-wysiwyg?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/froala/vue-froala-wysiwyg is the definitive source.
Read full README in the tab above.
Curious whether vue-froala-wysiwyg is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about vue-froala-wysiwyg.