Commit graph

848 commits

Author SHA1 Message Date
KoshaevEugeny
b69aa1ed25
fix(inline-tool-link): use defaultValue to prevent selectionchange event (#2993) v2.31.4
* fix(inline-tool-link): use defaultValue to prevent selectionchange event

* fix(link-tool): handle formatted linked text clicks

* fix test errors

* Revert "fix test errors"

This reverts commit 582e137b77.

* Revert "fix(link-tool): handle formatted linked text clicks"

This reverts commit ae90e03c60.
2026-03-04 23:45:11 +03:00
KoshaevEugeny
a89f3d0eda
Fix link tool interaction with other tools (#2977) v2.31.3
* fix(selection): removeFakeBackground no longer removes text formatting

* fix(selection): fix jsdoc

* fix(linkTool): add test case to ensure text formatting preservation when applying link

* Add fix entry to changelog

* bump version
2026-02-18 21:09:54 +03:00
Peter Savchenko
cc624cad2e i18n and rtl examples updated 2026-02-18 15:32:29 +03:00
Alex Gaillard
9f942ca72a
fix(LinkInlineTool): improve unlink behavior based on input state (#2979) v2.31.2
* fix(LinkInlineTool): improve unlink behavior based on input state

* 2.31.2-hotfix.0

* fix(linkTool): Add test case to ensure link preservation when applying bold to linked text

* Revert "2.31.2-hotfix.0"

This reverts commit c68ae54c77.

* Add fix entry to changelog

* Bump version

* Revert "Add fix entry to changelog"

This reverts commit 7e537d662a.

* Add fix entry to changelog without formatting

* Refactor test for compatibility with firefox
2026-02-12 18:45:21 +03:00
KoshaevEugeny
90d6dec90e
fix(blockSettings): prevent warning on initial read-only mode toggle (#2969) v2.31.1
Co-authored-by: Peter <specc.dev@gmail.com>
2026-01-08 01:44:19 +03:00
Kuchizu
fb2bf8f116
ci: update deprecated GitHub Actions runners (#2974)
* ci: update deprecated GitHub Actions runners

ci: update GitHub Actions runners from ubuntu-20.04 to ubuntu-latest

* fix: pin Node 18 in CI workflows for eslint compatibility

* fix(ci): pin Firefox 115 ESR for Cypress compatibility
2026-01-07 21:54:34 +03:00
Peter Savchenko
a04c37b30b add example of how to use i18n for Convert To buttons 2025-09-15 20:14:25 +03:00
Peter
9612e0d247
release 2.31 (#2956) v2.31.0 2025-09-06 16:31:44 +03:00
Peter Savchenko
7b6b78235a add changelog 2025-09-06 16:20:35 +03:00
narpat-ps
df7d3a7883
resolve "Can't find a Block to remove" error in renderFromHTML (#2941)
* fix(blocks):Error occurred when calling renderFromHTML: Can't find a Block to remove.

* fix: resolve "Can't find a Block to remove" error in renderFromHTML

- Make renderFromHTML async and await BlockManager.clear() to prevent race condition
- Change removeBlock order: remove from array before destroy to prevent index invalidation
- Fix clear() method to copy blocks array before iteration to avoid modification during loop

Fixes issue where renderFromHTML would fail with "Can't find a Block to remove" error
due to concurrent block removal operations and array modification during iteration.

Resolves #2518
2025-09-06 16:20:08 +03:00
Peter Savchenko
628f2188e7 Create .nvmrc 2025-09-06 16:14:27 +03:00
Peter
7da61e98ff
improvement(caret): caret.setToBlock() offset argument improved (#2922) v2.31.0-rc.10
* chore(caret): caret.setToBlock offset improved

* handle empty block

* Update caret.cy.ts

* fix eslint
2025-04-30 19:48:20 +03:00
github-actions[bot]
fdaef55e5f
Bump version (#2919) v2.31.0-rc.9
Co-authored-by: github-actions <action@github.com>
2025-03-11 11:17:40 +03:00
Peter
cd65d8cd29
imrovement(flipper): allow to select next/prev line by shift arrows (#2918)
* fix: prevent flipper navigation when shift key is pressed

* rm logs

* feat: improve line selection with Shift + Up/Down

* fix lint action

* fix action

* upd
2025-03-11 10:01:46 +03:00
github-actions[bot]
7399e55f7e
Bump version (#2899) v2.31.0-rc.8
Co-authored-by: github-actions <action@github.com>
2025-01-11 16:25:32 +03:00
Omotayo Obafemi
d15a8c2b2f
Added fix for memory leak issue (#2893)
* Added fix for memory leak issue

* Documented the fix in docs/CHANGELOG.md

* v2.31.0

* Documented the fix in docs/CHANGELOG.md

* Documented the fix in docs/CHANGELOG.md

* Documented the fix in docs/CHANGELOG.md

* Documented the fix in docs/CHANGELOG.md

---------

Co-authored-by: Omotayo Obafemi <omotayo@testlio.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2025-01-08 20:52:40 +03:00
Omotayo Obafemi
d950a11b8e
Bug Fix For When "/" Overides external text (#2894)
* Bug Fix For When / Overides external text

* Moved fix to blockEvents

* Moved fix to blockEvents

* Moved fix to blockEvents

* Refactored test to simulate behaviour

* Added fix to change log

* Refactored test to mimick exact behaviour of the bug

---------

Co-authored-by: Omotayo Obafemi <omotayo@testlio.com>
Co-authored-by: Peter <specc.dev@gmail.com>
2025-01-08 18:23:38 +03:00
Peter
c9a6cfbe8f
dx(submodules): remove tools submodules from the repo (#2898)
* rm all submodules

* rm commands

* Update package.json
2025-01-07 19:34:59 +03:00
Vineeth
deba7eccbd
chore: bump version for release (#2896) v2.31.0-rc.7 2024-12-21 20:15:53 +05:30
Vineeth
444caa9870
fix: properly handle visible whitespaces in empty blocks (#2865)
* fix: handle whitespace input in empty placeholders correctly

* fix: isNodeEmpty() to handle visible whitespaces

* chore: bump version from 2.31.0-rc.5 to 2.31.0-rc.6

* chore: bump version from 2.31.0-rc.5 to 2.31.0-rc.6

* fix: submodules updated

* fix: eslint errors

* test: backspace removes trailing spaces, hides placeholder in empty blocks

* fix: update incorrect tests

* fix: resolving submodules issue

* Create list

---------

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2024-12-21 19:40:15 +05:30
github-actions[bot]
2ec88da336
Bump version (#2895) v2.31.0-rc.6
Co-authored-by: github-actions <action@github.com>
2024-12-21 14:41:46 +03:00
Peter
5e75e64e6c
chore(submodules): update all submodules to the latest version (#2880)
* update all submodules

* rm checklist and nested list submodule

* Update .gitmodules

* rm list submodule

* add list submodule

* all submodules updated

* fix(inline-tools): inline tools shortcuts now works in read-only mode
2024-12-21 14:31:22 +03:00
Peter
6893462d4b
fix(inline-tools): inline tools shortcuts now works in read-only mode (#2891)
* fix(inline-tools): inline tools shortcuts now works in read-only mode

* use ubuntu-20.04 instead of latest
2024-12-21 11:28:55 +03:00
Peter Savchenko
d9f301ffb9 Merge branch 'v-2-30-6' into next v2.31.0-rc.5 2024-11-11 23:30:09 +03:00
Peter
597bde3bca
fix(inline-link): link insertion in safari (#2864) v2.30.7
* fix(inline-link): link insertion in safari

* Update CHANGELOG.md
2024-11-11 22:44:19 +03:00
github-actions[bot]
58a7a9eeea
Bump version (#2861) v2.31.0-rc.4
Co-authored-by: github-actions <action@github.com>
2024-11-06 21:44:07 +03:00
Fabian
b20c891478
notifier and tooltip, fix closes #2591, #2390, #2462 (#2842)
* notifier and tooltip, fix closes #2591, #2390, #2462

* Update CHANGELOG.md

---------

Co-authored-by: Peter <specc.dev@gmail.com>
2024-11-06 21:40:26 +03:00
github-actions[bot]
5ec240891c
Bump version (#2860) v2.31.0-rc.3
Co-authored-by: github-actions <action@github.com>
2024-11-06 21:00:58 +03:00
Peter
7ee06228e7
chore(ui): update current block in readonly by clicks on block (#2859)
* chore(ui): update current block in readonly by clicks on block

* fix eslint
2024-11-06 20:54:51 +03:00
github-actions[bot]
631340912e
Bump version (#2847) v2.31.0-rc.2
Co-authored-by: github-actions <action@github.com>
2024-10-17 20:02:31 +03:00
e11sy
da4257a67f
Feat (Conversion-config): pass target tool config to the conversionConfig.import method (#2848)
* pass config to the conversionConfig.import method

- Now `convertStringToBlockData` method passes target tool config the import method
- Fixed types in convesion config file (somehow imprort could return function that returns string, but import should return method that would return ToolData) this caused just type error that never been reached because types were actually ignored
- Added test that checks, that import method actualy gets passed config

* update changelog

* eslint fix

* updated test description

* jsdoc improved

* typos in changelog
2024-10-17 19:38:02 +03:00
e11sy
3cd24c4da1
Chore (toolbox): improved shortcuts visibility when tool exports array of toolbox items (#2846)
* toolbox items logic improved

* typo

* lint fix

* logic improved

* make displaySecondaryLabel true by default

* eslint fix

* added testcase

* updated changelog

* typo

* lint fix
2024-10-16 21:57:43 +03:00
Peter
eb7ffcba3c
fix(merge): after merge caret will be set in a place of glue (#2841) v2.31.0-rc.1
* fix merge caret loosing

* changelog and patch

* Update nested-list

* Update Backspace.cy.ts

* Update Backspace.cy.ts

* fix tests

* fix tests
2024-10-09 21:28:04 +03:00
github-actions[bot]
21ac511a52
Bump version up to 2.30.7-rc.0 (#2838) v2.31.0-rc.0
* Bump version

* Update package.json

---------

Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter <specc.dev@gmail.com>
2024-10-08 12:05:26 +03:00
Peter
2275ddfc3a
feat(inline-toolbar): inline tools now can be used in the readonly mode (#2832)
* feat(inline-toolbar): inline tools now can be used in the readonly mode

* tests added

* docs improved
2024-10-08 11:38:22 +03:00
github-actions[bot]
3aa164d2d0
Bump version up to 2.30.6-rc.0 (#2818) v2.30.6
* Bump version

* 2.30.6

---------

Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter <specc.dev@gmail.com>
2024-09-14 01:18:43 +03:00
Ilya Gorenburg
b6ba44d610
fix: prevent inline toolbar from closing in nested instance of editor (#2780)
* fix: prevent inline toolbar from closing in nested instance of editor

* docs: updated changelog.md with fix description

* fix: fix import to use `type`

---------

Co-authored-by: Peter <specc.dev@gmail.com>
2024-09-14 01:12:46 +03:00
Angus MacIsaac
2f9696a000
Swallow getLayoutMap() error (#2790)
* Fix getLayoutMap() bug

* Update CHANGELOG.md

---------

Co-authored-by: Angus <angus@coefficient.io>
Co-authored-by: Peter <specc.dev@gmail.com>
2024-09-14 01:00:52 +03:00
VolgaIgor
c82933616c
Fixed display of conversion menu for blocks without export rule (#2799)
* Fixed display of convert menu for blocks without export rule

According to the workflow script from the documentation:
https://editorjs.io/tools-api/#conversionconfig

* Update CHANGELOG.md

* some improvements and tests

---------

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2024-09-14 00:39:19 +03:00
Nikita Melnikov
8f365f0063
chore: updgrade cypress to solve the issue with firefox 129 (#2817) 2024-08-21 00:31:21 +03:00
Tatiana Fomina
339e772b92
fix(types): FIx incorrect imports (#2811) v2.30.5
* Fix types

* Update changelog
2024-08-13 21:41:08 +03:00
github-actions[bot]
c8632b295f
Bump version up to 2.30.4-rc.0 (#2809) v2.30.4
* Bump version

* Update package.json

---------

Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter <specc.dev@gmail.com>
2024-08-09 18:48:46 +03:00
Peter
3d01be4a69
fix(types): tools export types added (#2802)
* fix types export

* lint

* changelog

* tests fixed

* fix tests imports

* lint tests

* upd submodule

* Update yarn.lock

* rename wrapper to factory

* Update package.json

* rename to adapters

* Update tools.d.ts

* BlockTool -> BlockToolAdapter etc

* Update nested-list

* Update collection.ts
2024-08-09 18:04:57 +03:00
Tatiana Fomina
057bf17a6f
Fix i18n in nested popover (#2779) v2.30.3 2024-07-11 22:25:36 +03:00
github-actions[bot]
94109a8123
Bump version up to 2.30.2 (#2777) v2.30.2
* Bump version

* Update package.json

---------

Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter <specc.dev@gmail.com>
2024-07-11 13:23:15 +03:00
Tatiana Fomina
89e192a56d
fix(ConvertTo): i18n (#2776)
* Fix i18n for convert to

* Add tests

* Update changelog

---------

Co-authored-by: Peter <specc.dev@gmail.com>
2024-07-10 23:26:42 +03:00
Tatiana Fomina
b6674367a5
Fix form submit on bold inline tool click (#2775) 2024-07-10 23:13:37 +03:00
github-actions[bot]
15a8fb4bec
Bump version (#2774) v2.30.2-rc.0
Co-authored-by: github-actions <action@github.com>
2024-07-10 19:26:56 +03:00
Peter
91959bba43
fix(on-change): onchange callback wont be fired in readonly (#2773)
* fix(on-change): onchange callback wont be fired in readonly

* do not rerender blocks on initial call
2024-07-10 19:16:36 +03:00
Tatiana Fomina
ba8fa7344a
fix(Inline-toolbar): fake selection stays on screen after toggling convert to (#2768) v2.30.1
* Fix not removing fake selection on convert to toggle

* Update version and changelog

* Update docs/CHANGELOG.md

Co-authored-by: Peter <specc.dev@gmail.com>

---------

Co-authored-by: Peter <specc.dev@gmail.com>
2024-07-09 21:46:42 +03:00