Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Templates in Wyvern - Not Working?

Status Resolved
Add-on / Version
Severity Critical
EE Version

Dustin Hansen

May 06, 2013

No matter what we do we cannot get the “Templates” dropdown to show up in ckeditor.  We have enabled it in Wyvern’s config.  We have added necessary JS to our /themes/third_party/wyvern/wysiwyg.js file.  We have also uploaded and enabled the plugin (http://ckeditor.com/addon/templates).  When we enable the plugin via the ZIP file, the editor ceases to load completely.  Anyone have any luck with this?  If it’s not supported, then I think the option should be taken out of the Wyvern config.

Using EE 2.6 and the latest version of Wyvern.

#1

BoldMinded (Brian)

Seems they removed it from the core files. I did not realize that. If you download that file and place the templates folder in the wyvern/plugins folder and select it, then it should work. https://www.evernote.com/shard/s9/sh/fcd511b2-565b-4012-a401-53d3d1bd3559/55ced0a47a1821ada878f867e9322797

#2

Dustin Hansen

We tried that but it didn’t work. The editor now does not load at all.

#3

Dustin Hansen

The error I’m seeing when the editor tries to load:

404 Not Found - http://mydomain.com/themes/third_party/wyvern/plugins/templates.zip/plugin.js?t=D3NA

But http://mydomain.com/themes/third_party/wyvern/plugins/templates.zip exists.

#4

BoldMinded (Brian)

It shouldn’t be a zip file, it needs to be the unpacked version. https://www.evernote.com/shard/s9/sh/dd60bd6d-33cc-4858-9dc4-455e08524083/7a923ff7400e3a1dc02e9b954e52070f

#5

Dustin Hansen

OK, after an uninstall and reinstall, it’s sort of working. The templates checkbox in Wyvern gets ignored completely and won’t stay checked (that option should probably be removed from Wyvern). I can’t figure out how to load any templates, but I’m guessing that’s outside normal Wyvern support. 😊

#6

Dustin Hansen

Correction…

Once “templates” is installed, you MUST check “Templates” in the Wyvern config to get it to work. However, the checkbox doesn’t stay checked. Therefore if you go into the config page again to make an update you will need to check “Templates” again or the Templates feature will go away.

Additionally the Templates button shows up in the same place every time, regardless of where you drag/drop it in Wyvern’s config. Upon saving the config, it also shoves Templates all the way to the bottom (and as I noted earlier, the option is unchecked always on page load).

#7

Dustin Hansen

I finally got Templates working (there’s still the bug I mention in the previous post that should be fixed). By default ckeditor will strip out any DIV tags you use, any inline styles, etc. You need to add this to config.js:

config.allowedContent = true;

I’d recommend including this in Wyvern by default or you’re really restricted with what you can do.

#8

BoldMinded (Brian)

I’m not sure why you’re having issues with divs, I’ve used this version of Wyvern on 2 or 3 sites and it accepts divs just fine.

#9

BoldMinded (Brian)

I see what you’re saying about the allowedContent option. I just added it to 1.5.9 and pushed it to Devot:ee. Thanks!

Login to reply