Adding classes to editor form fields template
Adding classes to editor form fields template

Hi there,
is there something like a html template for the html structure that is inserted by editor, when using custom templates?
In other words, I would like to add some html classes to the standard classes, that are inserted by editor, when replacing the
tag.
thanks in advance!
This discussion has been closed.
Answers
*replacing the data-editor-template='fieldname' - tag
Hi,
No - I'm afraid there isn't. What you'd need to do is modify the element classes as you need when the Editor has been created.
For example you can use
field().node()
to get a field element and then modify it, or its children as you need.Regards,
Allan