Skip to content

Commit

Permalink
feat(*): update changes to conform to accordproject#311 - accordproje…
Browse files Browse the repository at this point in the history
…ct#296

Signed-off-by: Aman Sharma <[email protected]>
  • Loading branch information
algomaster99 committed Apr 15, 2020
1 parent 4b06cb3 commit 365e338
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/RichTextEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,9 @@ const RichTextEditor = (props) => {
if (code === 'undo') return editor.undo();
return editor.redo();
},
link: (_) => {
const url = window.prompt('Enter the URL of the link:');
if (url) {
insertLink(editor, url);
}
}
link: () => {
setShowLinkModal(true);
},
};

const { isEditable, canBeFormatted } = props;
Expand Down
2 changes: 1 addition & 1 deletion src/RichTextEditor/utilities/hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const HOTKEYS = {
},
'mod+k' : {
type: 'link',
code: LINK
code: LINK,
}
};

Expand Down

0 comments on commit 365e338

Please sign in to comment.