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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cf5a80e4ea3934de46916afc13b3d2d598a704b29c07aa399ab545a0e54cc4f
4
- data.tar.gz: 273ddae41040f29675d28a2387154abf3facbcb8beb0ecf4c9b0e3415b34ecab
3
+ metadata.gz: 8776552325ed3fcb01ae96e5cb5dcac95755620f720c6c383ad26e1a6b20a018
4
+ data.tar.gz: 2d45cc5c5dc394fa82da1256ccf26089c3e6821518de9aab1f7c10fec65601c1
5
5
  SHA512:
6
- metadata.gz: e5e1b53de72ab8ce7f9a61f287b806154741cb8c9321c875bbb05bf7c49ae526bcd710a74a00196cb4dda833e01f8cba9936df9ca800826c0055e7b90193178c
7
- data.tar.gz: 444d9bcb83134dff0bc91df57ddef1f167ee4d314ff70021687d287ccb4a013da9d45ba653e4eee87a51df89e884804a1aaeacbed3a9198b2beec0325e1da209
6
+ metadata.gz: 406a323a8998c2770be0d1b0a5b35997d33f76229588413b089029e17b8134bcc2294b3da89e15b23e50a91b3eddbeaa34075aa60c23bb528dc5664af7d9965f
7
+ data.tar.gz: 6280f7fe260b6a0c4ff3421d9d9a30b2c717fec4a76829ae292282d9dbb73f45ebdfbafb5874b9ce8f3447fcbfe3d75ce52062d08e1d7990ff86b955fe5c93e0
@@ -1,5 +1,5 @@
1
1
  /*
2
- Trix 2.1.17
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.17";
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
- return new this(pieceJSON.string, pieceJSON.attributes);
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);
@@ -1,3 +1,3 @@
1
1
  module Trix
2
- VERSION = "2.1.17"
2
+ VERSION = "2.1.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_text-trix
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.17
4
+ version: 2.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - 37signals, LLC