action_text-trix 2.1.17 → 2.1.18
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/app/assets/javascripts/trix.js +9 -3
- data/lib/action_text/trix/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8776552325ed3fcb01ae96e5cb5dcac95755620f720c6c383ad26e1a6b20a018
|
|
4
|
+
data.tar.gz: 2d45cc5c5dc394fa82da1256ccf26089c3e6821518de9aab1f7c10fec65601c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 406a323a8998c2770be0d1b0a5b35997d33f76229588413b089029e17b8134bcc2294b3da89e15b23e50a91b3eddbeaa34075aa60c23bb528dc5664af7d9965f
|
|
7
|
+
data.tar.gz: 6280f7fe260b6a0c4ff3421d9d9a30b2c717fec4a76829ae292282d9dbb73f45ebdfbafb5874b9ce8f3447fcbfe3d75ce52062d08e1d7990ff86b955fe5c93e0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Trix 2.1.
|
|
2
|
+
Trix 2.1.18
|
|
3
3
|
Copyright © 2026 37signals, LLC
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -9,7 +9,7 @@ Copyright © 2026 37signals, LLC
|
|
|
9
9
|
})(this, (function () { 'use strict';
|
|
10
10
|
|
|
11
11
|
var name = "trix";
|
|
12
|
-
var version = "2.1.
|
|
12
|
+
var version = "2.1.18";
|
|
13
13
|
var description = "A rich text editor for everyday writing";
|
|
14
14
|
var main = "dist/trix.umd.min.js";
|
|
15
15
|
var module = "dist/trix.esm.min.js";
|
|
@@ -6862,7 +6862,13 @@ $\
|
|
|
6862
6862
|
|
|
6863
6863
|
class StringPiece extends Piece {
|
|
6864
6864
|
static fromJSON(pieceJSON) {
|
|
6865
|
-
|
|
6865
|
+
const attributes = {
|
|
6866
|
+
...pieceJSON.attributes
|
|
6867
|
+
};
|
|
6868
|
+
if (attributes.href && !purify.isValidAttribute("a", "href", attributes.href)) {
|
|
6869
|
+
delete attributes.href;
|
|
6870
|
+
}
|
|
6871
|
+
return new this(pieceJSON.string, attributes);
|
|
6866
6872
|
}
|
|
6867
6873
|
constructor(string) {
|
|
6868
6874
|
super(...arguments);
|