@jx3box/jx3box-editor 1.8.5 → 1.8.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Article.vue +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Article.vue CHANGED
@@ -196,6 +196,13 @@ export default {
196
196
  let dir = renderDirectory(target, this.directorybox);
197
197
  this.$emit("directoryRendered", dir);
198
198
 
199
+ if(window.location.hash?.includes('directory')){
200
+ let id = window.location.hash
201
+ let target = $(`${id}`).offset().top;
202
+ console.log(target)
203
+ $(document).scrollTop(target - HEADER_HEIGHT);
204
+ }
205
+
199
206
  $(".w-directory-anchor").on("click", function () {
200
207
  e.preventDefault();
201
208
  let id = $(this).attr("id");