mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-20 13:42:32 -05:00
Handle selection better when creating new PRE.
This commit is contained in:
parent
bfbdd45184
commit
6ba03f6989
3 changed files with 7 additions and 3 deletions
|
@ -3551,7 +3551,9 @@ var getTextFromHTMLFragment = function ( self, frag ) {
|
|||
var makePreformatted = function ( frag ) {
|
||||
return this.createElement( 'PRE',
|
||||
this._config.tagAttributes.pre, [
|
||||
getTextFromHTMLFragment( this, frag )
|
||||
this.createElement( 'DIV', { id: startSelectionId } ),
|
||||
getTextFromHTMLFragment( this, frag ),
|
||||
this.createElement( 'DIV', { id: endSelectionId } )
|
||||
] );
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1352,7 +1352,9 @@ var getTextFromHTMLFragment = function ( self, frag ) {
|
|||
var makePreformatted = function ( frag ) {
|
||||
return this.createElement( 'PRE',
|
||||
this._config.tagAttributes.pre, [
|
||||
getTextFromHTMLFragment( this, frag )
|
||||
this.createElement( 'DIV', { id: startSelectionId } ),
|
||||
getTextFromHTMLFragment( this, frag ),
|
||||
this.createElement( 'DIV', { id: endSelectionId } )
|
||||
] );
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue