mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Release v1.5.1
This commit is contained in:
parent
349f391075
commit
3afa14bf40
3 changed files with 7 additions and 3 deletions
|
@ -1993,6 +1993,8 @@ var onCut = function ( event ) {
|
||||||
moveRangeBoundariesUpTree( range, body );
|
moveRangeBoundariesUpTree( range, body );
|
||||||
node.appendChild( deleteContentsOfRange( range, body ) );
|
node.appendChild( deleteContentsOfRange( range, body ) );
|
||||||
clipboardData.setData( 'text/html', node.innerHTML );
|
clipboardData.setData( 'text/html', node.innerHTML );
|
||||||
|
clipboardData.setData( 'text/plain',
|
||||||
|
node.innerText || node.textContent );
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
} else {
|
} else {
|
||||||
setTimeout( function () {
|
setTimeout( function () {
|
||||||
|
@ -2017,6 +2019,8 @@ var onCopy = function ( event ) {
|
||||||
if ( !isEdge && clipboardData ) {
|
if ( !isEdge && clipboardData ) {
|
||||||
node.appendChild( range.cloneContents() );
|
node.appendChild( range.cloneContents() );
|
||||||
clipboardData.setData( 'text/html', node.innerHTML );
|
clipboardData.setData( 'text/html', node.innerHTML );
|
||||||
|
clipboardData.setData( 'text/plain',
|
||||||
|
node.innerText || node.textContent );
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "squire-rte",
|
"name": "squire-rte",
|
||||||
"version": "1.5.0",
|
"version": "1.5.1",
|
||||||
"description": "Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation, whilst being supremely lightweight and flexible.",
|
"description": "Squire is an HTML5 rich text editor, which provides powerful cross-browser normalisation, whilst being supremely lightweight and flexible.",
|
||||||
"main": "build/squire.js",
|
"main": "build/squire.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue