Expresso
ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5
Back to this add-on's main page
View Other Add-ons From PutYourLightsOn
Adding styles to elements [resolved]
General
Tyssen
|
Posted: 31 March 2011 12:51 AM |
|
|
|
Is there a way using buttons from the toolbar to assign classes to particular elements? For example, if I’m adding images via the file button, how can I attach a class (for left or right alignment) without editing the HTML.
|
|
|
PutYourLightsOn
|
Posted: 31 March 2011 03:17 PM |
# 1
|
|
Developer
|
once you’ve inserted the image, select it and then click on the image icon. there is an option to add a class under the advanced tab.
|
|
|
Tyssen
|
Posted: 05 June 2011 10:48 PM |
# 2
|
|
|
Is there any way to choose from a predefined set of classes or IDs, rather than having to type them in? For instance with TinyMCE, you can include a styles dropdown which you populate from the js config.
|
|
|
PutYourLightsOn
|
Posted: 06 June 2011 01:23 PM |
# 3
|
|
Developer
|
Espresso uses CKEditor which also allows you to predefine a style set. the docs for this are here.
|
|
|
Tyssen
|
Posted: 06 June 2011 08:24 PM |
# 4
|
|
|
Actually, I think I’d prefer to use the method described at http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Styles#Stylesheet_Parser_Plugin but that requires CKEditor 3.6. Can I just update the CKEditor folder or is Expresso only licenced to be used with a certain version?
Also, I’m quite new to CKEditor and not sure which file needs to be edited to add these new configuration options.
|
|
|
PutYourLightsOn
|
Posted: 07 June 2011 09:03 AM |
# 5
|
|
Developer
|
i haven’t tested CKEditor 3.6 with Expresso so you’ll have to try at your own risk (backup the original CKEditor folder). Expresso is licensed with all CKEditor versions so no problem to use 3.6. i may consider adding this in a future major release but i have no experience with the plugin you mentioned so can’t advise you on how to integrate i’m afraid.
|
|
|