simditor 2.2.0 → 2.2.2
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/simditor/version.rb +1 -1
- data/vendor/assets/javascripts/simditor/simditor.js +8 -8
- 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: 7bfac9eeeec173e7ef5a1076fee5ad36e7435161
|
4
|
+
data.tar.gz: 739aa8ed4dac5e2b4a537b392726ef09aaafd46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 356962cc0ced287091a068fef9965fa7d2f7746f1777a55219bd834cf35326e356d97503127edb2b89ff57e8ddc7fb96165376e646ca0b29292427702839d026
|
7
|
+
data.tar.gz: d93a1bc1535f1f0df11b4ced75ba76159607bc31859e5c64f1dafa1dc32c2c7c41684250255569eb3178c9f5c69b665b373f040fca0ee5fc3f1988c5e70839ff
|
data/lib/simditor/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*!
|
2
|
-
* Simditor v2.
|
2
|
+
* Simditor v2.2.2
|
3
3
|
* http://simditor.tower.im/
|
4
|
-
* 2015-07-
|
4
|
+
* 2015-07-31
|
5
5
|
*/
|
6
6
|
(function (root, factory) {
|
7
7
|
if (typeof define === 'function' && define.amd) {
|
@@ -835,7 +835,7 @@ InputManager = (function(superClass) {
|
|
835
835
|
});
|
836
836
|
_this.editor.body.find('pre:empty').append(_this.editor.util.phBr);
|
837
837
|
if (!_this.editor.util.support.onselectionchange && _this.focused) {
|
838
|
-
return _this.
|
838
|
+
return _this.throttledSelectionChanged();
|
839
839
|
}
|
840
840
|
};
|
841
841
|
})(this));
|
@@ -2167,7 +2167,7 @@ Indentation = (function(superClass) {
|
|
2167
2167
|
return;
|
2168
2168
|
}
|
2169
2169
|
if ($blockEl.is('pre')) {
|
2170
|
-
$pre = this.editor.selection.containerNode;
|
2170
|
+
$pre = this.editor.selection.containerNode();
|
2171
2171
|
if (!($pre.is($blockEl) || $pre.closest('pre').is($blockEl))) {
|
2172
2172
|
return;
|
2173
2173
|
}
|
@@ -2191,7 +2191,7 @@ Indentation = (function(superClass) {
|
|
2191
2191
|
marginLeft = (Math.round(marginLeft / this.opts.indentWidth) + 1) * this.opts.indentWidth;
|
2192
2192
|
$blockEl.css('margin-left', marginLeft);
|
2193
2193
|
} else if ($blockEl.is('table') || $blockEl.is('.simditor-table')) {
|
2194
|
-
$td = this.editor.selection.containerNode.closest('td, th');
|
2194
|
+
$td = this.editor.selection.containerNode().closest('td, th');
|
2195
2195
|
$nextTd = $td.next('td, th');
|
2196
2196
|
if (!($nextTd.length > 0)) {
|
2197
2197
|
$tr = $td.parent('tr');
|
@@ -2232,7 +2232,7 @@ Indentation = (function(superClass) {
|
|
2232
2232
|
return;
|
2233
2233
|
}
|
2234
2234
|
if ($blockEl.is('pre')) {
|
2235
|
-
$pre = this.editor.selection.containerNode;
|
2235
|
+
$pre = this.editor.selection.containerNode();
|
2236
2236
|
if (!($pre.is($blockEl) || $pre.closest('pre').is($blockEl))) {
|
2237
2237
|
return;
|
2238
2238
|
}
|
@@ -2263,7 +2263,7 @@ Indentation = (function(superClass) {
|
|
2263
2263
|
marginLeft = Math.max(Math.round(marginLeft / this.opts.indentWidth) - 1, 0) * this.opts.indentWidth;
|
2264
2264
|
$blockEl.css('margin-left', marginLeft === 0 ? '' : marginLeft);
|
2265
2265
|
} else if ($blockEl.is('table') || $blockEl.is('.simditor-table')) {
|
2266
|
-
$td = this.editor.selection.containerNode.closest('td, th');
|
2266
|
+
$td = this.editor.selection.containerNode().closest('td, th');
|
2267
2267
|
$prevTd = $td.prev('td, th');
|
2268
2268
|
if (!($prevTd.length > 0)) {
|
2269
2269
|
$tr = $td.parent('tr');
|
@@ -5054,7 +5054,7 @@ TableButton = (function(superClass) {
|
|
5054
5054
|
|
5055
5055
|
TableButton.prototype.command = function(param) {
|
5056
5056
|
var $td;
|
5057
|
-
$td = this.editor.selection.containerNode.closest('td, th');
|
5057
|
+
$td = this.editor.selection.containerNode().closest('td, th');
|
5058
5058
|
if (!($td.length > 0)) {
|
5059
5059
|
return;
|
5060
5060
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simditor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wentao Liu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Rails assets wrapper for https://github.com/mycolorway/simditor
|
14
14
|
email:
|