I really like the API of Prosemirror, complex things are made very simple. But unfortunately very basic stuff is extremely hard to get done in prosemirror !!
I am facing difficulties making Suggestions in Prosemirror. BELIVE ME ITS VERY VERY HARD BY ALL MEANS.
Basic implementation in my mind is very simple. In my use case i need suggestions whenever:
these characters are pressed.
Here is the general flow in my mind.
- Detect the character
- Show the html
selectattribute on DOM
- User will select a value and on press Enter, inline node gets added (different for each)
Why is it so hard?
Documentation really lags the way Plugins works and how to get it done using Decorations(for select).
I really believe either it will take an year for me to develop it or either it will have to drop prosemirror, but alas, whatever other option i have, it make hard things even harder and prosemirror makes simple things very hard to get done !!! I am seriously finding a balance !!!