A
A
AlexRas2016-03-27 18:33:39
JavaScript
AlexRas, 2016-03-27 18:33:39

How to put custom styles for CKEditor on modx revo?

Hello, how to put your own styles for the content of the editor, tags h1, h2, h3 and so on.
How to write your css file?
I try to register in the config as it is written in the documentation, but it does not work.

CKEDITOR.editorConfig = function( config ) {
  // Define changes to default configuration here. For example:
  // config.language = 'fr';
  // config.uiColor = '#AADC6E';
  config.contentsCss = '/manager/assets/components/ckeditor/ckeditor/styleCKE.css';
};

config at:
/manager/assets/components/ckeditor/ckeditor/config.js

It feels like this config is not connected in any way.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexRas, 2017-10-12
@AlexRas

You need to specify the path in the core settings -> Visual editor -> joxi.ru/krDJX5sElxOn2p

A
Anton, 2017-10-12
@Anton2022

I am also looking for an answer to this question.
While doing a little hack.
Namely:
At the end of the file /manager/assets/components/ckeditor/ckeditor/skins/moono/editor.css added a line like The result almost completely satisfied me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question