【问题标题】:CKEDITOR Error code: cloudservices-no-token-url Angular 2CKEDITOR 错误代码:cloudservices-no-token-url Angular 2
【发布时间】:2018-03-24 06:22:10
【问题描述】:

我在我的Angular 5 项目中使用ng2-ckeditor。我下载了离线包并添加了它。一切正常,但它显示错误我控制台[CKEDITOR] Error code: cloudservices-no-token-url. 我试图通过将它添加到config 文件中作为额外插件来解决它。 build-config也有这个问题,但还是无法解决。
有什么建议吗?

【问题讨论】:

标签: angular ckeditor


【解决方案1】:

您应该删除插件。

CKEDITOR.editorConfig = function( config ) {
:
:
:
   config.removePlugins = 'easyimage, cloudservices';

};

【讨论】:

    【解决方案2】:

    CloudServices 需要在 ckeditor 配置文件或您的 javascript 中指定上传 url 和令牌 url 以删除此错误消息。

    CKEDITOR.replace( 'editor', {
        extraPlugins: 'easyimage',
        cloudServices_tokenUrl: 'https://example.com/cs-token-endpoint',
        cloudServices_uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/'
        } );
    

    【讨论】:

      【解决方案3】:

      您可以检查:

      CKEDITOR.replace( 'editor', {
          extraPlugins: 'easyimage',
          cloudServices_tokenUrl: 'https://example.com/cs-token-endpoint',
          cloudServices_uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/'
      } );
      

      默认为''

      https://docs.ckeditor.com/ckeditor4/latest/api/CKEDITOR_config.html#cfg-cloudServices_tokenUrl

      【讨论】:

        猜你喜欢
        • 2021-09-19
        • 2016-07-22
        • 2018-12-22
        • 2016-10-01
        • 1970-01-01
        • 1970-01-01
        • 2020-06-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多