Skip to main content
1-Visitor
October 10, 2017
Question

Trigger to change heading to default font

  • October 10, 2017
  • 1 reply
  • 1092 views

Hello Everyone!

 

I am trying to build a trigger that changes the font size of an Item to H2  everytime the category "Heading" is chosen automatically. My knowledge of javascript is somewhat limited. I've spent a couple of days trying to achieve that, but I am getting errors. 

Would someone kindly post a simple script of how that can be achieved? That'd be much appreciated!

Danilo

1 reply

17-Peridot
October 12, 2017

Hello Danilo,

in my projects, we were often discussing this requirement. The risk is that the user will set the category Heading, save the node then, and then the text format and any other formating, like Tables, Images, Allignment, Coloring will be removed.

Therefore, my last customer decided to go with a Java Routine with Preview option (instead of a trigger).

If you are interested, then please send me a private message with your email address.

Volker