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

Cannot pass in config options as an object #51

Open
MostafaNabi opened this issue Feb 23, 2023 · 2 comments
Open

Cannot pass in config options as an object #51

MostafaNabi opened this issue Feb 23, 2023 · 2 comments
Labels

Comments

@MostafaNabi
Copy link

MostafaNabi commented Feb 23, 2023

Hey everyone,
Im trying to pass in config options as an object like below

defaultConfig: RichTextConfigOptions = {
    removed_menuitems: 'undo redo',
    menu: {
      file: { title: 'File', items: 'newdocument restoredraft | preview | export print | deleteallconversations' },
    }
  }

  render() {
    return (
      <div id="rich-text-editor-wrapper">
        <script src='./tinymce.min.js' />
        <tinymce-editor
          menubar="false"
          config={this.defaultConfig}
        ></tinymce-editor>
      </div>
    );
  }

But it does not seem to register the attribute. The only reference on how to do this in the docs is this: https://www.tiny.cloud/docs/tinymce/6/webcomponent-ref/#setting-additional-configuration-options
which involves passing in a string matching an object in the global config, which isn't a very realistic scenario. Any help would be greatly appreciated

@exalate-issue-sync
Copy link

Ref: INT-3154

@tvquizphd
Copy link

+1, but I'm grateful for the current global variable solution

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

No branches or pull requests

2 participants