How to add Blots under each paragraph

元气小坏坏 提交于 2019-12-13 03:36:08

问题


I'd like to have under each paragraph in the editor an emoji that can't be edited/deleted by the user (but can be clicked).

It seems that Blots are the direction to take, and https://stackoverflow.com/a/55616254/750039 seems to be the direction.

However in that question the Blot is added regardless of the content. In my case:

  1. when the editor is empty no emoji should appear.
  2. When paragraphs are being written - different emojis should appear under each and every on of them
  3. When a paragraph is deleted, the emoji should disappear as-well

来源:https://stackoverflow.com/questions/56048010/how-to-add-blots-under-each-paragraph

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!