| @@ -1,4 +1,5 @@ | ||
| 1 | +import { refreshBlockHighlight } from '@agent/lib/block-highlight'; | |
| 1 | 2 | import { getDynamicDuotoneMap } from '@agent/lib/svg-blocks-scanner'; |
| 2 | 3 | import { replaceDuotoneSVG } from '@agent/lib/svg-helpers'; |
| 3 | 4 | import { parse } from '@wordpress/blocks'; |
| 4 | 5 | import { useSelect } from '@wordpress/data'; |
| @@ -22,8 +23,9 @@ | ||
| 22 | 23 | if (!frontStyles.current) { |
| 23 | 24 | frontStyles.current = style.innerHTML; |
| 24 | 25 | } |
| 25 | 26 | style.innerHTML = css; |
| 27 | + refreshBlockHighlight(); | |
| 26 | 28 | }, [css]); |
| 27 | 29 | |
| 28 | 30 | // Handle the editor |
| 29 | 31 | useEffect(() => { |