Skip to content

sceditor.formats.bbcode.remove() -> Uncaught TypeError: bbcodeHandlers[bbcode] is undefined #938

Open
@MioVisman

Description

Firefox 108
SCEditor 3.2.0 format: bbcode

        sceditor.create(textarea, options);
        instance = sceditor.instance(textarea);

        var forDelete = ['youtube', 'rtl', 'ltr'];

        if (!linkEnabled) {
            forDelete = forDelete.concat('url', 'img', 'email');
        }

        for (var bbcodeForDelete of forDelete) {
            sceditor.command.remove(bbcodeForDelete);
            sceditor.formats.bbcode.remove(bbcodeForDelete);
        }

If there is "rtl" in the list for deletion, then this error occurs anyway.
If there is 'img', then when using emoticons.

The moment the error occurred:

  1. Apparently when sending a message, because the server reports that an empty message has arrived.
  2. And when switching from visual mode to code and back.

i3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions