hello can u plz give me solution to how to fire Shift+enter key press event manually like..
editor.on('key', function (e) {
if (e.data.keyCode == '13') {
e.cancel();
// editor.trigger(jQuery.Event('shiftKey')); code for fire this keypress event
}
});
Here trigger is not work. After canceling the enter event ,i want to fire shiftkey event at cursor point so wt to do ??
Don't you want to execute the
Don't you want to execute the shiftEnter command? It's much easier to do that, than to trigger the event:
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
commandNames
Where can I find the commandNames available on the API? I need to trigger several commands "manually" or by an external tool.
Thanks in advance.
There's no list of commands
There's no list of commands in the documentation, but you can easily find what commands are available in your editor by inspecting the editor.commands object.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
moveCursorBack command?
Hy,
I have a problem with scrolling if there is zoom plugin on the editor. In that case if you press enter editor doesn't scroll down.
I think solution would be to fire move cursor back and then move cursor forward events. How could I do that?