Commit graph

292 commits

Author SHA1 Message Date
JackUait
3ec36a5d7c test: add tests for i18n 2025-11-10 22:13:35 +03:00
JackUait
bd40b0ff69 test: add tests for sanitisation 2025-11-10 20:50:34 +03:00
JackUait
d14b971774 test: add tests for popover search 2025-11-10 20:22:00 +03:00
JackUait
ff118c4ce8 fix: remove left deprecated APIs from inline-tool-bold.ts 2025-11-10 17:15:04 +03:00
JackUait
f26202e8d7 fix: get rid of deprecated API in inline-tool-bold.ts 2025-11-10 16:54:40 +03:00
JackUait
ec2865091a fix: make ALL tests in inline-tool-bold pass 2025-11-10 14:52:07 +03:00
JackUait
1a8ec5571c feat: make all test cases of inline-tool-bold work 2025-11-10 14:15:34 +03:00
JackUait
07799175e7 fix: lint issues in inline-tool-bold.ts 2025-11-10 05:17:30 +03:00
JackUait
fdcfef6f5a test: add tests for inline-link-tool 2025-11-10 05:04:38 +03:00
JackUait
7107717246 test: add data selectors for states of inline-tool-link 2025-11-09 01:34:08 +03:00
JackUait
02c8bd4f8c fix: lint issues in inline-tool-link.ts 2025-11-09 01:15:24 +03:00
JackUait
0a23e92111 fix: replace execCommand in selection.ts 2025-11-09 01:07:51 +03:00
JackUait
6a6c8731f5 chore: restore execCommand in selection.ts 2025-11-09 00:21:54 +03:00
JackUait
e3a67dcbd3 fix: lint issues in __module.ts 2025-11-08 01:52:34 +03:00
JackUait
614cbc400c fix: lint issues in codex.ts 2025-11-08 01:46:35 +03:00
JackUait
1a6049c97d fix: lint issues in inline-tool-bold.ts 2025-11-07 15:15:37 +03:00
JackUait
c489d020c6 fix: lint issues in namespace-internal.ts 2025-11-07 15:10:26 +03:00
JackUait
ca50d7895e fix: lint issues in index.ts 2025-11-07 15:08:25 +03:00
JackUait
5d25817e22 fix: lint issues in api.ts 2025-11-07 04:13:26 +03:00
JackUait
4762b105c4 fix: lint issues in utils.ts 2025-11-07 04:11:32 +03:00
JackUait
75dde42b51 fix: lint issues in selection.ts 2025-11-07 03:17:25 +03:00
JackUait
81dc13e296 fix: lint issues in polyfills.ts 2025-11-07 03:07:16 +03:00
JackUait
4dd1cdb5be fix: lint issues in flipper.ts 2025-11-07 03:00:22 +03:00
JackUait
4e7e384375 fix: lint issues in dom.ts 2025-11-07 01:57:29 +03:00
JackUait
7ad1eed3bb fix: lint issues in core.ts 2025-11-07 01:28:41 +03:00
JackUait
23f3e9094a fix: lint issues in blocks.ts 2025-11-07 01:15:51 +03:00
JackUait
e32ea4ca9e fix: lint issues in domIterator.ts 2025-11-07 00:53:20 +03:00
JackUait
29c087bf08 fix: lint/typescript errors 2025-11-06 18:47:00 +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
7da61e98ff
improvement(caret): caret.setToBlock() offset argument improved (#2922)
* chore(caret): caret.setToBlock offset improved

* handle empty block

* Update caret.cy.ts

* fix eslint
2025-04-30 19:48:20 +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
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
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
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 2024-11-11 23:30:09 +03:00
Peter
597bde3bca
fix(inline-link): link insertion in safari (#2864)
* fix(inline-link): link insertion in safari

* Update CHANGELOG.md
2024-11-11 22:44:19 +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
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)
* 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
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
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
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) 2024-07-11 22:25:36 +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
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