0

As you know ckeditor4 has alignment buttons. when you press on each button, it adds a default class.

rteleft for left, rteright for right, rtecenter for center and rtejustify for justify alignment.

I want to know a way to change these default css classes? for example for left align, I want to use uk-text-left or for center align, I want uk-text-center

0

1 Answer 1

0

I found the solution.

Just need to add this config to custom javascript confiurations in advanced section of ckeditor profile.

config.justifyClasses = [ 'uk-text-left', 'uk-text-center', 'uk-text-right', 'uk-text-justify' ];

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.