Vue HtmlEditor - Tags and Attributes

The HTML Editor supports the following HTML tags and attributes.

HTML Tags

Element Type Supported Tags
Inline Tags <a>, <b>, <br>, <code>, <em>, <i>, <s>, <span>, <strike>, <strong>, <sub>, <sup>, <table>, <tbody>, <u>
Block Tags <h1> – <h6>, <blockquote>, <div>, <ol>, <li>, <ul>, <p>, <pre>, <thead>, <td>, <th>, <tr>
Images <img>
NOTE

When the HTML Editor loads its value, the component merges consecutive inline tags that match and contain identical attributes:

  <!-- from -->
  <a href="/">Hello</a><a href="/">World</a>

  <!-- to -->
  <a href="/">HelloWorld</a>

To avoid this behavior, separate identical inline tags with other tags.

Attributes

  • allowfullscreen
  • alt
  • class
  • data-*
  • frameborder
  • height
  • href
  • rel
  • spellcheck
  • src
  • style
  • target
  • width
NOTE
The mentioned attributes are generated automatically. If you pass custom values such as custom classes, the HTML Editor may not properly process these attributes.