-
Notifications
You must be signed in to change notification settings - Fork 382
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
RichText view mode trouble #287
Comments
Facing the same issue , any updates to this ? |
@hugoabernier any chance you can take a look at this? |
Here's a quick hack if anyone needs this right now: class SafeRichText extends RichText {
public componentDidMount() {
if (this.props.isEditMode) {
super.componentDidMount();
}
}
} Swap I think the brace at line 140 needs to be moved down to line 149, then the problem should go away :) Joel |
@joeljeffery has fixed this, and the changes are applied in the latest beta version of |
Closing as fixed |
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
version of the library: [1.13.0]
Expected / Desired Behavior / Question
No problem work in view mode
Observed Behavior
If youre try to open page with rich text editor in view mode it will not render complete. Need to click edit page then publish it, and only then it will display correctly.
Steps to Reproduce
1)Build webpart with rich text editor
2) pass dynamic isEditMode to props of Richtext Editor
3) Deploy it on page
2) Open page - there are no text editor. Click edit - it appear. click Publish - all ok. Reload page - here we go again
The text was updated successfully, but these errors were encountered: