【问题标题】:Tinymce editor type in Typescript (Unexpected any)在 Typescript 中输入 Tinymce 编辑器(任何意外)
【发布时间】:2021-10-23 08:16:25
【问题描述】:

Eslint 给了我错误 Unexpected any. Specify a different type.

我应该在 tinymce 编辑器中输入什么类型?我在任何地方都找不到答案。

window.tinymce.init({
    setup(editor: any) {
        ...
    },

【问题讨论】:

    标签: tinymce


    【解决方案1】:

    尝试editor: Editor,根据此处发布的 Typescript 类型:https://github.com/tinymce/tinymce-dist/blob/5.8.2/tinymce.d.ts#L1320

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-04-29
      • 2018-04-08
      • 2012-08-19
      • 2016-06-22
      • 1970-01-01
      • 1970-01-01
      • 2014-03-08
      相关资源
      最近更新 更多