0
Fork 0
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:
Neil Jenkins 2014-05-20 13:28:22 +10:00
parent 76b482b41f
commit 85c458b2d2
3 changed files with 23 additions and 19 deletions

View file

@ -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

View file

@ -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 ) {