-
Notifications
You must be signed in to change notification settings - Fork 844
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
[EuiMarkdownEditor] Add readOnly
prop
#5627
Merged
elizabetdev
merged 22 commits into
elastic:main
from
elizabetdev:markdown-editor-disabled-state
Feb 23, 2022
Merged
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bf09b65
Added `isDisabled` prop to `EuiMarkdownEditor`
elizabetdev 7c14d7c
Merge remote-tracking branch 'upstream/main' into markdown-editor-dis…
elizabetdev 6b623c0
Adding in CL correct PR number
elizabetdev 1982f97
Make markdown checkboxes respect isDisabled state
chandlerprall 68f589b
Merge remote-tracking branch 'upstream/main' into markdown-editor-dis…
elizabetdev e1c1bca
Adding all plugins into the base editor example.
elizabetdev 1a2bead
Removing pointer events none
elizabetdev 7dbe54d
Preventing components like the tooltip to work in disabled state
elizabetdev 23d70ed
Merge remote-tracking branch 'upstream/main' into markdown-editor-dis…
elizabetdev 2b4b314
Adding `readOnly` state
elizabetdev 9cf3408
prevent markdown changes in readonly mode
chandlerprall 5bf9372
Checkboxes `-isReadOnly` styles
elizabetdev 4025a6d
Merge remote-tracking branch 'upstream/main' into markdown-editor-dis…
elizabetdev 53478ee
Reverting euiFormControlReadOnlyStyle mixin
elizabetdev 1cd7fde
Merge remote-tracking branch 'upstream/main' into markdown-editor-dis…
elizabetdev 0bc46e6
Update src/components/markdown_editor/markdown_editor_toolbar.tsx
elizabetdev d0b553b
Addressing PR review
elizabetdev 5b2d50a
Merge remote-tracking branch 'upstream/main' into markdown-editor-dis…
elizabetdev cd2e9c6
Removing unnecessary type
elizabetdev f9312e0
Text
elizabetdev b73a006
Update src-docs/src/views/markdown_editor/mardown_editor_example.js
elizabetdev 575a6fa
Making `prettier`!
elizabetdev 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
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
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.
I highly suggest adding a sentence about the use of this prop to the text of this example. Maybe explaining, that if the consumer needs to disallow editing while submission is happening, then they should manually update this prop.
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.
What do you think of this text?
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.
I like it! I just have a quick suggestion to tighten up the language.