mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Automatically markup <a> links on spacebar press.
* When spacebar is pressed, any URL-like text in the current text node will be wrapped in an <a> tag with the URL as the href.
This commit is contained in:
parent
8b2090c94e
commit
f49d1c190e
2 changed files with 2 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
@ -1612,6 +1612,7 @@
|
|||
space: function () {
|
||||
var range = getSelection();
|
||||
recordUndoState( range );
|
||||
addLinks( range.startContainer );
|
||||
getRangeAndRemoveBookmark( range );
|
||||
setSelection( range );
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue