Adding classes to editor form fields template

Adding classes to editor form fields template

belubelu Posts: 38Questions: 14Answers: 0

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!

Answers

  • belubelu Posts: 38Questions: 14Answers: 0
    edited December 2019

    *replacing the data-editor-template='fieldname' - tag

  • allanallan Posts: 61,726Questions: 1Answers: 10,109 Site admin

    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

This discussion has been closed.