-
Notifications
You must be signed in to change notification settings - Fork 84
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(Designer): Updated HTML Editor to support newline and carriage return characters (for dynamic content) #5117
Merged
Conversation
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
@Eric-B-Wu can you take a look at this? @spanvalkar as discussed offline, I do want to hold off signing off on this until there are adequate tests added. This has been a painful issue in the past. |
ek68794998
reviewed
Jul 15, 2024
ek68794998
reviewed
Jul 15, 2024
…ar/LogicAppsUX into spanvalkar/V3NewlineBug
…ar/LogicAppsUX into spanvalkar/V3NewlineBug
asking for tests on the changes made here, as well as a test on a previous regression from this PR Parameters wiped after saving an update · Issue #4765 · Azure/LogicAppsUX (github.com) |
…ar/LogicAppsUX into spanvalkar/V3NewlineBug
Eric-B-Wu
approved these changes
Jul 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR fixes a bug with the HTML Editor where the HTML Editor cannot support newline characters.
When a user adds dynamic content to any action with an HTML Editor and adds a newline character (for example, by pressing the 'enter' key) and then closes the action, reopening the action will cause the dynamic content to disappear. The dynamic content should stay in the action's HTML Editor, but it does not stay because the HTML Editor does not support newline characters.
Bug 26654763: Expression gets lost when newline is used
My change enables the HTML Editor to support newline characters. With my change, a user can add newline characters to the HTML Editor for dynamic content and the newline character (and dynamic content) will be preserved. It will not spontaneously disappear (as seen in the bug linked above). This improves the user experience for LA Designer users because it ensures the HTML Editor can support newline characters.
This PR does not break any existing functionality. Rather, it only adds to the functionality of the HTML Editor by supporting newline characters.
Added a newline character after the 'a' in email:
Upon reopening the HTML-to-Text action, the dynamic content with newline character remains. Previously, HTML-to-Text field would appear blank (incorrectly):