Giter Club home page Giter Club logo

vue-tiptap's Introduction

vue-tiptap

npm npm GitHub license npm

Example of using tiptap 2 as a Vue 3 component without being completely renderless, so you can see how to use it inside your own components or even use it right away. It can be imported as a Vue 3 component, and you can see in the example directory how it would be used inside your application.

Note: now tiptap has their own examples and components for different frameworks (including vue 2 and vue 3), so maybe you should take a look to the official package @tiptap/vue-3. This package will not be updated anymore.

screenshot

Install and Usage

# install dependencies
npm install

# build component
npm run build

# serve demo
npm run dev

License

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

SVG Icons from the original TipTap package.

vue-tiptap's People

Contributors

dependabot[bot] avatar neverbot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-tiptap's Issues

Select content can't toggle menu button active

In official demo, menu button will be selected if I select content.
For eg:
If the content style I select is H2, then H2 button will be select, but this repo is not.

I guess it is because this repo use static icons

Making styles match

THanks for the example. Tiptap doesnt display any icons or styles, being renderless, so this example's useful.
WOuld it be possible to make it look exactly like https://tiptap.scrumpy.io/ ? A lot of the styles are missing, for example,

  • the buttons have a border
  • code blocks dont get styled
  • selecting a block within the editor that has been styled does not highlight the relevant styles (it does on https://tiptap.scrumpy.io/)

Advanced examples

Would be great to have all of these options (as you can see at https://tiptap.scrumpy.io/) enabled by default:

Basic  Menu Bubble  Floating Menu  Links  Images  Hiding Menu Bar  Todo List  Tables  Search and Replace  Suggestions  Markdown Shortcuts  Code Highlighting  History  Read-Only  Embeds  Placeholder  Focus  Collaboration  Title  Trailing Paragraph  Drag Handle  Export HTML or JSON

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.