* fix(link-tool): open new window with url when formatted link clicked via ctrl key
* add test
* fix lint
* bump version and add changelog
* Apply suggestions from code review
Co-authored-by: Peter <specc.dev@gmail.com>
Co-authored-by: KoshaevEugeny <103786108+akulistus@users.noreply.github.com>
* Update test/cypress/tests/inline-tools/link.cy.ts
Co-authored-by: Peter <specc.dev@gmail.com>
---------
Co-authored-by: Peter <specc.dev@gmail.com>
* 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.
* 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
* 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
* 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
* 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>
* 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>
* 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
* 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>
* 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>
* 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>
* Update `tunes` data when new `tunes` data is provided
AFAIK, when you update block using `editor.blocks.update` method, only `data` attribute is merged and updated. I believe `tunes` data should be updated if provided.
* commit
* edit parameter type, move test
* restore package-lock and yarn lock
* update in api docs
* make data optional
* edit changelog
---------
Co-authored-by: Thomas <zawlintun@robust.best>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* feat: Fix caret loss after Backspace at the start of block when previous block is not convertible
* fix create shadow caret
* fix: remove unnecessary blank line in blockEvents.ts
* fix: pass event object to slashPressed method in blockEvents.ts
* fix eslint
* Add custom item
* Remove customcontent parameter from popover
* Tests
* Cleanup
* Cleanup
* Lint
* Cleanup
* Rename custom to html, add enum with item types
* Fix tests
* Support hint
* Rename hint content to hint
* Align hint left
* Move types and exports
* Update changelog
* Cleanup
* Add todos
* Change the way hint is disabled for mobile
* Get rid of buildItems override
* Update comment
* fix caret loosing after caret
* Refactor convert method to return Promise in Blocks API
* changelog upd
* Fix missing semicolon in blocks.cy.ts and BlockTunes.cy.ts
* add test for inline toolbar conversion
* Fix missing semicolon in InlineToolbar.cy.ts
* add test for toolbox shortcut
* api caret.setToBlock now can accept block api or index or id
* eslint fix
* Refactor test descriptions in caret.cy.ts
* rm tsconfig change
* lint
* lint
* Update CHANGELOG.md