bolt / core

🧿 Bolt 5 core
https://boltcms.io
MIT License
547 stars 158 forks source link

Link target in html field #1690

Closed kutulus closed 4 years ago

kutulus commented 4 years ago

Hi,

The link attribute "target" in an HTML field is currently not rendered.

contenttype.yaml:

...
        teaser:
            type: html
            height: 150px
            localize: true

config.yaml:

htmlcleaner:
    allowed_tags: [ div, span, p, br, hr, s, u, strong, em, i, b, li, ul, ol, mark, blockquote, pre, code, tt, h1, h2, h3, h4, h5, h6, dd, dl, dt, table, tbody, thead, tfoot, th, td, tr, a, img, address, abbr, iframe, caption, sub, super, figure, figcaption ]
    allowed_attributes: [ id, class, style, name, value, href, src, sizes, srcset, alt, title, width, height, frameborder, allowfullscreen, scrolling, target, colspan, rowspan ]

Sourceview of html-Field: <p>Hier ein <a href="http://bla.com" title="Linktitel" target="_blank">Teaseer</a>...<br></p>

Greetings Stefano

I-Valchev commented 4 years ago

@kutulus Hi Stefano,

it looks like it is right there, am I missing something here?

kutulus commented 4 years ago

Sorry, my Text was not clear. This is the content of the html-Field in the Editor

Sourceview of html-Field:
<p>Hier ein <a href="http://bla.com" title="Linktitel" target="_blank">Teaseer</a>...<br></p>

This is what you get in the Browser <p>Hier ein <a href="http://bla.com" title="Linktitel">Teaseer</a>...<br></p>