Opened 2 years ago

Closed 2 years ago

#16831 closed New Feature (invalid)

How to add a css class to a selected Paragraph?

Reported by: ahmad Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Is there any option in ckeditor by adding a css class by selecting a paragraph?

My requirements are that I have lengthy text in the field with some paragraphs. One of paragraph I want to change the style through css. So for that I want an option in the ckeditor toolbar from where I can add a css class to a paragraph, not from source and editing the html.

I think there will an option or a plugin available therefore I'm putting the type of this ticket as a new feature. or can modify the code of the ckeditor.js to accomplish this task?

Change History (2)

comment:1 Changed 2 years ago by ahmad

Like currently there is an option for the "Normal (DIV)" in the Format dropdown. Can I add another option in this dropdown with "DIV with class test" and it will add a div with a test css class?

comment:2 Changed 2 years ago by Jakub Ś

Component: UI : WidgetsGeneral
Resolution: invalid
Status: newclosed
Version: 4.7.0 (GitHub - major)

I'm sorry but this is a place for reporting CKEditor bugs and not place for seeking advice or support.

If you have CKEditor license, please contact our support team. You also can ask your implementation questions at Stack Overflow.

You can also read the [documentation http://docs.ckeditor.com/#!/api] and see how features work in SDK. I would especially focus on http://sdk.ckeditor.com/samples/styles.html and http://docs.ckeditor.com/#!/guide/dev_styles with all the links mentioned in the article.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy