0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -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:
Neil Jenkins 2013-01-15 10:34:37 +11:00
parent 8b2090c94e
commit f49d1c190e
2 changed files with 2 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -1612,6 +1612,7 @@
space: function () {
var range = getSelection();
recordUndoState( range );
addLinks( range.startContainer );
getRangeAndRemoveBookmark( range );
setSelection( range );
},