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.
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.
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.
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.
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
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!
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.
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.
I have logged a feature request to have this considered for a future upgrade.
Hi Jason,
Any signs of this happening? Been over a year now, or have I missed something?
Best wishes
Andrew
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.