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.

#107351 JCE not showing buttons, and not working correctly with Regular Labs "Snippets"

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 SpydrSS on Saturday, 10 April 2021 08:56 BST

SpydrSS
I have been a long-time user of JCE editor, as I feel this is the best editor on the market for joomla. I am currently setting up a project with snippets, which inserts small pieces of code and then automatically changes the details on output. My first issue is that the buttons at the bottom of the editor are not working, Read More, Snippets button, etc. I do have the latest pro version of JCE installed. Secondly, No matter what settings I use, JCE keeps changing the codes. I have now got the editor to a place where it no longer adds code, or changes the html, however it still adds a space in my code as follows:

{snippet alias="company-name"}
outputs this when saving:

{snippet alias=" company-name"}
How do I stop JCE from changing all Html, or cleaning up the code? I mostly use it because of the image settings that it provides, but do not want to touch the rest of the Html? Kind Regards Stanley Rieck

Ryan
I'm not seeing this issue in any of my tests. How are you adding the code snippet? Do you see the change when you toggle the Code tab, or only when you save?

Ryan Demmer

Lead Developer / CEO / CTO

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

SpydrSS
Well I have now changed the snippet, I now use it as:

[snippet alias="name"]
But I had to completely disable JCE, as it kept on changing the code... as an example:

<a href="https://www.joomlacontenteditor.net/[snippet alias="web-url"]" " target="_blank" title="[snippet alias="name"]">[snippet alias="name"]</a>
This is fine when changing with no editor, but if I go into this with JCE Editor on, and click save, I get this:

<a href="https://www.joomlacontenteditor.net/[snippet alias=" web-url="" target="_blank" title="[snippet alias=" name="">[snippet alias="name"]</a>
Now that I saved it like that, it actually breaks my site! as you can see the closing brackets have been removed? I then put it back as it should be, and set it to code mirror, and it didnt change. I then put it to TinyMCE, and it broke the code in a different way:

<p><a title="[snippet alias=" href="https://www.joomlacontenteditor.net/[snippet alias=" target="_blank" rel="noopener noreferrer" name="]">[snippet alias="name"]</a></p>
I am at a loss, I really prefer using JCE, and I have a few sites that will be using the snippets add-on! I still have no buttons at the bottom of my editor either?

Ryan
You can't use " within an attribute value. Try using ' instead, eg:

<a href="https://www.joomlacontenteditor.net/[snippet alias='web-url']' " target="_blank" title="[snippet alias='name']">[snippet alias="name"]</a>

Ryan Demmer

Lead Developer / CEO / CTO

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

SpydrSS
Hi Ryan... Thanks for the response, however that line is the only line that works.

<a href="https://www.joomlacontenteditor.net/[snippet alias="web-url"]" " target="_blank" title="[snippet alias="name"]">[snippet alias="name"]</a>
This code is automaticlally changed to the web address in the snippets items:

[snippet alias="web-url"]
The code has to be like this:

{snippet alias="name"}
or this

[snippet alias="name"]
In the Snippets settings, you decide what you want the program to change, so Because I thought that {} was the cause, I changed it to []. When I tried your link, it didnt mess up the site, but it did mess up my link?

<a href="https://www.joomlacontenteditor.net/[snippet alias='web-url']' " target="_blank" title="[snippet alias='name']">[snippet alias="name"]</a>
http://coocoosb.com/'%20 instead of: https://www.coocoosb.com So I dint even bother trying it with JCE Editor, as perhaps you are unclear on how Snippets actually works. All I need to know is how to stop JCE Editor Pro from changing what I put in, and how to get the buttons working, as they work on TinyMCE and Code Mirror...

Ryan
Try this:

<a href="https://www.joomlacontenteditor.net/[snippet alias='web-url']" target="_blank" title="[snippet alias='name']">[snippet alias="name"]</a>
and how to get the buttons working, as they work on TinyMCE and Code Mirror...
If the buttons are not displaying below the editor, this is because you have probably added the Joomla button to the editor toolbar (the one with the Joomla logo as the button icon), which collects all the buttons below the editor into a menu on this Joomla button.

Ryan Demmer

Lead Developer / CEO / CTO

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

SpydrSS
Hi Ryan.

Thanks for the support, and thanks for trying to get the url working.

I have been advised by Regular Labs to rather use a different extension of theirs (re-replacer), and this is now working fine, so your original diagnosis about the "inverted commas" was correct.

Since re-replacer uses raw data, I can now work with JCE editor again (Yippee)

Secondly, Since it has been a while since I used JCE editor's latest version, as I have not kept up my renewals since recently... I completely missed this option, and I believe you are correct, please see the screenshot provided... To be honest, I would have never clicked on that button, it is well hidden. Please accept my apologies for my ignorance.

I hope this thread can at least help other dopes like me out there :)

This issue is now resolved.

Regards
Stanley Rieck

Attachments