Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limitations of multiple instances for the PrintTextInput plugin in pluginsConfig #10728

Open
6 tasks
dsuren1 opened this issue Dec 17, 2024 · 0 comments
Open
6 tasks

Comments

@dsuren1
Copy link
Contributor

dsuren1 commented Dec 17, 2024

Description

The PrintTextInput plugin allows configuring print fields (e.g., author, copyright) easily via localConfig. It works well when multiple instances are used to define different fields via localConfig.

However, the Context Creator limits the ability to include multiple instances of the same plugin.
As a result:

  • Only the first instance of the plugin (defined in pluginsConfig) is displayed.
  • This limitation also applies when the plugin is configured as a child of a parent plugin.

Possible Approaches:

  1. Refactor the Print plugin: Introduce direct configurability for text fields within the Print plugin itself, eliminating the need for an additional injection plugin like PrintTextInput
  2. Enhance Context Creator: Modify the Context Creator to support multiple instances of the same plugin, both as a root plugin and as child plugins

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Other useful information

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

No branches or pull requests

2 participants