From bb38167426876819b24f9ae7cbcaf43086427258 Mon Sep 17 00:00:00 2001 From: Vineeth Date: Sun, 29 Jun 2025 15:55:36 +0530 Subject: [PATCH 1/2] fix: caption is not visible when the features.caption is set to true --- package.json | 2 +- src/index.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cdc99cf..954edf8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@editorjs/image", - "version": "2.10.2", + "version": "2.10.3", "keywords": [ "codex editor", "image", diff --git a/src/index.ts b/src/index.ts index c35f436..7700606 100644 --- a/src/index.ts +++ b/src/index.ts @@ -201,6 +201,7 @@ export default class ImageTool implements BlockTool { public render(): HTMLDivElement { if (this.config.features?.caption === true || this.config.features?.caption === undefined || (this.config.features?.caption === 'optional' && this.data.caption)) { this.isCaptionEnabled = true; + this.ui.applyTune('caption', true); } return this.ui.render() as HTMLDivElement; @@ -403,6 +404,8 @@ export default class ImageTool implements BlockTool { if (data.caption) { this.setTune('caption', true); + } else if (this.config.features?.caption === true) { + this.setTune('caption', true); } } From 36e5fce345723afa645338e59336691b7d22aa43 Mon Sep 17 00:00:00 2001 From: idebenone Date: Tue, 1 Jul 2025 21:07:38 +0530 Subject: [PATCH 2/2] chore: update versions of actions --- .github/workflows/eslint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 052c683..314338f 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -7,10 +7,10 @@ jobs: name: ESlint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Cache node modules - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}