'Render Chart in Rich Text Editor using Chart.js and QuillJS
I want to render charts in rich text editor, using Chart.js and QuillJs. Here is the sandbox link: https://codesandbox.io/s/stupefied-water-s5hq7?file=/src/Editor.tsx
I want to add the charts by clicking the Add button below each chart, and then render them in the QuillJS editor. I created the custom blot based on the QuillJS tutorial but I can't get the chart to render.
If I hardcoded the chart data directly into the new Chart() then the chart is rendered, but not when passing the data from the charts below
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
