Opened 15 years ago
Last modified 13 years ago
#5877 confirmed Bug
can't bind Ctrl+X to plugin commands (h1, p)
Reported by: | Fredrik Wendt | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Cc: | fredrik@… |
Description
TinyMCE and other enterprise wiki wysiwyg editors by default ship keybindings for changing a line into headline (h1, h2, h3 are accessed using CTRL+1, CTRL+2, ...).
In order to make CKEditor work the same way I had to go into the plugins I wanted to add keybindings for, and add this line of code
editor.addCommand(tag, new CKEDITOR.styleCommand(style));
to enable h1..h6 and CTRL+0 for p (turn headline back to normal paragraph).
Change History (2)
comment:1 Changed 15 years ago by
Cc: | fredrik@… added |
---|
comment:2 Changed 13 years ago by
Status: | new → confirmed |
---|---|
Version: | 3.2.2 → 3.0 |
diff -u -p tells me my workaround is
and then to setup the keybindings (called keystrokes) in the ckConfig object handed to CKEDITOR: