A
A
alexandrnevajno12018-02-16 14:16:53
css
alexandrnevajno1, 2018-02-16 14:16:53

How to change indents (margin) of paragraphs in ckeditor?

Hello. I have connected ckeditor to my project. But when I type paragraphs there - I press Enter, margins appear at the paragraph. How can I remove them? I have to reset the paragraphs - so that there is no margin. But this reset has no effect on the plugin. I am attaching a screenshot.
5a86bbea1914a417983788.png
There are these margins:

-webkit-margin-before: 1em;
-webkit-margin-after: 1em;

In chrome, where the file in which the styles are written is usually indicated, this is what is written:
user agent stylesheet
And nothing else (I don’t have a reset). Why is he not? And how can I remove these indents?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Karen Ananiev, 2018-02-16
@alexandrnevajno1

Because the editor works in an iframe and doesn't know anything about your external styles. Use contents.css https://docs.ckeditor.com/ckeditor4/latest/api/CKE...

N
NaN, 2018-02-16
@KornevaViktoria

well, if not, then the file is not connected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question