From 3db1dfeeba50b5e50f6ef93100cc81bf13ac6772 Mon Sep 17 00:00:00 2001 From: zeltrex7 <93510067+zeltrex7@users.noreply.github.com> Date: Thu, 4 Jan 2024 10:10:05 +0530 Subject: [PATCH] Update block.js --- src/editor/block/block.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/editor/block/block.js b/src/editor/block/block.js index 66d9f8d8..af0ad247 100644 --- a/src/editor/block/block.js +++ b/src/editor/block/block.js @@ -138,11 +138,9 @@ class NoteBlockStart extends WidgetType { // Perform actions on the next div //console.log( nextDiv.textContent); text.push(nextDiv.textContent); - // For example, you can get the data-index attribute from the next div - + // Move to the next sibling div - nextDiv = nextDiv.nextElementSibling; - + nextDiv = nextDiv.nextElementSibling; } if (!nextDiv) {