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

widget options seems broken #81

Open
felixbaral opened this issue Apr 18, 2017 · 1 comment
Open

widget options seems broken #81

felixbaral opened this issue Apr 18, 2017 · 1 comment

Comments

@felixbaral
Copy link
Contributor

Passing parameters to a custom widget doesn't work for me.

I tried the example with tineMCE and created my own widget.

"properties": {
    "pageContent": {
      "type": "string",
      "description": "Page content",
      "widget": {
        "id": "richtext",
        "plugins": "textcolor colorpicker",
        "toolbar": "forecolor backcolor"
      }
    }
  }

I've put a @Input() options : any: in the the Widget's Component. As done by tinyMCE.

Both didn't work. TinyMCE semmes inconfigurable. Could you point out the code where the parameters are assigned? Am I missing something?

@fbessou
Copy link
Collaborator

fbessou commented Apr 18, 2017

Options should be accessible through the schema.widget property of your widget.

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

2 participants