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: Wyvern styleset
Status | Resolved |
Add-on / Version | 1.6.0 |
Severity | Blocker |
EE Version | v2.7.3 |
raoul guillermo
Dec 16, 2014Hi there,
I’m trying to add custom styles with
wysiwyg.js
CKEDITOR.addStylesSet(‘wyvern’, [
{ name: 'Paragraph', element: 'p' },
{ name: 'Heading', element: 'h4' },
{ name: 'Image on left', element: 'img', attributes: { 'class': 'float_left' }},
{ name: 'Image on right', element: 'img', attributes: { 'class': 'float_right' }},
]);
But only initiates the Paragraph element. Nothing else.
Am i missing something here?
Regards,
Raoul
BoldMinded (Brian)
Hi, Raoul. Are you sure its loading the correct js file? Check your network tab to make sure, or put an alert(’test’); at the top of that file.
Did you set the path in your module settings page?
raoul guillermo
Hi! Thanks for your fast answer! It’s actually working only problem is that it won’t load when using allowed content
CKEDITOR.addStylesSet(‘wyvern’, [ { name: ‘pull-quote’, element: ‘blockquote’, attributes: { ‘class’: ‘pull-quote large-quote’ } }, { name: ‘large quote’, element: ‘blockquote’, attributes: { ‘class’: ‘large-quote’ } }, ]);
allowedContent: true allowedContent: ‘blockquote;p;h2;h3;blockquote(twitter-tweet)[data-conversation];table[width];tr;th;td[width];caption;strong;em;ol[start,type];ul;li;u;iframe[width,height,!src,frameborder,allowfullscreen,allowscriptaccess,webkitallowfullscreen,title];a[!href,id,rel,target];div(bluebutton,embeddedContent,meetpixel)[!class,data-resizetype,data-oembed,data-align];img[!src,alt]{width,height,margin-top,margin-bottom,margin-left,margin-right,float};script[async,charset,!src]’
Any ideas?
BoldMinded (Brian)
Thats a CKeditor issue, which I don’t support. Did you try setting allowedContent to false in /wyvern/themes/third_party/wyvern/config.js?