cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Trigger to change heading to default font

dchaves-2
5-Regular Member

Trigger to change heading to default font

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 1

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

 

Top Tags