mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
bump build files
This commit is contained in:
parent
1850e2cdae
commit
9c6a3f6983
2 changed files with 10 additions and 4 deletions
|
@ -1434,7 +1434,9 @@ var handleEnter = function ( self, shiftKey, range ) {
|
||||||
// Remove any zws so we don't think there's content in an empty
|
// Remove any zws so we don't think there's content in an empty
|
||||||
// block.
|
// block.
|
||||||
self._recordUndoState( range );
|
self._recordUndoState( range );
|
||||||
addLinks( range.startContainer, root, self );
|
if ( self._config.addLinks ) {
|
||||||
|
addLinks( range.startContainer, root, self );
|
||||||
|
}
|
||||||
self._removeZWS();
|
self._removeZWS();
|
||||||
self._getRangeAndRemoveBookmark( range );
|
self._getRangeAndRemoveBookmark( range );
|
||||||
|
|
||||||
|
@ -1785,7 +1787,9 @@ var keyHandlers = {
|
||||||
var node, parent;
|
var node, parent;
|
||||||
var root = self._root;
|
var root = self._root;
|
||||||
self._recordUndoState( range );
|
self._recordUndoState( range );
|
||||||
addLinks( range.startContainer, root, self );
|
if ( self._config.addLinks ) {
|
||||||
|
addLinks( range.startContainer, root, self );
|
||||||
|
}
|
||||||
self._getRangeAndRemoveBookmark( range );
|
self._getRangeAndRemoveBookmark( range );
|
||||||
|
|
||||||
// If the cursor is at the end of a link (<a>foo|</a>) then move it
|
// If the cursor is at the end of a link (<a>foo|</a>) then move it
|
||||||
|
@ -2750,7 +2754,8 @@ proto.setConfig = function ( config ) {
|
||||||
sanitizeToDOMFragment:
|
sanitizeToDOMFragment:
|
||||||
typeof DOMPurify !== 'undefined' && DOMPurify.isSupported ?
|
typeof DOMPurify !== 'undefined' && DOMPurify.isSupported ?
|
||||||
sanitizeToDOMFragment : null,
|
sanitizeToDOMFragment : null,
|
||||||
willCutCopy: null
|
willCutCopy: null,
|
||||||
|
addLinks: true
|
||||||
}, config, true );
|
}, config, true );
|
||||||
|
|
||||||
// Users may specify block tag in lower case
|
// Users may specify block tag in lower case
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue