Skip to content

Make the button toggle the tags rather than only adding them #1

@mschon

Description

@mschon

User Story

As an Anki user,
when I edit a note
in the WYSIWYG view
and have selected some text,
I want the codeButton to toggle whether the selected text appears in fixed-width type or not.

Scenario 1

If a user highlights some text that appears in the default typeface for the note and clicks the codeButton, the selected text should become fixed width (e.g. wrapped in <code></code> tags)

Scenario 2

If a user highlights some text that appears in fixed-width type and clicks the codeButton, the selected text should revert to the default typeface for the note.

Additional information

The behavior of the codeButton should be identical to that of the bold button, with the exception that the HTML tag used would be code instead of strong or b.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions