GithubHelp home page GithubHelp logo

quartzy / prosemirror-suggestions Goto Github PK

View Code? Open in Web Editor NEW
83.0 83.0 12.0 146 KB

Plugin for handling suggestions in Prosemirror (e.g. autocomplete on mentions, tags, etc.)

License: Other

JavaScript 89.65% HTML 8.22% CSS 2.13%

prosemirror-suggestions's People

Contributors

adrianheine avatar benjie avatar joelewis avatar tristanpemble 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prosemirror-suggestions's Issues

tiptap integration

Hey @tristanpemble,

this is not a issue, but I haven't found any other way to reach you. I am the creator of tiptap - a prosemirror editor for Vue. I would like to integrate Mentions and Tags and have seen that you have already done a great job here. ๐Ÿ™Œ I would like to integrate prosemirror-suggestions directly but I would have to make some changes. So the question of whether I can use parts of the code? Of course I would name you in the Readme and give you endless hugs! โœŒ๏ธ

How to get the current mention dom element?

I'm having issues getting the dom element of the mention being made (the span with class ProseMirror-suggestion).

Want to get the element to position a popper.js dropdown to display suggestions.

Tried using view.domAtPos(range.from) in the onEnter hook but it returns the paragraph (p) element.
Also tried view.domSelection().anchorNode.parentElement but it's inconsistent, returns the span if the cursor is in the middle, or the p if it's at the end.

What's the proper way to do it?

Remove Mentions by characters

Hello.
First of all I want thank you for your work!
I use the tags and mentions and they work fine.
But I have just one question: for now when I click backspace - the whole mention removes (so it removes completely but not just one character). Could you please share what I do wrong and if it's possible to delete just 1 character from mention by taping backspace?

I don't get how to insert mentions in the example

Hey! Thank you for your plugin, I tried to run the example and I see the existing mention but I can't get to insert the new one using the @ symbol, could you expand the example a bit so that I can understand on how to start build on your plugin ?
Thanks a lot.

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.