Skip to content

Multiple plugins of same type not allowed in template. #118

Open
@WebCoder49

Description

@WebCoder49

When multiple plugins of the same class are added to a template, undesired and undocumented behaviour will often occur occur. This shouldn't occur: plugins of the same class should be self-contained enough to exist alongside each other where it makes sense, or throw an error if there is already a plugin of the same class.

Reasons:

  • (many plugins) both instances use the same data source from pluginData even though their configurations may be different.
  • (SelectTokenCallbacks, probably others) both instances interact with the same HTML elements leading to one overwriting the other.

To fix:

  • Fix existing plugins.
  • Add comments to the test plugin, and more tests for multiple instances of plugins, to ensure this is not rebroken in the future.
  • Delete the remark in the README about this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:existing-pluginA bug/feature for an existing plugin in the plugins folder of code-input.bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions