markupeditor 0.9.46 → 0.9.47

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.
@@ -15225,9 +15225,9 @@ let baseNodes = OrderedMap.from({
15225
15225
  //
15226
15226
  // 1. Changes to div here may need to be reflected in DivView found in markup.js.
15227
15227
  //
15228
- // 2. We use a style rule to require divs to include id, class, parentId. The div elements
15229
- // are used in the Swift MarkupEditor under these specific conditions, and requiring these
15230
- // attributes prevents issues when pasting (e.g., from GitHub READMEs) include divs.
15228
+ // 2. We use a tag rule with attribute selectors to require divs to include id, class, parentId.
15229
+ // The div elements are used in the Swift MarkupEditor under these specific conditions, and
15230
+ // requiring these attributes prevents issues when pasting (e.g., from GitHub READMEs) include divs.
15231
15231
  //
15232
15232
  // 3. It might be possible to exclude divs that don't conform to MarkupEditor expectations
15233
15233
  // by using a rule. For now, deriving a Node from html always removes divs and buttons, so
@@ -15251,7 +15251,7 @@ let baseNodes = OrderedMap.from({
15251
15251
  writingsuggestions: {default: false},
15252
15252
  },
15253
15253
  parseDOM: [{
15254
- style: "div[id, class, parentId]",
15254
+ tag: "div[id][class][parentId]",
15255
15255
  getAttrs(dom) {
15256
15256
  const id = dom.getAttribute("id");
15257
15257
  const parentId = dom.getAttribute("parentId");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markupeditor",
3
- "version": "0.9.46",
3
+ "version": "0.9.47",
4
4
  "description": "A web component and API for WYSIWYG HTML editing.",
5
5
  "keywords": [
6
6
  "wysiwyg",