-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read only mode #1035
Merged
Merged
Read only mode #1035
Changes from 97 commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
e78b22d
init readonly module
hboylan e40c591
expose toggleReadOnly method in public api
hboylan 2a32659
alias readonly api on editor
hboylan b710e5e
include readonly toggle button in dev example
hboylan d259339
unbind ui events in readonly mode
hboylan 0586a81
switch to setReadOnly method in ui and paste modules
hboylan cb2622e
reset paste module in readonly mode
hboylan fac51fd
update internal prepare methods with setReadOnly
hboylan 7b1cffe
destroy mutation observer when read-only enabled
hboylan f2b4018
rename readonly toggle methods
hboylan 1a4fff1
unbind events
khaydarov f5e9a66
[Improvements] ESLint action (#1099)
neSpecc 7c726d4
generate id on event listeners
khaydarov 552d090
Merge remote-tracking branch 'origin/release/2.18' into pr/1035
khaydarov 4c0d806
[Refactor] ESLint fixed (#1100)
gohabereg d42042d
save
khaydarov 1a6f9a1
Merge remote-tracking branch 'origin/release/2.18' into pr/1035
khaydarov ffa78fd
resolve conflicts
khaydarov e671a6e
fix event handlers
khaydarov 0680c4d
add read only flag everywhere
khaydarov 21cac86
[Feature] i18n (#1106)
neSpecc b32b2cb
Merge remote-tracking branch 'origin/release/2.18' into pr/1035
khaydarov 968280a
resolve conflicts
khaydarov 775ccbc
Remove unused submodule
tasuku-s f4c4051
Fixed: icon centering in Firefox
neSpecc 2997ed0
Do not load styles twice (#1112)
gohabereg c66105b
ready for testing
khaydarov 4a81699
Show warning if Block to delete is not found (#1111)
gohabereg 7eb642d
Save Tools' order in the Toolbox (#1113)
gohabereg 72213f2
fix $.isEmpty performance (#1096)
tasuku-s 7f876e8
Add issue templates (#1114)
gohabereg 8456da7
requested changes
khaydarov 66e70fa
Update issue templates (#1121)
neSpecc 5941ef0
ready for testing. hurr-ah
khaydarov 9b92e6c
Merge remote-tracking branch 'origin/release/2.18' into pr/1035
khaydarov 77534fe
update changelog
khaydarov 4f6164c
fix copy and cut
khaydarov 5218a6a
Allowing deleting block by block id (#1108)
athul7744 ae8591c
Allow navigate next from last non-initial block (#1110)
gohabereg c3ba372
update
khaydarov f291aa0
Merge branch 'release/2.18' into pr/1035
khaydarov ec63dcd
update
khaydarov 6edb7bc
fix eslint problems
khaydarov 05766a6
update
khaydarov 65f51c2
fix paste
khaydarov b90b8c5
update
khaydarov 6e79df6
upgrade
khaydarov b90532e
update
khaydarov f6b7b2e
Create CODE_OF_CONDUCT.md (#1171)
talyguryn e3410be
Update dependencies (#1122)
gohabereg b0ddb10
Feature/disable tab event config (#1164)
flaming-cl 1eb6d81
Highlight first block on autofocus (#1127)
gohabereg 5fe8b08
Fix shortcut for external tools (#1141)
sonnn 7c3bf76
Hotfix/issue1133 selection shortcut removed on editor destroy (#1140)
sis-dk ffe5bbc
[Feature] BlockAPI Interface (#1075)
gohabereg ff6bd2d
Fix BlockManager.insert method (#1172)
gohabereg e1500f7
Update tools master branches (#1180)
talyguryn 26b19a3
Fix behaviour of inputs editing in block settings (#1123)
gohabereg 8341c33
Merge branch 'master' into release/2.18
neSpecc 239aaf6
lint code
neSpecc 4cea66f
Update CHANGELOG.md
neSpecc 0e374ab
test commit
khaydarov 7992995
Revert "test commit"
khaydarov cefe8da
Merge branch 'release/2.18' into pr/1035
khaydarov 9bbf37d
last updates
khaydarov 884baf2
comment
khaydarov f983a5a
requested changes
khaydarov d7d8be8
eslint fixes
khaydarov f07886d
last changes
khaydarov c82d359
Merge branch 'next' into pr/1035
khaydarov ea75bf2
small fix
khaydarov 5772c04
fix defect with native selection
khaydarov 96a1780
type magic
khaydarov 22dd508
update
khaydarov a296077
updates
khaydarov 8f74b37
eslint fixes
khaydarov 4aaddfe
Check tools compatibility on read-only toggle
gohabereg 1a61d3f
Merge branch 'next' of github.com:codex-team/editor.js into pr/1035
gohabereg a00090a
Update submodules
gohabereg 99d074a
Use Math.floor instead of ~~
gohabereg 014ea48
Merge branch 'next' into pr/1035
neSpecc f02e49c
upd demo page toggler
neSpecc 93829a0
rm unused styles from example
neSpecc 5921260
add description to generic type
neSpecc 6ec8d06
Saver API: return promise.reject instead of undifined
neSpecc 1af17f0
update
khaydarov e8efd87
update nodes
khaydarov edece25
lint fixes
khaydarov f0b5dc0
save changes
khaydarov 189e7b6
Merge branch 'next' into pr/1035
khaydarov 34a425f
Create editor.js.map
khaydarov 7a3162f
updates
khaydarov 748aa7d
save changes
khaydarov 6977b33
Merge branch 'next' into pr/1035
khaydarov ef17dbf
Update editor.js.map
khaydarov a318dff
update
khaydarov b2865ad
new bundle
khaydarov 15b2794
Update methods call prevention in read-only mode
gohabereg d04f1ae
Remove API restrictions for read only mode
gohabereg 7f1ffcd
Update CBS event handlerr
gohabereg efef57f
Merge branch 'next' of github.com:codex-team/editor.js into pr/1035
gohabereg cd6d263
rm duplicated code
neSpecc 899dd3f
Optimiza isAnyBlockSelected method
gohabereg 59b2688
Update bundle
gohabereg 24ab8f9
Update src/components/modules/blockSelection.ts
neSpecc d671342
Merge branch 'next' into pr/1035
neSpecc 29945ae
pull next
neSpecc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule embed
updated
4 files
+1 −1 | dist/bundle.js | |
+1 −1 | package.json | |
+53 −37 | src/index.js | |
+12 −220 | yarn.lock |
Submodule image
updated
4 files
+2 −2 | dist/bundle.js | |
+1 −1 | package.json | |
+13 −1 | src/index.js | |
+4 −2 | src/ui.js |
Submodule list
updated
from 497c04 to 439e5f
Submodule table
updated
5 files
+1 −1 | dist/bundle.js | |
+1 −1 | package.json | |
+25 −9 | src/plugin.js | |
+27 −35 | src/table.js | |
+8 −3 | src/tableConstructor.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* This type of exception will destroy the Editor! Be careful when using it | ||
*/ | ||
export class CriticalError extends Error { | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without any I got the following