TIMEX
TIMEX

Reputation: 271644

In CKEditor, how do I change the "indent" plugin to 20px instead of 40px?

When I push "indent" on CKEDITOR, it creates a div with margin-left 40.

How can I change that number to 20?

Upvotes: 1

Views: 2254

Answers (2)

HVKotak
HVKotak

Reputation: 258

You can also directly set in your editors config file

In config.js

CKEDITOR.editorConfig = function(config) {
  config.indentOffset = 20;
};

Upvotes: 0

Alex
Alex

Reputation: 35409

Try the following:

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.indentOffset

Below is the applicable source excerpt:

var indentOffset = editor.config.indentOffset || 40;

Upvotes: 3

Related Questions