in Web & Tech

Soft tabs inside CKEditor

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

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

via drupal.org

Write a Comment

Comment