【问题标题】:How to get the count of all existant CKeditor's instances in a webApplication?如何获取 Web 应用程序中所有现有 CKeditor 实例的计数?
【发布时间】:2021-04-24 01:51:12
【问题描述】:

我看到CKeditor 5 的“免费”版本仅限于“5 个活跃用户”:CKeditor pricing plans
有没有办法知道我的所有应用程序中有多少个实例?

【问题讨论】:

    标签: javascript jquery asp.net-mvc-5 ckeditor5


    【解决方案1】:

    你可能会得到这样的计数:

    var instanceCount = 0;
    for(var instances in CKEDITOR.instances){
       instanceCount++;
    }
    

    【讨论】:

    • 我提到了 "CKeditor 5" ,使用你的回答我得到一个错误Uncaught ReferenceError: CKEDITOR is not defined ,我认为你的解决方案只适用于以前版本的 CKeditor,无论如何谢谢你。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-12
    • 2012-07-26
    • 1970-01-01
    • 2023-03-27
    • 1970-01-01
    • 2018-03-30
    相关资源
    最近更新 更多