shit renders yo
This commit is contained in:
parent
e51144809f
commit
8311d4deba
@ -1,4 +1,4 @@
|
||||
import Vue from 'vue'
|
||||
import { h } from 'vue'
|
||||
import { unescape, flattenDeep } from 'lodash'
|
||||
import { getTagName, processTextForEmoji, getAttrs } from 'src/services/html_converter/utility.service.js'
|
||||
import { convertHtmlToTree } from 'src/services/html_converter/html_tree_converter.service.js'
|
||||
@ -27,7 +27,7 @@ import './rich_content.scss'
|
||||
*
|
||||
* Apart from that one small hiccup with emit in render this _should_ be vue3-ready
|
||||
*/
|
||||
export default Vue.component('RichContent', {
|
||||
export default {
|
||||
name: 'RichContent',
|
||||
props: {
|
||||
// Original html content
|
||||
@ -58,7 +58,7 @@ export default Vue.component('RichContent', {
|
||||
}
|
||||
},
|
||||
// NEVER EVER TOUCH DATA INSIDE RENDER
|
||||
render (h) {
|
||||
render () {
|
||||
// Pre-process HTML
|
||||
const { newHtml: html } = preProcessPerLine(this.html, this.greentext)
|
||||
let currentMentions = null // Current chain of mentions, we group all mentions together
|
||||
@ -266,7 +266,7 @@ export default Vue.component('RichContent', {
|
||||
|
||||
return result
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const getLinkData = (attrs, children, index) => {
|
||||
const stripTags = (item) => {
|
||||
|
Loading…
Reference in New Issue
Block a user