0
Fork 0
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:
Limon Monte 2019-12-23 01:04:10 +02:00 committed by Neil Jenkins
parent 1850e2cdae
commit 9c6a3f6983
2 changed files with 10 additions and 4 deletions

View file

@ -1434,7 +1434,9 @@ var handleEnter = function ( self, shiftKey, range ) {
// Remove any zws so we don't think there's content in an empty
// block.
self._recordUndoState( range );
if ( self._config.addLinks ) {
addLinks( range.startContainer, root, self );
}
self._removeZWS();
self._getRangeAndRemoveBookmark( range );
@ -1785,7 +1787,9 @@ var keyHandlers = {
var node, parent;
var root = self._root;
self._recordUndoState( range );
if ( self._config.addLinks ) {
addLinks( range.startContainer, root, self );
}
self._getRangeAndRemoveBookmark( range );
// 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:
typeof DOMPurify !== 'undefined' && DOMPurify.isSupported ?
sanitizeToDOMFragment : null,
willCutCopy: null
willCutCopy: null,
addLinks: true
}, config, true );
// Users may specify block tag in lower case

File diff suppressed because one or more lines are too long