Skip to content

Insert HTML TagΒ #3313

@covertOta

Description

@covertOta

Thanks for amazing editor!

I tried to customize adjusting font size
But the tag is being rendered as plain text.
Is there any way to insert HTML without it being escaped?

const editor = editorRef.current.getInstance(); const selectedText = editor.getSelectedText(); const wy = editor.getCurrentModeEditor(); const htmlToInsert = ${selectedText}; wy.replaceSelection(htmlToInsert);
This is what i've done.
It is rendered as plain text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions