You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#104694 pre made buttons

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Sunday, 12 July 2020 19:53 BST

okkhalid
Hello, is there away that we create in JCE editor a short cut that can add a pre made buttons, text.
for example.

if I want to add the button register now. at the bottom of some of articles that I write, but I do not want to create this button every time, so I just click a short code or insert button, and it will add it right away there.

Now we need to create link, then I go to link it to the menu item them I go and add the css class to show as button. its just too much work every time we want to insert the same button over and over.

please help.

Ryan
if I want to add the button register now. at the bottom of some of articles that I write, but I do not want to create this button every time, so I just click a short code or insert button, and it will add it right away there.


What does the code for this button look like?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

okkhalid


HERE

<a href="https://www.joomlacontenteditor.net/join-online" button class="button-register" style="vertical-align:middle"><span>Join Online </span></button></a>

Ryan
The easiest way to do this is with the Template Manager, which you can use to create a list of HTML snippets to quickly insert into the editor.

1. Make sure the Template Manager icon is added to the editor toolbar. You can do this in Editor Profiles -> Features & Layout.
2. Then, in the Plugin Parameters tab, click on Template Manager, and then for the Template Items option, add a Name to the option, and in the HTML field, add your HTML code, eg:

https://cdn.joomlacontenteditor.net/tmp/104694-pre-made-buttons.jpg

3. You can create as many Template Items as you want by clicking the blue plus button.
4. Click Save.

In the editor, you should now be able to access your code snippets to insert using the list on the Template Manager button, eg:

https://cdn.joomlacontenteditor.net/tmp/104694-pre-made-buttons-2.gif

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.