kommitters / editorjs-tooltip

Tooltips for editorjs
https://www.npmjs.com/package/editorjs-tooltip
MIT License
37 stars 15 forks source link

#38 Custom tooltip color and tooltip text color. #40

Closed MarioRodriguezS closed 2 years ago

MarioRodriguezS commented 2 years ago

Description

To customize the tooltips was necessary to implement a Mutation Observer because the tooltip tag rendered by editorjs is dynamic, and it changes the content when the tooltips are hovered with the mouse. Also, in the case of the color tooltip, it was necessary to insert rules in the :before and :after pseudo-elements with JavaScript.

Fix #38

juanhurtado10 commented 2 years ago

@MarioRodriguezS as this is a tool config, the Readme file should include these newly config options

MarioRodriguezS commented 2 years ago

@MarioRodriguezS as this is a tool config, the Readme file should include these newly config options

Sure! I forgot it.