Jump to content

[1.7.4] Add a print button on cms pages


alfette

Recommended Posts

Hello,

I'm trying to add a print button on CMS pages from the back office but it does not work.

<button type="button" id="myButton" class="btn btn-primary" onclick="window.print()">Print this page</button>

The problem appear when I use onclick="window.print()"

It's return an error "The content field is invalid."

if I use this line:

<button type="button" id="myButton" class="btn btn-primary">Print this page</button>

I can save the page and the button appear. How to add the function print?

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...