Jump to content

Community

ckeditor - Tabulation key behavior


Cybero
 Share

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

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy