Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

How can I change the link target to "_blank" in the viewer? #38

@qkrtngus2085

Description

@qkrtngus2085

Version

1.1.1

Test Environment

Chrome, Mac

Current Behavior

The target of "a" tag in the TUI viewer is set to "_self".

<a href="">link</a>

Expected Behavior

I want to change the target of a tag in the viewer to "_blank".
But I could not find a way.

<a href="" target="_blank">link</a>

The code solved the problem.
https://nhn.github.io/tui.editor/api/latest/editor.js.html#line851
nhn/tui.editor#288

options: {
    linkAttribute: {
        target: '_blank',
        contenteditable: 'false',
        rel: 'noopener noreferrer'
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions