Skip to content

Commit

Permalink
Merge pull request #191 from codex-team/keyup-event-for-showing-inlin…
Browse files Browse the repository at this point in the history
…e-toolbar

Add keyup event for showing inline toolbar
  • Loading branch information
talyguryn authored Aug 29, 2017
2 parents ec30ad5 + 9692840 commit 67bd710
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @neSpecc @gohabereg @khaydarov @talyguryn
4 changes: 2 additions & 2 deletions codex-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codex-editor.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 67bd710

Please sign in to comment.