squire-rails 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/squire-rails/version.rb +1 -1
- data/vendor/assets/javascripts/squire/squire-raw.js +8 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49a7361e5ff8621dc290906bbd13199217b5f69d
|
4
|
+
data.tar.gz: 4a4ea25f90b9b510a290d35db35bea378b163466
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d6494032e4bd0e63885cf44c990f17b1346ca2eb38f7b64cccff2705b0c05fb6c8972a00919c4d37a1ac6aebd6c3a6cdd57ba32e7c61d79a95bd36caf1c7ba
|
7
|
+
data.tar.gz: 51b2d771a1a970fbb2bf621be39f9a9adfdc07bd932644a69d5b1434c3b5c797068a7006096b3eb810ade97ab35255f5f59e60cfc670d389ad09de19b80a2ed9
|
data/lib/squire-rails/version.rb
CHANGED
@@ -3370,20 +3370,19 @@ proto.insertElement = function ( el, range ) {
|
|
3370
3370
|
}
|
3371
3371
|
if ( nodeAfterSplit ) {
|
3372
3372
|
body.insertBefore( el, nodeAfterSplit );
|
3373
|
-
range.setStart( nodeAfterSplit, 0 );
|
3374
|
-
range.setStart( nodeAfterSplit, 0 );
|
3375
|
-
moveRangeBoundariesDownTree( range );
|
3376
3373
|
} else {
|
3377
3374
|
body.appendChild( el );
|
3378
3375
|
// Insert blank line below block.
|
3379
|
-
|
3380
|
-
|
3381
|
-
range.setEnd( el, 0 );
|
3376
|
+
nodeAfterSplit = this.createDefaultBlock();
|
3377
|
+
body.appendChild( nodeAfterSplit );
|
3382
3378
|
}
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3379
|
+
range.setStart( nodeAfterSplit, 0 );
|
3380
|
+
range.setEnd( nodeAfterSplit, 0 );
|
3381
|
+
moveRangeBoundariesDownTree( range );
|
3386
3382
|
}
|
3383
|
+
this.focus();
|
3384
|
+
this.setSelection( range );
|
3385
|
+
this._updatePath( range );
|
3387
3386
|
return this;
|
3388
3387
|
};
|
3389
3388
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squire-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- candle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Squire Editor for rails
|
14
14
|
email:
|