How does plugins' renderElement/renderLeaf works #797
-
Hi, I found in the plugins exists that they are using a prop called renderElement and renderLeaf like: I am trying to understand where is function or component which add the html or the font-weight styling? I tried adding renderLeaf prop to editableProps being passed to the editor. and I check for my plugin (font-color) value, if exist i return it wrapped with needed styling, else I return null ... but it's breaking the basic-marks plugin styling Thank you for the efforts 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, does this answer your question? |
Beta Was this translation helpful? Give feedback.
Hi, does this answer your question?