
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
whimsy-editor-vue
Advanced tools
A Rich Editor component built using Vue 3, Tiptap with AI integration using Vercel AI SDK & OpenAI
Whimsy Editor is a WYSIWYG editor component built on top of Tiptap and Open AI.
Whimsy Editor is a simple WYSIWYG editor designed for Vue.js applications.
To use Whimsy Editor in your Vue project, simply install the whimsy-editor-vue NPM package:
npm install whimsy-editor-vue
Then, integrate it into your Vue components as follows:
<template>
<Editor v-model="editorContent" :completionApi="yourCompletionApiEndpoint" />
</template>
<script setup>
import { ref } from "vue";
import { Editor } from "whimsy-editor-vue";
import "whimsy-editor-vue/dist/style.css";
const editorContent = ref("");
</script>
WYSIWYG Editing: Whimsy Editor offers an intuitive What-You-See-Is-What-You-Get interface, ensuring that content creation is effortless and visually consistent.
Customizable: Customize the editor according to your unique requirements with a comprehensive range of extensions and styling options.
Slash Commands: Seamlessly integrate custom slash commands into the editor, enabling users to execute predefined actions or commands directly within the interface.
Bubble Menu: Utilize the built-in bubble menu or effortlessly integrate your own customized version, providing users with an intuitive interface for accessing essential editing tools and functionalities with ease.
AI-Powered Autocompletions: Elevate your writing process with AI-powered autocompletion suggestions that anticipate your next words or phrases based on context and language patterns, fostering productivity and enhancing the quality of your content.
| Prop | Type | Description | Default |
|---|---|---|---|
| completionApi | String | The API route to use for the OpenAI completion API. | "/api/generate" |
| className | String | Additional classes to add to the editor container. | "whimsy-editor" |
| defaultValue | JSONContent | The default value to use for the editor. | defaultEditorContent |
| format | String | Supported formats json & html | "json" |
| extensions | Extension[] | A list of extensions to use for the editor, in addition to the default whimsy extensions. | [] |
| editorProps | EditorProps | Props to pass to the underlying Tiptap editor, in addition to the default Whimsy editor props. | {} |
| onUpdate | Function | A callback function that is called whenever the editor is updated. | () => {} |
| onDebouncedUpdate | Function | A callback function that is called whenever the editor is updated, but only after the defined debounce duration. | () => {} |
| debounceDuration | Number | The duration (in milliseconds) to debounce the onDebouncedUpdate callback. | 750 |
| storageKey | String | Null | The key to use for storing the editor's value in local storage. For value null it doesn't save in local storage. | null |
| placeholder | String | Placeholder text for the editor. | "Type something here... or ++" |
| slashCommands | SlashCommandItem[] | List of commands that can be accessed using the slash(/). | [] |
| lines | Number | Determines the default height of the input element. | 3 |
| maxLines | Number | Determines the max height of the input element after which the content overflows and appears with the scroll. | 3 |
| styleVars | StyleVariables | Determines the styling variables for the editor. | See below |
{
"mainBg": "#FFFFFF",
"textColor": "#333333",
"primaryAccent": "#FFB38B",
"secondaryAccent": "#8FC1E3",
"mutedBg": "#F5F5F5",
"mutedText": "#757575",
"mutedAccent": "#FFC107",
"mutedBorder": "#E0E0E0",
"borderColor": "#BDBDBD",
"boxShadow": "0 0.125em 0.25em rgba(0, 0, 0, 0.2)",
"codeBg": "#F9F9F9",
"codeText": "#212121",
"codeBorder": "#CCCCCC",
"quoteBg": "#EEEEEE",
"quoteText": "#616161",
"quoteBorder": "#BDBDBD",
"linkColor": "#6A89CC",
"generalSpacing": "1em",
"borderRadius": "0.25em",
"baseFont": "1em"
}
Note: Ensure to define an API endpoint that matches the
completionApiprop (default is/api/generate). This is needed for the AI autocompletions to work.
We welcome contributions from the community! To contribute to Whimsy Editor Vue, please follow these guidelines:
Whimsy Editor Vue is licensed under the MIT License.
Whimsy Editor Vue was inspired by Tiptap and uses the OpenAI API for autocompletions.
FAQs
A Rich Editor component built using Vue 3, Tiptap with AI integration using Vercel AI SDK & OpenAI
The npm package whimsy-editor-vue receives a total of 0 weekly downloads. As such, whimsy-editor-vue popularity was classified as not popular.
We found that whimsy-editor-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.