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

Allow configuration packages to be configured #161

Open
edeustace opened this issue Mar 22, 2018 · 0 comments
Open

Allow configuration packages to be configured #161

edeustace opened this issue Mar 22, 2018 · 0 comments

Comments

@edeustace
Copy link
Contributor

Allow configuration packages to be configured. This would be optional, not every element would need to have it.

An example of this would be in 'multiple-choice', allow the formatting options of the rich text editor to be customised (say only allow bold formatting).

In terms of implementation, this is mostly something that the pie-elements/* would need to add themselves and define their configuration model. For pie we'd most likely add an optional file --configuration-model (might need a rename on this front ie: question-config-file -> question-model etc). This file if present will be used to set configuration on the elements defined within it.

The file itself will look something like (for the example above):

module.exports = [
  {
    element: 'multiple-choice',
    'editable-html' : {
      activePlugins: ['bold']
    } 
  }
]
@edeustace edeustace mentioned this issue Mar 22, 2018
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant