mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 11:49:02 +08:00
The headless rich text editor framework for web artisans.
build | ||
examples | ||
packages | ||
.eslintrc.js | ||
.gitignore | ||
CONTRIBUTING.md | ||
lerna.json | ||
LICENSE.md | ||
package.json | ||
README.md | ||
yarn.lock |
tiptap
A rich-text editor for Vue.js
Installation
npm install tiptap
Setup
<template>
<editor>
<!-- Add HTML to the scoped slot called "content" -->
<div slot="content" slot-scope="props">
<p>Hello world</p>
</div>
</editor>
</template>
<script>
// Import the editor
import { Editor } from 'tiptap'
export default {
components: {
Editor,
},
}
</script>
Editor Properties
Property | Type | Default | Description |
---|---|---|---|
editable | Boolean | true |
When set to false the editor is read-only. |
doc | Object | null |
The editor state object used by Prosemirror. You can also pass HTML to the content slot. When used both, the content slot will be ignored. |
extensions | Array | [] |
A list of extensions used, by the editor. This can be Nodes , Marks or Plugins . |
@update | Function | undefined |
This will return the current state of Prosemirror on every change. |
Extensions
Soon … Until then you can take a look at the embed example.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.