-
Notifications
You must be signed in to change notification settings - Fork 44
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
#6513 - Update Editor Component UI - Toolbar Text Indenting #6608
Conversation
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 am pretty confused how this supposed to work.
-
new icons have blue border on focus - should not have one, similar to other icons
-
a - I don't think we should insert html into the editor, it does not look good and user can delete it as they might not know why this is for
b -when I don't have text selected and click one of the icon, cursor is at the end, instead in the middle of html tag (but considering previous point, we probably should not have html tags at all in the editor)
Kapture.2024-02-07.at.12.18.19.mp4
@masvelio |
@masvelio |
@Miaplacidus we should NOT support HTML in Markdown, for the time being. Reason is that it poses a major security risk, as it would allow me to inject arbitrary scripts into the page if I set up the correct payload. We may want to support it later once we have validation logic in place, but we thus far have no mandate from product to support any HTML features. |
@jnaviask Wasn't aware of this... in #5940, PR: #6375 The pasting from HackMD issues we're mainly surrounding the tables which are in that html format. This may not be directly related, however; since I completely reconstruct the pasted markdown html in my PR. But would be helpful to get 👀 on that one from you as well. |
@jnaviask |
@Miaplacidus we should raise the Q with product to get a clear answer. |
@lzach83 I don't think your PR involves inserting HTML directly into the editor -- it's fine for some markdown patterns to generate HTML on our side, but what we don't want is user-submitted HTML. |
This can be closed, per Product, but please do see Zak's caveat on nekudatayim handling. |
This PR adds buttons to the editor toolbar that allow the user to input left-aligned, center-aligned, right-aligned, and justified text.
Link to Issue
Closes: #6513
Description of Changes
Test Plan
div
div
will appear in the editor.