Good day to everyone
I need some help with admin panel
The goal is to add syntax highlighter for HTML block (\luya\cms\frontend\blocks\HtmlBlock) in admin area
I was thinking about to use CodeMirror (or any other plugin), but it needs to bi initialized on a specific textarea (by id or element)
There could be much more than one html block on one page… so i think i need some event (like “html block editor is opened”) to init the highlighter script on this event on given textarea…
But i don`t know angular at all., so this is a problem…
Could some one advice how to do this, or may be which way to search/read…?
As alternative i think i could try to use some script or jquery plugin to init syntax highlighter on every textarea in cms page edit… but i think it is not good idea