v-html doesn't break html to new lines as expected for web mobile resolution



  • Hello Guys and Gals,
    I’m trying to use q-editor to create articles with html attributes, saving it as a string, and afterwards i’m showing it with <div v-html=“myString” />
    When showing string with mustaches, raw, it’s being broken properly in flex:
    1f2ae3e3-985b-4ff1-b1b5-1df6b9801f8c-image.png
    when string in v-html:
    34e90a83-d824-4c2e-8eb5-1320faba58b8-image.png
    html works properly but it won’t start new lines + it offsets whole layout. Though to break it by characters on input, but won’t be that effective. Maybe add to some kind of container, there has to be a way to limit or control lines for v-html directive, it’s not very mobile friendly currently.

    Any idea how to tackle this?


Log in to reply