Jump to content

ckeditor - Tabulation key behavior


Cybero

Recommended Posts

Hi 🙂

I'm trying to change the behavior of the tab key...
I would like this one to insert spaces instead of navigating between the differents focus on the page

I found this on the CKEditor website but I failed to make it work:
https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-tabSpaces

I modified the file: applications/core/interface/ckeditor/ckeditor/config.js like this: (add at start of the line, tried at end too)

CKEDITOR.editorConfig=function(a){a.tabSpaces=4;a.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}];a.removeButtons="Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,Subscript,Superscript";
a.removeDialogTabs="link:advanced";};

Could someone help me ?

Thank you in advance ! 😎

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...