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>
2021-04-08 21:17:23 +03:00
Umang G. Patel
d02c3e3679
minor test case for onReady onChange data readOnly and i18n added ( #1566 )
2021-04-08 22:19:11 +05:30
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
2021-04-08 22:17:46 +05:30
George Berezhnoy
2d89105670
[Feature] Block Tunes API ( #1596 )
...
* Add internal wrappers for tools classes
* FIx lint
* Change tools collections to map
* Apply some more refactoring
* Make tool instance private field
* Add some docs
* Fix eslint
* Basic implementation for Block Tunes
* Small fix for demo
* Review changes
* Fix
* Add common tunes and ToolsCollection class
* Fixes after review
* Rename tools collections
* Readonly fix
* Some fixes after review
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fixes after review
* Add docs and changelog
* Update docs/block-tunes.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/block/index.ts
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
* [Dev] Tools utils tests (#1602 )
* Add tests for tools utils and coverage report
* Fix eslint
* Adjust test
* Add more tests
* Update after code review
* Fix test & bump version
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
2021-04-04 15:10:26 +03:00
George Berezhnoy
4cfcb656a8
[Refactoring] Tools ( #1595 )
...
* Add internal wrappers for tools classes
* FIx lint
* Change tools collections to map
* Apply some more refactoring
* Make tool instance private field
* Add some docs
* Fix eslint
* Review changes
* Fix
* Fixes after review
* Readonly fix
2021-03-31 23:29:41 +03:00
dependabot[bot]
51a1b48abb
Bump elliptic from 6.5.3 to 6.5.4 ( #1586 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 18:18:47 +03:00
Peter Savchenko
d27427e2da
chore(example): add nested list to the example page ( #1593 )
...
* chore(example): add nested list to the example page
* Update nested-list
* Update example-dev.html
* Update example-dev.html
* Update example-dev.html
2021-03-22 13:04:47 +03:00
George Berezhnoy
79793906a4
Ignore shortcuts error ( #1598 )
2021-03-15 22:41:11 +03:00
Peter Savchenko
166ded6afe
Merge branch 'master' into next
2021-03-15 21:41:19 +03:00
github-actions[bot]
1e1b06d537
chore(release): 2.19.2 ( #1583 )
...
* Bump version
* Bump version
* Update package.json
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-03-15 21:26:07 +03:00
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>
2021-03-15 21:01:10 +03:00
Murod Khaydarov
c4ebdee396
Do not use bubbling on blockManagers' listener ( #1563 )
...
* prevent bubbling
* update CHANGELOG
2021-03-12 20:02:09 +03:00
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>
2021-03-05 00:32:55 +03:00
github-actions[bot]
2a2a6f11ad
Bump version ( #1580 )
...
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-03-04 13:11:46 +03:00
Seonu Jang
0d559a5571
Fix typo ( #1581 )
2021-03-03 09:33:59 +03:00
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>
2021-03-02 16:34:23 +03:00
Peter Savchenko
2759b25d35
refactoring(modules): the listeners module now a util ( #1572 )
...
* listeners module goes util
* fix listeners 'off' bug
* improve garbage collecting
2021-03-02 16:25:52 +03:00
Tomoyuki Hata
3bf30f0c1e
Add generics to OutputBlockData ( #1326 )
...
* Add generics to OutputBlockData
* Fix typo
* Update CHANGELOG.md
* Add @template description
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-02-28 00:33:06 +03:00
Tomoyuki Hata
e5fe93eeb5
Make passed config immutable ( #1553 )
...
* Make passed config immutable
* Update docs/CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Separate this.config initialization
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
2021-02-28 00:31:11 +03:00
Taly
1772edf912
Update releases.md docs for update version workflow ( #1571 )
...
* Update releases.md
If the next update is planned to raise the minor version (`2.19.1` -> `2.20.0`), then change it before version update merge.
* Update docs/releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-27 22:35:26 +03:00
github-actions[bot]
970d64efda
Bump version ( #1570 )
...
Co-authored-by: github-actions <action@github.com>
2021-02-26 14:00:05 +03:00
Taly
ae52d6116c
Update bump-version-on-merge-next.yml ( #1569 )
...
* Update bump-version-on-merge-next.yml
Error: `The process '/usr/bin/git' failed with exit code 128`
Report and fix: https://github.com/peter-evans/create-pull-request/issues/690
* Rename job
2021-02-26 13:51:18 +03:00
Tomoyuki Hata
8104585854
Don't except the first selected block ( #1550 )
...
* Don't except the first selected block
* yarn fix
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
2021-02-26 12:51:53 +03:00
Taly
a229cc5b82
Update releases.md ( #1567 )
2021-02-25 22:11:55 +03:00
github-actions[bot]
254a94e812
Bump version ( #1562 )
...
Co-authored-by: GitHub <noreply@github.com>
2021-02-24 21:13:22 +03:00
Taly
cd6378c160
Feature: add bump version action ( #1561 )
...
* Update create-a-release-draft.yml
* Create bump-version-on-merge-next.yml
* Update releases.md
2021-02-24 21:04:29 +03:00
Taly
c4a57c16a9
Feature: create a release draft workflow ( #1555 )
...
* Rename workflow file
* Create create-a-release-draft.yml
* Update releases.md
2021-02-22 23:27:24 +03:00
Taly
8e4b34a6e1
Feature: action for publishing package update ( #1546 )
...
* Update .npmignore
* Create a Publish package to NPM action
* Branches, versions and releases — complete guideline
* Update docs/releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update docs/releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-19 18:33:04 +03:00
Taly
5cbeabd1cb
Update build commands ( #1545 )
...
* Update build commands
* Update package.json
2021-02-18 20:56:43 +03:00
Tomoyuki Hata
3f39cb735d
Set caret when block data pasted ( #1470 )
...
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 20:31:37 +03:00
kai_ogita
527ff4e6d1
Add url length validation to Link at inline-tool. ( #1476 )
...
* Add url length validation to Link at inline-tool.
fix
* simplify, add chengelog
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 20:25:38 +03:00
Umang G. Patel
aa8675d61d
Toolbar toggler API ( #1466 )
...
* ToolBar Api Added
* Change Log added
* change Toggletoolbar to toggleBlockSetting
* Update docs/CHANGELOG.md
* Update editor.js
* Update toggleBlockSetting to toggleBlockSettings
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Changes requested by hata added
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 22:20:45 +05:30
Tomoyuki Hata
143a539e01
Fix unstable block cut process ( #1485 )
...
* Fix unstable block cut process
* Update CHANGELOG
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 18:51:03 +03:00
Tomoyuki Hata
21adb61bc9
Scroll Window with block selection ( #1457 )
...
* Scroll Window with block selection
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 18:48:05 +03:00
Hiếu Phan
51b1fdc9e0
Hotfix: sanitizer config type definition ( #1491 )
...
* fix: sanitizer config type definition
* update func parram in sanitizer config
* update type
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 18:47:11 +03:00
Mihir Rane
50cbc4d63e
Remove unnecessary window promise ( #1488 )
2021-02-18 18:22:55 +03:00
dependabot[bot]
156a687f40
Bump ini from 1.3.5 to 1.3.8 ( #1544 )
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-18 16:50:26 +03:00
Tomoyuki Hata
4ddba9208d
chore(types): a generic type for tool config added ( #1517 )
...
* Add a generic type to ToolSettings
* Update tool-settings.d.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 16:25:12 +03:00
Peter Savchenko
78478ace2b
chore(tests): testcases.md started ( #1487 )
...
Co-authored-by: Umang G. Patel <23169768+robonetphy@users.noreply.github.com>
2021-02-18 16:16:31 +03:00
Tomoyuki Hata
4c7cad1b41
Remove force options in Caret.navigateNext() and Caret.navigatePrevious() ( #1525 )
...
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 15:19:20 +03:00
Taly
fbd4bd9e0a
Feature: remove bundles ( #1541 )
...
* Remove dist directory
* Ignore dist directory
* Remove local file usage
* Add error banner for missing bundle
* Update CHANGELOG.md
* Fix missed code
* Add mkdir dist command
2021-02-18 14:06:20 +03:00
Peter Savchenko
c106819184
the long line splitted for several small ones, some more docs added
2021-02-17 18:01:28 +03:00
Tomoyuki Hata
7c8778acc4
Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances
2021-02-17 18:01:28 +03:00
Peter Savchenko
c0ff646e8e
chore(example): the new example page for testing multiple instances
2021-02-17 17:22:29 +03:00
Nikita Melnikov
83d8fe7df5
fix license badge in README.md ( #1534 )
2021-02-11 13:50:18 +03:00
Peter Savchenko
b78707fb78
fix eslint
2020-12-08 22:06:28 +03:00
Peter Savchenko
c4eb345c3f
package version updated
2020-12-08 22:06:28 +03:00
Mihir Rane
6ce651ec54
Remove project id and Correct the command name. ( #1452 )
2020-12-08 22:06:28 +03:00
Tomoyuki Hata
421a975fed
Change shortcut listener binding ( #1431 )
...
* Change shortcut listener binding
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2020-12-08 22:06:28 +03:00
Mihir Rane
fea4276a3c
Basic initialisation test for Editor.js ( #1410 )
...
* Initial commit
* Fixed test.html file
* Create editor instance in the test
* Assert paragraph data in editor instance
* Moving cypress folder to test folder
* Minor Fixes
* Removed config test for now
* Fixed example.html
* Fixed editor.js dist path
* Minor Fixes
* Stored Host in a const
* Add nodemon and Fix commands
* Add and configure cypress eslint plugin
* Updated Tests according to best practices
* Minor FIxes
* Minor FIxes
* adjust eslint and ts
* Update .eslintrc
* improve config
* debug tests
* fix tests
* Fix declarations
* descrease debounce
* rm timeout
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@gmail.com>
2020-12-08 22:06:28 +03:00