-
Notifications
You must be signed in to change notification settings - Fork 93
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
[next] feat(NcRich*): migrate to vue 3 #4842
Conversation
d573d1f
to
c5163fc
Compare
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
c5163fc
to
b0328db
Compare
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.
Managed to make it work somehow. Please, find patch commits here:
next...feat/2154/rich-patches
@@ -146,11 +145,11 @@ export default { | |||
document.body.appendChild(wrapper) | |||
|
|||
// Mount and get raw html | |||
Item.$mount(mount) | |||
Item.mount(mount) | |||
const renderedHtml = wrapper.innerHTML |
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.
const renderedHtml = wrapper.innerHTML | |
const renderedHtml = mount.innerHTML |
Thus, you won't pass an extra div wrapper, and mention-bubbles will be pasted as <span />
with display: inline
Another solution is to remove wrapper
from this function completely
]) | ||
: null, | ||
]) | ||
}, | ||
renderMarkdown(h) { | ||
renderMarkdown() { |
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.
Method should be modified to parse markdown correctly
@@ -66,7 +69,7 @@ describe('richEditor.js', () => { | |||
|
|||
it('keeps mentions with user data', () => { |
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.
Regex is outdated, maybe, because of a11y changes
Superseded by #4976. |
☑️ Resolves
NcRich*
components to vue 3.Todo:
NcRichText
does not work yet and I couldn't figure out why.richEditor
mixin probably needs to be adjusted.I think a bit of help from the
NcRich*
component gurus would be great @juliushaertl @Antreesy