Skip to content
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

Fix #1837 RichTextEditor Content not re-Rendering #1848

Merged
merged 1 commit into from
Dec 3, 2021
Merged

Fix #1837 RichTextEditor Content not re-Rendering #1848

merged 1 commit into from
Dec 3, 2021

Conversation

leigh-pointer
Copy link
Contributor

Change to the OnAfterRenderAsync method and changed OnInitialized to OnParametersSet

Change to the OnAfterRenderAsync method and changed OnInitialized to OnParametersSet
@sbwalker sbwalker merged commit de798da into oqtane:dev Dec 3, 2021
@leigh-pointer leigh-pointer deleted the RichTextContentRefresh branch December 4, 2021 04:05
@sbwalker
Copy link
Member

@leigh-pointer this fix seems to have broken some scenarios in the RichTextEditor. In 3.0.1 when I attempt to edit the content using the raw HTML tab (not the rich text editor tab) my changes are not recognized and are not saved. Upon further review, the RichTextEditor already has methods for RefreshRichText() and RefreshRawHtml() which were intended for the use cases where a developer needs to change the content programmatically and have it reflected in the editor. Perhaps that approach may be a better than trying to support changes to the Content parameter?

@leigh-pointer
Copy link
Contributor Author

@sbwalker I will look at this now.

@sbwalker
Copy link
Member

@leigh-pointer Steps to reproduce:

  1. default 3.0.1 install - run application - login as host
  2. go into Edit mode, select Edit on the Welcome To Oqtane... module
  3. select the Raw Html Editor tab
  4. enter "test" at the beginning of the textbox
  5. Click Save

Result: the updated content is not reflected in the module

sbwalker added a commit that referenced this pull request Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants