2018-11-23 17:11:50 +01:00
|
|
|
import {OutputData} from '../data-formats/output-data';
|
2020-06-03 10:17:29 +02:00
|
|
|
import {BlockToolData, ToolConfig} from '../tools';
|
|
|
|
import {BlockAPI} from './block';
|
2018-11-23 17:11:50 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Describes methods to manipulate with Editor`s blocks
|
|
|
|
*/
|
|
|
|
export interface Blocks {
|
|
|
|
/**
|
|
|
|
* Remove all blocks from Editor zone
|
|
|
|
*/
|
|
|
|
clear(): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Render passed data
|
2020-10-12 23:03:00 +02:00
|
|
|
* @param {OutputData} data
|
|
|
|
* @return {Promise<void>}
|
2018-11-23 17:11:50 +01:00
|
|
|
*/
|
2020-10-12 23:03:00 +02:00
|
|
|
render(data: OutputData): Promise<void>;
|
2018-11-23 17:11:50 +01:00
|
|
|
|
2019-03-18 21:59:40 +01:00
|
|
|
/**
|
|
|
|
* Render passed HTML string
|
|
|
|
* @param {string} data
|
|
|
|
* @return {Promise<void>}
|
|
|
|
*/
|
|
|
|
renderFromHTML(data: string): Promise<void>;
|
|
|
|
|
2018-11-23 17:11:50 +01:00
|
|
|
/**
|
|
|
|
* Removes current Block
|
2020-06-03 10:17:29 +02:00
|
|
|
* @param {number} index - index of a block to delete
|
2018-11-23 17:11:50 +01:00
|
|
|
*/
|
2020-06-03 10:17:29 +02:00
|
|
|
delete(index?: number): void;
|
2018-11-23 17:11:50 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Swaps two Blocks
|
|
|
|
* @param {number} fromIndex - block to swap
|
|
|
|
* @param {number} toIndex - block to swap with
|
Release/2.17 (#1063)
* 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
* Resolve Firefox issues (#981)
* Resolve Firefox issues
* use firefox hack only for empty c-e divs
* Set initial hidden Inline Toolbar position (#982)
Resolves #979
* [Fix] tooltip types (#986)
* Add tooltip as a package
* Fix to set minHeight 0px (#987)
* 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
* Fix changeling list items (#975)
* Update changelog (#976)
* Fix to set minHeight 0px
* upd version
* Update CHANGELOG.md
* upd bundle
* [Fix] Selection issues (#988)
* [Dev] Update dependencies (#989)
* Delete codex.tooltips
* Update submodules
* Fix/hide conversion toolbar (#991)
* Hide conversion toolbar if there is no conversion tool
* update changelog
* update comment
* updates
* improve code
* Update Changelog
* Update CHANGELOG.md
* fix some problems at example
* Update CHANGELOG.md
* Fix: bind editor when calling onChange (#1048)
* Release/2.16.1 (#990)
* 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
* Resolve Firefox issues (#981)
* Resolve Firefox issues
* use firefox hack only for empty c-e divs
* Set initial hidden Inline Toolbar position (#982)
Resolves #979
* [Fix] tooltip types (#986)
* Add tooltip as a package
* Fix to set minHeight 0px (#987)
* 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
* Fix changeling list items (#975)
* Update changelog (#976)
* Fix to set minHeight 0px
* upd version
* Update CHANGELOG.md
* upd bundle
* [Fix] Selection issues (#988)
* [Dev] Update dependencies (#989)
* Delete codex.tooltips
* Update submodules
* Fix/hide conversion toolbar (#991)
* Hide conversion toolbar if there is no conversion tool
* update changelog
* update comment
* updates
* improve code
* Update Changelog
* Update CHANGELOG.md
* Update CHANGELOG.md
* Fix: bind editor when calling onChange
fixes #999
* send api as a parameter
* upd bundle
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* updated some wording. (#1044)
* Release/2.16.1 (#990)
* 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
* Resolve Firefox issues (#981)
* Resolve Firefox issues
* use firefox hack only for empty c-e divs
* Set initial hidden Inline Toolbar position (#982)
Resolves #979
* [Fix] tooltip types (#986)
* Add tooltip as a package
* Fix to set minHeight 0px (#987)
* 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
* Fix changeling list items (#975)
* Update changelog (#976)
* Fix to set minHeight 0px
* upd version
* Update CHANGELOG.md
* upd bundle
* [Fix] Selection issues (#988)
* [Dev] Update dependencies (#989)
* Delete codex.tooltips
* Update submodules
* Fix/hide conversion toolbar (#991)
* Hide conversion toolbar if there is no conversion tool
* update changelog
* update comment
* updates
* improve code
* Update Changelog
* Update CHANGELOG.md
* Update CHANGELOG.md
* updated some wording.
* Update installation.md
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fix grammar in readme.md (#1008)
* Update editor.js
* Paste listener on editors instead of document (#1025)
* Paste listener on editors instead of document
* add changelog
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Bump acorn from 6.4.0 to 6.4.1 (#1059)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix flipper activate/deactivate when conversionToolbarOpened (#1001)
* Fix flipper activate/deactivate when conversionToolbarOpened
* fix bug with flipping inline toolbar
* update changelog
* added comment for new condition
* upd bundle
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Issue-1057]: open new window by clicking anchor with ctrl (#1062)
* open new window when anchor clicked with ctrl
* delete source maps
* update function name
* update
* update changelog
* Fix settings box-sizing (#1013)
* Improvements: new Block Settings button style (#1064)
* [Feature] In-house copy paste (#1060)
* New block lifecycle hook and BlockToolAPI: "moved" (#1007)
* Update CHANGELOG.md
* feat: add swapped lifecycle hook
* feat: deprecate swap and add move instead
* feat: set fromIndex by default, add MoveEvent, add indices checks in blockManager
* refactor: MoveEvent interface more event-like; docs: added docs for MoveEvent
* fix asterix alignment due to tslint error
* fix tslint
* extending CustomEvent
* update bundle
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
* Change paste function of text/plain (#1014)
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Improve paste function of multiple lines (#1016)
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* 2.17.0
* Update bundle
Co-authored-by: georgyb <yegor.berezhnoi@3d4medical.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Christof Jans <christof@loopfx.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: VladimirZhdanov <vlzh@pm.me>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chaitanya <yourchaitu@gmail.com>
Co-authored-by: Marina <marina.zadoyanchuk@gmail.com>
Co-authored-by: Hata <hato6502@gmail.com>
Co-authored-by: Mohamed El Bahja <mohamed.jss11@gmail.Com>
Co-authored-by: Danny Rubio <drbe4t@gmail.com>
Co-authored-by: darrelfrancis <20881844+darrelfrancis@users.noreply.github.com>
Co-authored-by: Emmanuel Francis Ramos Jr <ponnex@gmail.com>
Co-authored-by: Andrey Blinov <andrey.blinoff@gmail.com>
Co-authored-by: Stefan Natter <stefan@natter.at>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
2020-03-14 21:47:04 +01:00
|
|
|
* @deprecated — use 'move' instead
|
2018-11-23 17:11:50 +01:00
|
|
|
*/
|
|
|
|
swap(fromIndex: number, toIndex: number): void;
|
|
|
|
|
Release/2.17 (#1063)
* 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
* Resolve Firefox issues (#981)
* Resolve Firefox issues
* use firefox hack only for empty c-e divs
* Set initial hidden Inline Toolbar position (#982)
Resolves #979
* [Fix] tooltip types (#986)
* Add tooltip as a package
* Fix to set minHeight 0px (#987)
* 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
* Fix changeling list items (#975)
* Update changelog (#976)
* Fix to set minHeight 0px
* upd version
* Update CHANGELOG.md
* upd bundle
* [Fix] Selection issues (#988)
* [Dev] Update dependencies (#989)
* Delete codex.tooltips
* Update submodules
* Fix/hide conversion toolbar (#991)
* Hide conversion toolbar if there is no conversion tool
* update changelog
* update comment
* updates
* improve code
* Update Changelog
* Update CHANGELOG.md
* fix some problems at example
* Update CHANGELOG.md
* Fix: bind editor when calling onChange (#1048)
* Release/2.16.1 (#990)
* 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
* Resolve Firefox issues (#981)
* Resolve Firefox issues
* use firefox hack only for empty c-e divs
* Set initial hidden Inline Toolbar position (#982)
Resolves #979
* [Fix] tooltip types (#986)
* Add tooltip as a package
* Fix to set minHeight 0px (#987)
* 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
* Fix changeling list items (#975)
* Update changelog (#976)
* Fix to set minHeight 0px
* upd version
* Update CHANGELOG.md
* upd bundle
* [Fix] Selection issues (#988)
* [Dev] Update dependencies (#989)
* Delete codex.tooltips
* Update submodules
* Fix/hide conversion toolbar (#991)
* Hide conversion toolbar if there is no conversion tool
* update changelog
* update comment
* updates
* improve code
* Update Changelog
* Update CHANGELOG.md
* Update CHANGELOG.md
* Fix: bind editor when calling onChange
fixes #999
* send api as a parameter
* upd bundle
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* updated some wording. (#1044)
* Release/2.16.1 (#990)
* 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
* Resolve Firefox issues (#981)
* Resolve Firefox issues
* use firefox hack only for empty c-e divs
* Set initial hidden Inline Toolbar position (#982)
Resolves #979
* [Fix] tooltip types (#986)
* Add tooltip as a package
* Fix to set minHeight 0px (#987)
* 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
* Fix changeling list items (#975)
* Update changelog (#976)
* Fix to set minHeight 0px
* upd version
* Update CHANGELOG.md
* upd bundle
* [Fix] Selection issues (#988)
* [Dev] Update dependencies (#989)
* Delete codex.tooltips
* Update submodules
* Fix/hide conversion toolbar (#991)
* Hide conversion toolbar if there is no conversion tool
* update changelog
* update comment
* updates
* improve code
* Update Changelog
* Update CHANGELOG.md
* Update CHANGELOG.md
* updated some wording.
* Update installation.md
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fix grammar in readme.md (#1008)
* Update editor.js
* Paste listener on editors instead of document (#1025)
* Paste listener on editors instead of document
* add changelog
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Bump acorn from 6.4.0 to 6.4.1 (#1059)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.1)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix flipper activate/deactivate when conversionToolbarOpened (#1001)
* Fix flipper activate/deactivate when conversionToolbarOpened
* fix bug with flipping inline toolbar
* update changelog
* added comment for new condition
* upd bundle
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* [Issue-1057]: open new window by clicking anchor with ctrl (#1062)
* open new window when anchor clicked with ctrl
* delete source maps
* update function name
* update
* update changelog
* Fix settings box-sizing (#1013)
* Improvements: new Block Settings button style (#1064)
* [Feature] In-house copy paste (#1060)
* New block lifecycle hook and BlockToolAPI: "moved" (#1007)
* Update CHANGELOG.md
* feat: add swapped lifecycle hook
* feat: deprecate swap and add move instead
* feat: set fromIndex by default, add MoveEvent, add indices checks in blockManager
* refactor: MoveEvent interface more event-like; docs: added docs for MoveEvent
* fix asterix alignment due to tslint error
* fix tslint
* extending CustomEvent
* update bundle
* Update CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
* Change paste function of text/plain (#1014)
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* Improve paste function of multiple lines (#1016)
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
* 2.17.0
* Update bundle
Co-authored-by: georgyb <yegor.berezhnoi@3d4medical.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Christof Jans <christof@loopfx.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: VladimirZhdanov <vlzh@pm.me>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Chaitanya <yourchaitu@gmail.com>
Co-authored-by: Marina <marina.zadoyanchuk@gmail.com>
Co-authored-by: Hata <hato6502@gmail.com>
Co-authored-by: Mohamed El Bahja <mohamed.jss11@gmail.Com>
Co-authored-by: Danny Rubio <drbe4t@gmail.com>
Co-authored-by: darrelfrancis <20881844+darrelfrancis@users.noreply.github.com>
Co-authored-by: Emmanuel Francis Ramos Jr <ponnex@gmail.com>
Co-authored-by: Andrey Blinov <andrey.blinoff@gmail.com>
Co-authored-by: Stefan Natter <stefan@natter.at>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
2020-03-14 21:47:04 +01:00
|
|
|
/**
|
|
|
|
* Moves a block to a new index
|
|
|
|
* @param {number} toIndex - index where the block is moved to
|
|
|
|
* @param {number} fromIndex - block to move
|
|
|
|
*/
|
|
|
|
move(toIndex: number, fromIndex?: number): void;
|
|
|
|
|
2018-11-23 17:11:50 +01:00
|
|
|
/**
|
2020-10-12 23:03:00 +02:00
|
|
|
* Returns Block holder by Block index
|
2018-11-23 17:11:50 +01:00
|
|
|
* @param {number} index
|
2020-10-12 23:03:00 +02:00
|
|
|
* @returns {HTMLElement}
|
2018-11-23 17:11:50 +01:00
|
|
|
*/
|
2020-10-12 23:03:00 +02:00
|
|
|
getBlockByIndex(index: number): BlockAPI;
|
2018-11-23 17:11:50 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns current Block index
|
|
|
|
* @returns {number}
|
|
|
|
*/
|
|
|
|
getCurrentBlockIndex(): number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mark Block as stretched
|
|
|
|
* @param {number} index - Block to mark
|
|
|
|
* @param {boolean} status - stretch status
|
2020-06-03 10:17:29 +02:00
|
|
|
*
|
|
|
|
* @deprecated Use BlockAPI interface to stretch Blocks
|
2018-11-23 17:11:50 +01:00
|
|
|
*/
|
|
|
|
stretchBlock(index: number, status?: boolean): void;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns Blocks count
|
|
|
|
* @return {number}
|
|
|
|
*/
|
|
|
|
getBlocksCount(): number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Insert new Initial Block after current Block
|
2019-07-01 13:10:30 +02:00
|
|
|
*
|
|
|
|
* @deprecated
|
2018-11-23 17:11:50 +01:00
|
|
|
*/
|
|
|
|
insertNewBlock(): void;
|
2019-07-01 13:10:30 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Insert new Block
|
|
|
|
*
|
|
|
|
* @param {string} type — Tool name
|
|
|
|
* @param {BlockToolData} data — Tool data to insert
|
|
|
|
* @param {ToolConfig} config — Tool config
|
|
|
|
* @param {number?} index — index where to insert new Block
|
|
|
|
* @param {boolean?} needToFocus - flag to focus inserted Block
|
|
|
|
*/
|
|
|
|
insert(
|
|
|
|
type?: string,
|
|
|
|
data?: BlockToolData,
|
|
|
|
config?: ToolConfig,
|
|
|
|
index?: number,
|
|
|
|
needToFocus?: boolean,
|
|
|
|
): void;
|
|
|
|
|
2018-11-23 17:11:50 +01:00
|
|
|
}
|