Skip to content

Commit

Permalink
Merge pull request #3932 from nextcloud/fix/noid/ncrichtext-style
Browse files Browse the repository at this point in the history
Fix NcRichText style
  • Loading branch information
nickvergessen authored Mar 28, 2023
2 parents 659b808 + b2d185f commit 9f47785
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/NcRichText/NcRichText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ export default {
}
</script>
<style scoped>
/* stylelint-disable-next-line scss/at-import-partial-extension */
@import './richtext.scss';
a:not(.rich-text--component) {
text-decoration: underline;
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/NcRichText/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ export const prepareTextNode = ({ h, context }, text) => {
return entry
}
const { component, props } = entry
// do not override class of NcLink
const componentClass = component.name === 'NcLink' ? undefined : 'rich-text--component'
return h(component, {
props,
class: 'rich-text--component',
class: componentClass,
})
})
}
Expand Down

0 comments on commit 9f47785

Please sign in to comment.