Skip to content

Commit

Permalink
Bugfix inspectModule.getAllTags() for image and table modules
Browse files Browse the repository at this point in the history
  • Loading branch information
edi9999 committed Dec 17, 2024
1 parent 36b922f commit 8a659ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 3.55.7

Bugfix to fix inspectModule.getAllTags() when using image module ({%image} tag inside alt text) or table merge cell module.

In case when you were using the features of the module, the getAllTags would fail with a stacktrace.

### 3.55.6

When using a loop inside a table, if there is a bookmark right after the table, a new empty paragraph would be added.
Expand Down
5 changes: 4 additions & 1 deletion es6/inspect-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ function getTags(postParsed) {
stack.push({
items: filtered,
parents: [...current.parents, part],
path: part.value ? [...current.path, part.value] : [...current.path],
path:
part.dataBound !== false && !part.attrParsed && part.value
? [...current.path, part.value]
: [...current.path],
});
}
}
Expand Down

0 comments on commit 8a659ad

Please sign in to comment.