Skip to content

Allow inserting HTML into the editor #2601

Description

@vkbo

The fix for issue #2598 overloads the insert method used by the clipboard paste. This now only handles plain text, but can easily be extended to capture HTML pastes and convert those to novelWriter markup.

A way to solve it could be to populate a temporary document with the pasted text and then iterate over the content and extract the supported formatting. It is probably best to do this with a standalone formatter class under formats.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorComponent: EditorenhancementEnhancement: New feature or improvement

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions