mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Drop all formatting when breaking block quote.
We don't want the same formatting as the quote in the unquoted section.
This commit is contained in:
parent
76b482b41f
commit
85c458b2d2
3 changed files with 23 additions and 19 deletions
|
@ -2003,15 +2003,17 @@ var decreaseBlockQuoteLevel = function ( frag ) {
|
|||
return frag;
|
||||
};
|
||||
|
||||
var removeBlockQuote = function ( frag ) {
|
||||
var blockquotes = frag.querySelectorAll( 'blockquote' ),
|
||||
l = blockquotes.length,
|
||||
bq;
|
||||
while ( l-- ) {
|
||||
bq = blockquotes[l];
|
||||
replaceWith( bq, empty( bq ) );
|
||||
}
|
||||
return frag;
|
||||
var removeBlockQuote = function (/* frag */) {
|
||||
return fixCursor( this.createElement( 'div', [
|
||||
this.createElement( 'INPUT', {
|
||||
id: startSelectionId,
|
||||
type: 'hidden'
|
||||
}),
|
||||
this.createElement( 'INPUT', {
|
||||
id: endSelectionId,
|
||||
type: 'hidden'
|
||||
})
|
||||
]) );
|
||||
};
|
||||
|
||||
var makeList = function ( self, frag, type ) {
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -941,15 +941,17 @@ var decreaseBlockQuoteLevel = function ( frag ) {
|
|||
return frag;
|
||||
};
|
||||
|
||||
var removeBlockQuote = function ( frag ) {
|
||||
var blockquotes = frag.querySelectorAll( 'blockquote' ),
|
||||
l = blockquotes.length,
|
||||
bq;
|
||||
while ( l-- ) {
|
||||
bq = blockquotes[l];
|
||||
replaceWith( bq, empty( bq ) );
|
||||
}
|
||||
return frag;
|
||||
var removeBlockQuote = function (/* frag */) {
|
||||
return fixCursor( this.createElement( 'div', [
|
||||
this.createElement( 'INPUT', {
|
||||
id: startSelectionId,
|
||||
type: 'hidden'
|
||||
}),
|
||||
this.createElement( 'INPUT', {
|
||||
id: endSelectionId,
|
||||
type: 'hidden'
|
||||
})
|
||||
]) );
|
||||
};
|
||||
|
||||
var makeList = function ( self, frag, type ) {
|
||||
|
|
Loading…
Reference in a new issue