All Projects → donotebase → quasar-tiptap

donotebase / quasar-tiptap

Licence: MIT license
A modern WYSIWYG rich-text editor built on top of tiptap and Quasar for Vue.js.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
CSS
56736 projects

Projects that are alternatives of or similar to quasar-tiptap

Tiptap
The headless editor framework for web artisans.
Stars: ✭ 13,629 (+5265.75%)
Mutual labels:  wysiwyg-editor, rich-text, tiptap
textbus
Textbus 是一个组件化的、数据驱动的富文本框架,支持在线协同编辑,同时也可以作为一个开箱即用的富文本编辑器,拥有非常好的扩展性和可定制性,是构建复杂富文本的不二之选!
Stars: ✭ 642 (+152.76%)
Mutual labels:  wysiwyg-editor, rich-text
Text
📑 Collaborative document editing using Markdown
Stars: ✭ 282 (+11.02%)
Mutual labels:  wysiwyg-editor, rich-text
Element Tiptap
🌸A modern WYSIWYG rich-text editor using tiptap and Element UI for Vue.js
Stars: ✭ 481 (+89.37%)
Mutual labels:  wysiwyg-editor, rich-text
Ng Quill
AngularJS Component for Quill rich text editor
Stars: ✭ 223 (-12.2%)
Mutual labels:  wysiwyg-editor, rich-text
django tiptap
TipTap Editor in Django
Stars: ✭ 38 (-85.04%)
Mutual labels:  wysiwyg-editor, tiptap
Angular Editor
A simple native WYSIWYG editor component for Angular 6 -10+
Stars: ✭ 428 (+68.5%)
Mutual labels:  wysiwyg-editor, rich-text
Wangeditor
wangEditor —— 轻量级web富文本框
Stars: ✭ 12,792 (+4936.22%)
Mutual labels:  wysiwyg-editor, rich-text
Flutter Quill
Rich text editor for Flutter
Stars: ✭ 177 (-30.31%)
Mutual labels:  wysiwyg-editor, rich-text
Textbus
基于组件 + 数据驱动的现代富文本编辑器
Stars: ✭ 242 (-4.72%)
Mutual labels:  wysiwyg-editor, rich-text
wysiwyg-editor-node-sdk
Node.JS SDK to ease the integration of Froala WYSIWYG Editor on server side.
Stars: ✭ 25 (-90.16%)
Mutual labels:  wysiwyg-editor, rich-text
stepmania-song-manager
Download and update song packs for StepMania with ease.
Stars: ✭ 23 (-90.94%)
Mutual labels:  quasar
ngx-wall
Helps build content editor for note-taking application
Stars: ✭ 78 (-69.29%)
Mutual labels:  wysiwyg-editor
django-hyper-editor
Django Integration of Hyper Editor
Stars: ✭ 29 (-88.58%)
Mutual labels:  wysiwyg-editor
server-monitor-ui
Server Operation Monitor
Stars: ✭ 17 (-93.31%)
Mutual labels:  quasar
awesome-tiptap
⚡ Delightful Tiptap packages and resources
Stars: ✭ 55 (-78.35%)
Mutual labels:  tiptap
quasar-ui-qiconpicker
QIconPicker - Quasar App Extension
Stars: ✭ 49 (-80.71%)
Mutual labels:  quasar
artibox
Artibox - A complete rich text editor based on Slate framework.
Stars: ✭ 21 (-91.73%)
Mutual labels:  rich-text
ckeditor-nuxt
CKEditor5 component for Nuxt.js framework. All free official plugins included.
Stars: ✭ 29 (-88.58%)
Mutual labels:  wysiwyg-editor
svelte-tiptap
Svelte components for tiptap v2
Stars: ✭ 91 (-64.17%)
Mutual labels:  tiptap

quasar-tiptap

A modern WYSIWYG rich-text editor built on top of tiptap and Quasar Framework for Vue.js.

Codacy Badge Build Status semantic-release Join the chat at discord

Examples & Demos

Features

  • Extensions: tiptap official extensions, and dozens of great extensions
  • Markdown
  • Diagram and LaTex Math formula
  • I18n support (en-us, zh-hans, pl, pt-br)
  • Fully extensible for editor extensions, menubar

I18n

  • en-us default
  • zh-hans
  • pl by @qyloxe
  • pt-br by @fal-pasa

Installation

Dependencies

quasar-tiptap is built on top of Quasar Framework and tiptap, therefore it should be used in Quasar App and depends on several packages.

# required
yarn add tiptap
yarn add tiptap-extensions

# optional (required if diagram and latex formula enabled)
yarn add vue-codemirror
yarn add mermaid
yarn add katex

quasar-tiptap

yarn add quasar-tiptap

quasar.conf.js

Use mdi-v5 icon set and v-close-popup directive.

extras: [
  'mdi-v5'
],
framework: [
  directives: [
    'ClosePopup'
  ]
]

Usage

Register quasar-tiptap globally by installing plugin, or import QuasarTiptap component as needed.

Install plugin

import Vue from 'vue'
import { QuasarTiptapPlugin, RecommendedExtensions } from 'quasar-tiptap'

Vue.use(QuasarTiptapPlugin, {
  language: 'zh-hans',
  spellcheck: true
})

Import component

<template>
  <div>
    <quasar-tiptap v-bind="options" @update="onUpdate" />
  </div>
</template>

<script>
import { QuasarTiptap, RecommendedExtensions } from 'quasar-tiptap'
import 'quasar-tiptap/lib/index.css'

export default {
  data () {
    return {
      options: {
        content: 'content',
        editable: true,
        extensions: [
          ...RecommendedExtensions,
          // other extenstions
          // name string, or custom extension
        ],
        toolbar: [
          'add-more',
          'separator',
          'bold',
          'italic',
          'underline',
          // other toolbar buttons
          // name string
        ]
      },
      json: '',
      html: ''
    }
  },
  components: {
    QuasarTiptap,
  },
  methods: {
    onUpdate ({ getJSON, getHTML }) {
      this.json = getJSON()
      this.html = getHTML()
      console.log('html', this.html)
    }
  },
  mounted () {
    // set language dynamically
    this.$o.lang.set('en-us')
  }
}
</script>

Editor Properties

Property Type Default Description
content Object|String null The editor content
editable Boolean true When set to false the editor is read-only.
extensions Array [] A list of extensions used, by the editor. This can be String, Nodes, Marks or Plugins.
toolbar Array [] A list of toolbar button used, by the editor. This can be String, Vue components
tableToolbar Array [] A list of toolbar button used, by the table. This can be String, Vue components

Extensions

Available Extensions

Extensions provided by tiptap official and quasar-tip:

export const TipTapExtensions = [
  'Bold',
  'Italic',
  'Strike',
  'Underline',
  'Code',
  'CodeBlock',
  'CodeBlockHighlight',
  'BulletList',
  'OrderedList',
  'ListItem',
  'TodoList',
  'HorizontalRule',
  'Table',
  'Link',
  'Image',
]

export const QuasarTipTapExtensions = [
  'OTitle',
  'ODoc',
  'OParagraph',
  'OBlockquote',
  'OTodoItem',
  'OHeading',
  'OAlignment',
  'OLineHeight',
  'OForeColor',
  'OBackColor',
  'OFontFamily',
  'OIframe',
  'ODiagram',
  'OKatexBlock',
  'OKatexInline',
  'OFormatClear',
]

export const RecommendedExtensions = [
  ...TipTapExtensions,
  ...QuasarTipTapExtensions
]

extensions and toolbar in options

extension toolbar Remarks
'Bold' 'bold'
'Italic' 'italic'
'Strike' 'strike'
'Underline' 'underline'
'Code' 'code'
'CodeBlock' 'code_blok'
'CodeBlockHighlight'
'BulletList' 'bullet_list'
'OrderedList' 'ordered_list'
'ListItem'
'TodoList' 'todo_list'
'HorizontalRule' 'horizontal'
'Table' 'table'
'Link'
'Image' 'photo'
'OTitle'
'ODoc'
'OParagraph'
'OBlockquote' 'blockquote'
'OTodoItem'
'OHeading' 'heading'
'OIndent' 'indent', 'outdent'
'OAlignment' 'align-dropdown', 'align-group'
'OLineHeight' 'line-height'
'OForeColor' 'fore-color'
'OBackColor' 'back-color'
'OFontFamily' 'font-family'
'OIframe' 'add-more'
'ODiagram' 'add-more'
'OKatexBlock' 'add-more'
'OKatexInline' 'add-more'
'OFormatClear' 'format_clear'

🏗 Contributing PR or ISSUE

  1. 🍴Fork it
  2. 🔀Create your branch: git checkout -b your-branch
  3. 🎨Make your changes
  4. 📝Commit your changes with Semantic Commit Messages (recommended)
  5. 🚀Push to the branch: git push origin your-branch
  6. 🎉Submit a PR to dev branch

Roadmap

A todo list will be shown in QuasarTiptap Project kanban.

Thanks

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].