mirror of
https://github.com/codex-team/editor.js
synced 2024-06-26 17:30:48 +02:00
23 commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
Peter Savchenko |
b7b00fd060
|
chore(onChange): bugfix, batching, improvements of ModificationsObserver (#2349)
* block onchange stash * improve block filtration * update tool root * chore(block): remove willSelect und willUnselect * onchange events batching * get rid of CustomEvent extension, create custom event map instead * improve types of EventsDispatcher * fix tests * custom sinon + chai matchers * improve tests, add mutex for fake cursor * add test for fake-cursor mutex * test for batch filtering * fix caret setting by enter press at the end of the block * test for detectToolRootChange * remove resolved todos * changelog added * fix tests * Update CHANGELOG.md * rename FakeCursorAboutToBeSet -> FakeCursorAboutToBeToggled * update didMutated statements * move inputs cache clearing to a separate method * rm Record inheritance from Event maps * add type alisases * rename isElementContainsFakeCursor -> isFakeCursorInsideContainer * improve code style |
||
Taly |
aafab1d395
|
Use Vite builder (#2300)
* vite builder initial * save * add displayName * add paragraph from npm * fix postcss apply * remove some packages, fix tests * Update cypress.yml * remove logs * remove unused packages * update path to image * update * Update index.html * Update cypress.yml * Update cypress.yml * Update cypress.yml * remove displayName field * update names * Update index.ts * Update index.ts * update packages * remove packages * postcss preserve: true * Update index.html * Update editor-modules.d.ts * use public dir for static * Update vite.config.js * update modules type * Update CHANGELOG.md |
||
Guillaume Leon |
0491155e33
|
feat(toolbar-api): method for toggling toolbox (#2332)
* Expose toolbox control method * Add test for toolbox * rename method to toggleToolbox * add missing test case * Add changelog * remove eslint rule * Update changelog Co-authored-by: Peter Savchenko <specc.dev@gmail.com> * fix linter problems --------- Co-authored-by: Peter Savchenko <specc.dev@gmail.com> |
||
Peter Savchenko |
b1b582b150
|
feat(icons): codex icons package is used instead of svg sprite (#2173)
* chore(icons): migrating to the coded icon pack * conversion toolbar * inline toolbar, part 1 * inline-link tool has the new icons * added a test for creating a link by Enter keydown in link input * rm last icons, svg sprite, loaders * rollback .ce-settings styles * Update CHANGELOG.md * Update settings.json |
||
Peter Savchenko |
ff91466b14
|
feat(toolbar): toolbar refactored and ui improved (#1815)
* chore(block-tune-toggler): toggler moved to the left (draft) * toolbox ui updated * fixd caret jumpling, improved some styles * toolbar moving by block-hover - UI module triggers 'block-hovered' event - Toolbar uses 'block-hovered' for appearing - `currentBlock` setter added to the BlockManager - (reactangle-selection): the throttling added to the mousemove and scroll handlers - `getBlockIndex` method added to the Api - (api-blocks): toolbar moving logic removed from `blocks.move()` and `blocks.swap()` methods. Instead, MoveUp and MoveDown tunes uses Toolbar API * the dark-theme to the example-dev.html * positioning improved * fix(rectangle-selection): first click after RS does not clears selection state * toolbox position fixed * the toolbox module became a standalone class - Toolbox became a standalone class from the editor module. It can be accessed only via the owner (the Toolbar module) - (api.blocks) the insert() method now has the `replace` param. Also, it returns inserted Block API now. * new(api.listeners): `on()` now returns the listener id. The new `offById()` method added * fix bug with Tab pressing on hovered but not focused block * mobile version improved * upd example dev * small updaets * add nested-list * linting * (api.toolbar): `toggleBlockSettings` now fires toggling event with the same state * EventDispatcher used instead of callbacks for the Toolbox * UIApi added * fix ci * git submodules removed from the ci flow * add paragraph submodule to the ci flow * Update CHANGELOG.md * Update package.json * use ubuntu-latest for chrome ci |
||
George Berezhnoy |
4e7b33c2b8
|
onChange improvements (#1678)
* onChange improvements * Return modifications observer module * Fix lint * Fix tests |
||
Taly |
472d950b0b
|
refactoring: notifier is util now (#1628)
* Notifier is util now
* Update CHANGELOG.md
* Update notifier.ts
* Update cypress.yml
* Revert "Update cypress.yml"
This reverts commit
|
||
George Berezhnoy |
a88dc8e30b
|
refactoring(modules): sanitizer module is util now (#1574)
* refactoring(modules): sanitizer module is util now * Remove Sanitizer from Editor modules signature * Bind context to config composition method * Make sanitizer singletone * Make sanitizer a module instead of class * Fix * Add test cases for default values * Fix inline tools default value * Move inline tools and block tunes to BlockTool instance * Fixes after review & some test cases for sanitisation * Upgrade test case Co-authored-by: Peter Savchenko <specc.dev@gmail.com> |
||
Umang G. Patel |
63e438a72d
|
refactoring(modules): Tooltip module is util now (#1601)
* remove tooltip module and create tooltip class * change log added * constructor added with tooltip * linting added * js-docs improved * linting added |
||
Murod Khaydarov |
d945d4c518
|
refactoring(modules): Events module is util now (#1582)
* refactoring(modules): events module is util now * Update changelog * remove redundant line * refactor * Update editor-modules.d.ts Co-authored-by: Peter Savchenko <specc.dev@gmail.com> |
||
George Berezhnoy |
2f5da52d1a
|
refactoring(modules): shortcuts module is util now (#1578)
* (refactoring)shortcuts module is util now * Fix eslint Co-authored-by: Peter Savchenko <specc.dev@gmail.com> |
||
Tomoyuki Hata |
a67e699991
|
Fix SanitizerConfig type definition (#1456)
* Fix SanitizerConfig type definition * Update docs/CHANGELOG.md Co-authored-by: Peter Savchenko <specc.dev@gmail.com> * Fix CHANGELOG * Add JSDoc to TagConfig * yarn lint:fix Co-authored-by: Peter Savchenko <specc.dev@gmail.com> Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com> |
||
Peter Savchenko |
2759b25d35
|
refactoring(modules): the listeners module now a util (#1572)
* listeners module goes util * fix listeners 'off' bug * improve garbage collecting |
||
Peter Savchenko |
29db87525b
|
Release: 2.19 (#1364)
* typo fixed (#1235)
* Improvements: more translations added to the i18n example (#1250)
* Return the result of block.call (#1205)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* Return the result of block.call
This change allows blocks to return the result of `call` methods, thus allowing them to expose arbitrary data as needed.
My particular use case is I am using Vue to mount components inside of the larger editorjs framework. One of the components that we are developing can be thought of as a nested agenda, where labels need to be in an order like:
```
I. Top level
a. second level
i. third level
```
My plan is to have an orchestrator query all blocks, filter those that need labels prepended, and then programmatically tell each block (with another `call` method) to set its depth to the desired level. At that point, Vue can reactively update any labels, etc. that are needed.
I believe this change will allow for other such uses, and I imagine it should not break any existing code since it was returning `null` before.
* Disable ESLint for call method return value
Because we are returning the value of an arbitrary function, the return value can be anything (hence, the return type must be `any`). However, to reduce noise in ESLint output, we disable ESLint checking the line with the `any` type return.
* Change any type to unknown and add to CHANGELOG.md
Change any type of the call method to unknown but eslint shows error
saying the unknown type is undefined, Also, add the chnage to
CHANGELOG.md as an improvement with the link to the PR itself as no
issue was assigned with it.
* Add unknown to eslint globals
* upd
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: ranemihir <mihirrane171@gmail.com>
* <fix> toolbar--opened overlap with certain text [issue 1196] (#1201)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* <fix> toolbar overlap with text
* Add Fix in CHANGELOG.md
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: ranemihir <mihirrane171@gmail.com>
* Rename initialBlock to defaultBlock (#1209)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* Rename initialBlock to defaultBlock
Closes #993
The initialBlock property is renamed to defaultBlock.
* Change keyword 'InitialBlock' to 'DefaultBlock' in all methods
Fixes #993
All the methods using the keyword 'Initial' or 'initial' for initial block
are replace with 'Default' or 'default'.
For example, the Tools.isIntitial() method is changed to Tools.isDefault().
* Keep initialBlock and defaultBlock both.
initialBlock property is still kept but it will deprecated in the
next major release.
* Change defaultBlock in example.html and rebuild.
* Remove package-lock.json file.
* Update docs/tools.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example-dev.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example-dev.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/utils.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/utils.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update types/configs/editor-config.d.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update types/configs/editor-config.d.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/utils.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fix needAddDefaultBlock to needToAddDefaultBlock
* Add as an Improvement to CHANGELOG.md
* Delete editor.js.map
* fix log, rename some more places
* Update example.html
* Update blockManager.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
* Fix blocks.delete with undefined index (#1182) (#1218)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* fix: blocks.delete with undefined index (#1182)
* Add as a Fix in CHANGELOG.md.
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: ranemihir <mihirrane171@gmail.com>
* Fix spam clicking the tune button in Firefox (#1285)
* Fix spam cliclikng tune in Firefox #1273
* build
* Disabled unwanted I18n messages (#1282)
* The unwanted I18n messages from console is disabled
* Update docs/CHANGELOG.md
Improved Change log
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Remove import statement
import * as _ from '../utils';
removed
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Move SavedData and ValidatedData interfaces from internal types (#1251)
* Move SavedData and ValidatedData interfaces from internal types
* Add changelog
* Upd submodules (#1287)
* upd modules
* Revert "upd modules"
This reverts commit
|
||
George Berezhnoy |
b223d63c59
|
Revert "Release: 2.19 (#1341)" (#1363)
This reverts commit
|
||
Peter Savchenko |
78775703c9
|
Release: 2.19 (#1341)
* typo fixed (#1235)
* Improvements: more translations added to the i18n example (#1250)
* Return the result of block.call (#1205)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* Return the result of block.call
This change allows blocks to return the result of `call` methods, thus allowing them to expose arbitrary data as needed.
My particular use case is I am using Vue to mount components inside of the larger editorjs framework. One of the components that we are developing can be thought of as a nested agenda, where labels need to be in an order like:
```
I. Top level
a. second level
i. third level
```
My plan is to have an orchestrator query all blocks, filter those that need labels prepended, and then programmatically tell each block (with another `call` method) to set its depth to the desired level. At that point, Vue can reactively update any labels, etc. that are needed.
I believe this change will allow for other such uses, and I imagine it should not break any existing code since it was returning `null` before.
* Disable ESLint for call method return value
Because we are returning the value of an arbitrary function, the return value can be anything (hence, the return type must be `any`). However, to reduce noise in ESLint output, we disable ESLint checking the line with the `any` type return.
* Change any type to unknown and add to CHANGELOG.md
Change any type of the call method to unknown but eslint shows error
saying the unknown type is undefined, Also, add the chnage to
CHANGELOG.md as an improvement with the link to the PR itself as no
issue was assigned with it.
* Add unknown to eslint globals
* upd
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: ranemihir <mihirrane171@gmail.com>
* <fix> toolbar--opened overlap with certain text [issue 1196] (#1201)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* <fix> toolbar overlap with text
* Add Fix in CHANGELOG.md
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: ranemihir <mihirrane171@gmail.com>
* Rename initialBlock to defaultBlock (#1209)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* Rename initialBlock to defaultBlock
Closes #993
The initialBlock property is renamed to defaultBlock.
* Change keyword 'InitialBlock' to 'DefaultBlock' in all methods
Fixes #993
All the methods using the keyword 'Initial' or 'initial' for initial block
are replace with 'Default' or 'default'.
For example, the Tools.isIntitial() method is changed to Tools.isDefault().
* Keep initialBlock and defaultBlock both.
initialBlock property is still kept but it will deprecated in the
next major release.
* Change defaultBlock in example.html and rebuild.
* Remove package-lock.json file.
* Update docs/tools.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example-dev.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example-dev.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update example/example.html
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/utils.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/utils.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update types/configs/editor-config.d.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update types/configs/editor-config.d.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/utils.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fix needAddDefaultBlock to needToAddDefaultBlock
* Add as an Improvement to CHANGELOG.md
* Delete editor.js.map
* fix log, rename some more places
* Update example.html
* Update blockManager.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
* Fix blocks.delete with undefined index (#1182) (#1218)
* [Improvements] ESLint action (#1099)
* TSLint -> ESLint, GitHub Action
* Update eslint.yml
* Autofix
* more autofix
* fix
* manually fix some issues
* Update CHANGELOG.md
* [Refactor] ESLint fixed (#1100)
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Feature] i18n (#1106)
* i18n first steps
* i18n internal, toolbox, api for tools
* namespaced api
* tn, t
* tn in block tunes
* join toolbox and inlineTools under toolNames
* translations
* make enum toolTypes
* Update block.ts
* Update src/components/core.ts
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* add more types
* rm tn
* export i18n types
* upd bundle
* fix tabulation
* Add type-safe namespaces
* upd
* Improve example
* Update toolbox.ts
* improve examplle
* upd
* fix typo
* Add comments for complex types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Remove unused submodule
* Fixed: icon centering in Firefox
* Do not load styles twice (#1112)
* Do not load styles twice
* Add changelog
* Fix issue link
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Show warning if Block to delete is not found (#1111)
Resolves #1102
* Save Tools' order in the Toolbox (#1113)
Resolves #1073
* fix $.isEmpty performance (#1096)
* fix $.isEmpty performance
* add changelog
* upd bundle
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Add issue templates (#1114)
* Update issue templates (#1121)
* Update issue templates
* Apply suggestions from code review
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
* upd texts
* Update feature_request.md
* Update .github/ISSUE_TEMPLATE/discussion.md
Co-Authored-By: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
* Allowing deleting block by block id (#1108)
* Allowing deleting block by block id
* Fixed no argument error
* Making index value optional for delete operation
* Added to changelog
* Making index value optional for delete operation
* Added parameter description
* Update docs/CHANGELOG.md
* Update types/api/blocks.d.ts
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Allow navigate next from last non-initial block (#1110)
Resolves #1103
* Create CODE_OF_CONDUCT.md (#1171)
* Create CODE_OF_CONDUCT.md
* Update changelog file
* Update dependencies (#1122)
* Update dependencies
* upd codex.tooltip
* Update editor.js.LICENSE.txt
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Feature/disable tab event config (#1164)
* Highlight first block on autofocus (#1127)
* Fix shortcut for external tools (#1141)
* fix/shortcut-for-external-tools
* Check inline tools property for shortcut
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
* Removed shortcut CMD+A on editor destroy #1133
* Removed patch version and made code cleaner #1133
* lint error fixes #1133
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
* [Feature] BlockAPI Interface (#1075)
* Fix BlockManager.insert method (#1172)
* Fix BlockManager.insert method
* upd
* Explicitly check for undefined
* Update tools master branches (#1180)
* Update master branches
* Update image
* Update CHANGELOG.md
* Fix behaviour of inputs editing in block settings (#1123)
* lint code
* Update CHANGELOG.md
* fix: blocks.delete with undefined index (#1182)
* Add as a Fix in CHANGELOG.md.
* Update editor.js
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: tasuku-s <tasuku@freemind.co.jp>
Co-authored-by: Athul Anil Kumar <athul7744@outlook.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com>
Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com>
Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com>
Co-authored-by: Sisir <sisir@hellosivi.com>
Co-authored-by: ranemihir <mihirrane171@gmail.com>
* Fix spam clicking the tune button in Firefox (#1285)
* Fix spam cliclikng tune in Firefox #1273
* build
* Disabled unwanted I18n messages (#1282)
* The unwanted I18n messages from console is disabled
* Update docs/CHANGELOG.md
Improved Change log
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Remove import statement
import * as _ from '../utils';
removed
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Move SavedData and ValidatedData interfaces from internal types (#1251)
* Move SavedData and ValidatedData interfaces from internal types
* Add changelog
* Upd submodules (#1287)
* upd modules
* Revert "upd modules"
This reverts commit
|
||
Peter Savchenko |
63eeec0f3b
|
Release / 2.18 (#1181)
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com> Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com> Co-authored-by: tasuku-s <tasuku@freemind.co.jp> Co-authored-by: Athul Anil Kumar <athul7744@outlook.com> Co-authored-by: Taly <vitalik7tv@yandex.ru> Co-authored-by: flaming-cl <51183663+flaming-cl@users.noreply.github.com> Co-authored-by: Nguyen Ngoc Son <sonnn.se@gmail.com> Co-authored-by: Sisir Das K <37764463+sis-dk@users.noreply.github.com> Co-authored-by: Sisir <sisir@hellosivi.com> |
||
Peter Savchenko |
ac93017c70
|
Release 2.16 (#966)
* 2.16.0 * [Refactor] Separate internal and external settings (#845) * Enable flipping tools via standalone class (#830) * Enable flipping tools via standalone class * use flipper to refactor (#842) * use flipper to refactor * save changes * update * fix flipper on inline toolbar * ready for testing * requested changes * update doc * updates * destroy flippers * some requested changes * update * update * ready * update * last changes * update docs * Hghl active button of CT, simplify activate/deactivate * separate dom iterator * unhardcode directions * fixed a link in readme.md (#856) * Fix Block selection via CMD+A (#829) * Fix Block selection via CMD+A * Delete editor.js.map * update * update * Update CHANGELOG.md * Improve style of selected blocks (#858) * Cross-block-selection style improved * Update CHANGELOG.md * Fix case when property 'observer' in modificationObserver is not defined (#866) * Bump lodash.template from 4.4.0 to 4.5.0 (#885) Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](https://github.com/lodash/lodash/compare/4.4.0...4.5.0) Signed-off-by: dependabot[bot] <support@github.com> * Bump eslint-utils from 1.3.1 to 1.4.2 (#886) Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2. - [Release notes](https://github.com/mysticatea/eslint-utils/releases) - [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2) Signed-off-by: dependabot[bot] <support@github.com> * Bump mixin-deep from 1.3.1 to 1.3.2 (#887) Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/jonschlinkert/mixin-deep/releases) - [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2) Signed-off-by: dependabot[bot] <support@github.com> * update bundle and readme * Update README.md * upd codeowners, fix funding * Minor Docs Fix according to main Readme (#916) * Inline Toolbar now contains Conversion Toolbar (#932) * Block lifecycle hooks (#906) * [Fix] Arrow selection (#964) * Fix arrow selection * Add docs * [issue-926]: fix dom iterator leafing when items are empty (#958) * [issue-926]: fix dom iterator leafing when items are empty * update Changelog * Issue 869 (#963) * Fix issue 943 (#965) * [Draft] Feature/tooltip enhancements (#907) * initial * update * make module standalone * use tooltips as external module * update * build via prod mode * add tooltips as external module * add declaration file and options param * add api tooltip * update * removed submodule * removed due to the incorrect setip * setup tooltips again * wip * update tooltip module * toolbox, inline toolbar * Tooltips in block tunes not uses shorthand * shorthand in a plus and block settings * fix doc * Update tools-inline.md * Delete tooltip.css * Update CHANGELOG.md * Update codex.tooltips * Update api.md * [issue-779]: Grammarly conflicts (#956) * grammarly conflicts * update * upd bundle * Submodule Header now on master * Submodule Marker now on master * Submodule Paragraph now on master * Submodule InlineCode now on master * Submodule Simple Image now on master * [issue-868]: Deleting multiple blocks triggers back button in Firefox (#967) * Deleting multiple blocks triggers back button in Firefox @evgenusov * Update editor.js * Update CHANGELOG.md * pass options on removeEventListener (#904) * pass options on removeEventListener by removeAll * rebuild * Merge branch 'release/2.16' into pr/904 * Update CHANGELOG.md * Update inline.ts * [Fix] Selection rangecount (#968) * Fix #952 (#969) * Update codex.tooltips * Selection bugfix (#970) * Selection bugfix * fix cross block selection * close inline toolbar when blocks selected via shift * remove inline toolbar closing on cross block selection mouse up due to the bug (#972) * [Feature] Log levels (#971) * Decrease margins (#973) * Decrease margins * Update editor.licenses.txt * Update src/components/domIterator.ts Co-Authored-By: Murod Khaydarov <murod.haydarov@gmail.com> * [Fix] Fix delete blocks api method (#974) * Update docs/usage.md Co-Authored-By: Murod Khaydarov <murod.haydarov@gmail.com> * rm unused * Update yarn.lock file * upd bundle, changelog |
||
George Berezhnoy |
13dc0c9bad
|
[Release] Version 2.15 (#826) | ||
George Berezhnoy | 79f8660637 |
Version 2.13 (#719)
* Do not start multi-block selection on UI elements (#662) * Do not start multi-block selection on UI elements * Do not prevent mousedown event on inline toolbar actions * Remove log * Add comment * Add link to issue closes #646 * Fix loss of pointer (#666) * Fix loss of pointer when click is outside of the editor but selection is inside * Remove log * Update shortcuts module (#685) * Fixed possible grammatical typo (#681) Thanks * Update shortcuts module * update changelog * update * Remove margin top for inline-link icon (#690) * Remove margin top for inline-link icon resolves #674 * Update CHANGELOG.md * Remove unused style * Pull fresh tools * Remove changelog contents from readme (#700) * #665 API to open and close inline-toolbar (#711) * API to open and close inline-toolbar * Fixed documentation * renamed inline -> inline-toolbar * removed dist * reset editor.js * added editor.js bundle * Fixed build error * Null checks on toolbar/inline@open * updated bundle * Improve some comments * Updatd api.md CHANGELOG.md * Change feature to new instead of improvement * Allow holderId work with ref on dom element (#710) * done * update types * attempt to simplify code * remove useless helper * revert holderId logic and add holder property * Apply suggestions from code review Co-Authored-By: dimensi <eddimensi@gmail.com> * update holder type on string | HTMLElement * fix typo * add deprecated notice and fix typos * fix wrong compare * fix comments * swap console.log on _.log * update types for editor config * update examples * update docs * update build * Activating Open Collective (#736) Hi, I'm making updates for Open Collective. Either you or a supporter signed this repo up for Open Collective. This pull request adds backers and sponsors from your Open Collective https://opencollective.com/editorjs❤️ It adds two badges at the top to show the latest number of backers and sponsors. It also adds placeholders so that the avatar/logo of new backers/sponsors can automatically be shown without having to update your README.md. [more info](https://github.com/opencollective/opencollective/wiki/Github-banner). See how it looks on this [repo](https://github.com/apex/apex#backers). You can also add a postinstall script to let people know after npm|yarn install that you are welcoming donations (optional). [More info](https://github.com/OpenCollective/opencollective-cli) You can also add a "Donate" button to your website and automatically show your backers and sponsors there with our widgets. Have a look here: https://opencollective.com/widgets P.S: As with any pull request, feel free to comment or suggest changes. The only thing "required" are the placeholders on the README because we believe it's important to acknowledge the people in your community that are contributing (financially or with code!). Thank you for your great contribution to the open source community. You are awesome! 🙌 And welcome to the open collective community! 😊 Come chat with us in the #opensource channel on https://slack.opencollective.com - great place to ask questions and share best practices with other open source sustainers! * Do not install editor.js as dev-dependency (#731) Resolves #730 * Move codex-notifier to dependencies for typescript declarations (#728) * Close inline toolbar after creating new link by pressing ENTER (#722) * Method to clear current selection and close inline toolbar * clearSelection with optional collapsed range * refactored selection.ts * removed experimental function * Update src/components/selection.ts Co-Authored-By: tanmayv <12tanmayvijay@gmail.com> * update version, add changelog * Link Logo Image to homepage (#738) * Update README.md (#744) * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md Co-Authored-By: neSpecc <specc.dev@gmail.com> * Config minHeight option that allows to customize bottom zone (#745) * issue-739: allow Block's editable element selection (#747) * issue-739: allow Block's input selection * little improvements * update Changelog and cache inputs * small fix * delete map file * fix inputs.count condition * Fix typo in example paragraph (#749) * Fix typo * Update example-dev.html * minor release |
||
horoyami |
beeeef0914
|
Mouse selection (#574)
* Mouse selection |
||
Polina Shneider |
fc3e146764
|
Validate saved data (#591)
* Specify submodule branch for test * Change branch for testing convenience Just run: git submodule update --remote * Added checklist submodule for test * Attempt to validate data on save * Rewrite promise.then to async/await * Move validate logic to saver * Remove extra space * Fix tabs * Don't need async/await here * Remove submodule * Improve logging, remove empty blocks from data array * Remove warning * Loop over blocks only once * Make validate non-async * Get rid of await Promise.all * Make validate async * Call plugin's validate method with await * Add docs * Update docs * Make separate function for tools validation * Rename method * Add data types interfaces * Improve logging * Desctructure extraction object * Remove useless argument * Update README and changelog * Make separate changelog for version * Increase version * Bump version * Keep logs at their places * Fix logs order * Pull submodules * Improve logs grouping * log styles improved * Describe allExtractedData type * Improve JSDoc |
||
George Berezhnoy |
bcdfcdadbc
|
Move to typescript (#474)
* Move all modules to ts * It works * Update README.md Co-Authored-By: gohabereg <gohabereg@users.noreply.github.com> * Interfaces * Interfaces * Move depending interfaces to external types * Update README.md * update tools * add some docs * Add some fixes * Add desctiprion for Block declaration and Core properties * Fixes due comments : * Remove Block from external types * Bump version * Update src/components/modules/tools.ts Co-Authored-By: gohabereg <gohabereg@users.noreply.github.com> * Update src/components/core.ts Co-Authored-By: gohabereg <gohabereg@users.noreply.github.com> * Rename gteBlockHTMLByIndex to getBlockByIndex * Remove unnecessary constructors * Clean up bindEvents method * Add InlineToolConstructable interface * Delete legacy notifications class * Fix zero-configuration bugs * Update inline tools and block tunes constructors |