Soft tabs inside CKEditor

Jul 19, 2012 10:28 · 21 words · 1 minute read drupal

This CKEditor configuration enables two spaces instead of a hard tab.

CKEDITOR.on("instanceReady", function(ev) {
  ev.editor.dataProcessor.writer.indentationChars = "  ";
});

via drupal.org