Merge pull request #191 from codex-team/keyup-event-for-showing-inline-toolbar

Add keyup event for showing inline toolbar
This commit is contained in:
Taly 2017-08-30 02:23:05 +03:00 committed by GitHub
commit 67bd710045
5 changed files with 9 additions and 4 deletions

1
CODEOWNERS Normal file
View file

@ -0,0 +1 @@
* @neSpecc @gohabereg @khaydarov @talyguryn

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -363,7 +363,11 @@ module.exports = (function (ui) {
*/
editor.listeners.add(block, 'paste', editor.paste.blockPasteCallback, false);
/**
* Show inline toolbar for selected text
*/
editor.listeners.add(block, 'mouseup', editor.toolbar.inline.show, false);
editor.listeners.add(block, 'keyup', editor.toolbar.inline.show, false);
};

View file

@ -1,6 +1,6 @@
{
"name": "codex.editor",
"version": "1.6.6",
"version": "1.6.7",
"description": "Codex Editor. Native JS, based on API and Open Source",
"main": "index.js",
"scripts": {