Topic-icon JCE Editor

Active Subscriptions:

None
11 years 3 weeks ago #53266 by [email protected]
I just had an interesting experience. I just loaded JCE onto a site that has been working fine. Once I began using JCE to create articles, the JFB social share buttons disappeared. They are absent with all articles created using JCE. If I change the editor back and create an article the buttons reappear. Is there a solution for this?
The topic has been locked.
Support Specialist
11 years 3 weeks ago #53269 by alzander
Replied by alzander on topic JCE Editor
We've not heard of this issue before and can't imagine why that's happening. Many sites, including this one, use JCE as the editor, so it's not a common issue.

Are you using the JFBCContent plugin to automatically add the social buttons, or are you using Easy Tags or the Social Widget module?
* The content plugin doesn't have anything to do with the editor and uses Joomla plugin triggers to prepend or append the social buttons, so I can't see how JCE would even be able to alter that.
* The Easy Tags could be being stripped or altered, but you should see that in the article contents in the editor.

Let us know about the above and we'll help however we can. The other thing you may want to look at is the HTML of the article page to see if the share tags (the raw HTML) is being inserted in the page or not.

I hope that helps get things started, but if not, send us a link to a page that works and one that doesn't so we can have a look.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 3 weeks ago #53270 by [email protected]
Replied by [email protected] on topic JCE Editor
Thanks,
Somehow I found the glitches in JCE.

I am using JFB component to create the social buttons for K2, and that is where the problem is.

What is going on is that JCE is adding the following code to every document:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>

</body>
</html>

I created the article using JCE and then deleted that code with codemirror and it works great. I imagine I could go through each line and see what is the actual code creating the issue, but removing them all worked fine. I tried several test articles and had the same problem every time. I know the problem is not with your components, but thought maybe you knew the solution anyway.
The topic has been locked.
Support Specialist
11 years 3 weeks ago #53275 by alzander
Replied by alzander on topic JCE Editor
That's definitely not something we've heard of and certainly bad behavior on JCE's part if that's what it's doing. Adding extra html, head and body tags will certainly cause plenty of problems with social networks, search engines and just about any other automated tools when working with your site.

I hope you get things narrowed down, but (as you mention) it doesn't look to be a JFBConnect issue.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
11 years 3 weeks ago #53282 by [email protected]
Replied by [email protected] on topic JCE Editor
Ok, I am baffled at the fix, and I have no idea why it works but it does. JCE still adds the additional head and body tags. You should check to see if it is doing so for you. If not, it might be the "load template" plugin of theirs that I added.

Anyway, the fix they gave me which works is:
In Editor Profiles -> Features & Layout, remove the Fullpage button from the Current Editor Layout by dragging it into the Available Buttons & Toolbars area.

Once I did that, the social buttons reappeared on new articles.
The topic has been locked.
Support Specialist
11 years 3 weeks ago #53286 by alzander
Replied by alzander on topic JCE Editor
That's truly bizarre. I can't see any reason to add extra html, head and body tags, ever. JFBConnect does have some specific checks in our code to not alter as much when the HTML is completely malformed (multiple of any of those tags on a single page is completely invalid), so that could explain why the buttons didn't show. That's a safety/sanity check though and not something we'd change.

Either way, glad you got things going.. and hopefully you don't run into any other strangeness going forward :)

Alex
The topic has been locked.