From a2459c2187bc051c18715591119a48ccb0f308e7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 7 Jun 2021 12:49:54 +0300 Subject: move styles to richcontent --- src/components/rich_content/rich_content.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/components/rich_content/rich_content.jsx') diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index a5c010de..7bff23cd 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -19,7 +19,8 @@ export default Vue.component('RichContent', { }, render (h) { const renderImage = (tag) => { - return + const attrs = getAttrs(tag) + return } const structure = convertHtml(this.html) const processItem = (item) => { @@ -30,7 +31,7 @@ export default Vue.component('RichContent', { this.emoji, ({ shortcode, url }) => { return + return { structure.map(processItem) } - + } }) -- cgit v1.2.3-70-g09d2