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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab14ef3e57348581d6d863a11ec3e577ca5cb014
4
- data.tar.gz: efed52e87e674f7c532c2bc88312473ebe2d94a8
3
+ metadata.gz: 49a7361e5ff8621dc290906bbd13199217b5f69d
4
+ data.tar.gz: 4a4ea25f90b9b510a290d35db35bea378b163466
5
5
  SHA512:
6
- metadata.gz: 2b1ffb9c5df3680447d5fd73999043d9121512710b990fdb7d276d65838262641115dee15af82922d20ffd48fded120e105df31728c0a72d9f735a57dd725cd4
7
- data.tar.gz: c63b47c8d7d79bfb91eb991480aecee1d5625ffb9f5044cfae745b46d64122e711412732e2a7b9460ecb7da29747ce1858451c979c0ed70feca66400deb00fe0
6
+ metadata.gz: e0d6494032e4bd0e63885cf44c990f17b1346ca2eb38f7b64cccff2705b0c05fb6c8972a00919c4d37a1ac6aebd6c3a6cdd57ba32e7c61d79a95bd36caf1c7ba
7
+ data.tar.gz: 51b2d771a1a970fbb2bf621be39f9a9adfdc07bd932644a69d5b1434c3b5c797068a7006096b3eb810ade97ab35255f5f59e60cfc670d389ad09de19b80a2ed9
@@ -1,3 +1,3 @@
1
1
  module SquireRails
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -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
- body.appendChild( this.createDefaultBlock() );
3380
- range.setStart( el, 0 );
3381
- range.setEnd( el, 0 );
3376
+ nodeAfterSplit = this.createDefaultBlock();
3377
+ body.appendChild( nodeAfterSplit );
3382
3378
  }
3383
- this.focus();
3384
- this.setSelection( range );
3385
- this._updatePath( range );
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.7
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-05-15 00:00:00.000000000 Z
11
+ date: 2015-06-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Squire Editor for rails
14
14
  email: