close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Attaching an external stylesheet to PowerCMS

Thread began 3/05/2013 10:14 am by sandy170299 | Last modified 7/21/2014 11:39 am by Jason Byrnes | 1489 views | 10 replies |

sandy170299

Attaching an external stylesheet to PowerCMS

I've attached an external stylesheet to the HTML editor in admin_cms/contents_update.php, but the styles are not showing up in the Styles dropdown within the editor. How can I make this happen? Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Edit the HTML Editor Instance. Click the Edit Icon Next to the HTML Editor Preset, go to the styles tab, this wis where you select the style sheet to use.

Near the bottom, there is an edit icon to edit the styles that will show in the styles list, click that. On this screen you can select the classes and ids from your style sheet and choose which ones to display in the styles list.

Sign in to reply to this post

sandy170299

I did this, but now I'm getting a javascript error. Please see attached image. Also, nothing is appearing in my Styles dropdown now. Not even the base styles that were there before.

Sign in to reply to this post

sandy170299

now I'm also getting an error when the page contents_update.php loads. This is the error and her site is live!!!

Parse error: syntax error, unexpected T_ARRAY, expecting ')' in /home/content/98/10477498/html/admin_cms/contents_update.php on line 332

Sign in to reply to this post

sandy170299

Okay - I fixed the syntax error and now my ONE style is there, but all of the rest of them that were there before are gone. How can get the basic styles that were in the dropdown back and still include the new one? Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

Your custom styles over ride the defaults. this is as designed. it is not supported to have both Custom styles and maintain the defaults.

your custom styles are defined in .js file in the webassist/ckeditor/styl_lists folder

the default styles are defined in the webassist/ckeditor/plugins/styles/styles/default.js.

you would need to add the code to the custom styles js file for the default styles.

Sign in to reply to this post

sandy170299

Thanks! I'll see how that goes...

Sign in to reply to this post

Andrew Dodd - ADDIGITAL

Ease of use..

This seems to me a bit of a hatchet job, and it's not easy to implement. Are there any plans to refine this, or at the very least, provide a tutorial?

I wish there was an easy option to override custom styles/merge or add from an external file.

Sign in to reply to this post

Jason ByrnesWebAssist

I have logged a feature request to have this considered for a future upgrade.

Sign in to reply to this post

Andrew Dodd - ADDIGITAL

Hi Jason,

Any signs of this happening? Been over a year now, or have I missed something?

Best wishes
Andrew

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...