mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-18 04:32:28 -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;
|
return frag;
|
||||||
};
|
};
|
||||||
|
|
||||||
var removeBlockQuote = function ( frag ) {
|
var removeBlockQuote = function (/* frag */) {
|
||||||
var blockquotes = frag.querySelectorAll( 'blockquote' ),
|
return fixCursor( this.createElement( 'div', [
|
||||||
l = blockquotes.length,
|
this.createElement( 'INPUT', {
|
||||||
bq;
|
id: startSelectionId,
|
||||||
while ( l-- ) {
|
type: 'hidden'
|
||||||
bq = blockquotes[l];
|
}),
|
||||||
replaceWith( bq, empty( bq ) );
|
this.createElement( 'INPUT', {
|
||||||
}
|
id: endSelectionId,
|
||||||
return frag;
|
type: 'hidden'
|
||||||
|
})
|
||||||
|
]) );
|
||||||
};
|
};
|
||||||
|
|
||||||
var makeList = function ( self, frag, type ) {
|
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;
|
return frag;
|
||||||
};
|
};
|
||||||
|
|
||||||
var removeBlockQuote = function ( frag ) {
|
var removeBlockQuote = function (/* frag */) {
|
||||||
var blockquotes = frag.querySelectorAll( 'blockquote' ),
|
return fixCursor( this.createElement( 'div', [
|
||||||
l = blockquotes.length,
|
this.createElement( 'INPUT', {
|
||||||
bq;
|
id: startSelectionId,
|
||||||
while ( l-- ) {
|
type: 'hidden'
|
||||||
bq = blockquotes[l];
|
}),
|
||||||
replaceWith( bq, empty( bq ) );
|
this.createElement( 'INPUT', {
|
||||||
}
|
id: endSelectionId,
|
||||||
return frag;
|
type: 'hidden'
|
||||||
|
})
|
||||||
|
]) );
|
||||||
};
|
};
|
||||||
|
|
||||||
var makeList = function ( self, frag, type ) {
|
var makeList = function ( self, frag, type ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue