【问题标题】:Oracle Apex Rich Text Editor - Unable to configure Read Only ModeOracle Apex 富文本编辑器 - 无法配置只读模式
【发布时间】:2023-02-06 08:18:43
【问题描述】:

甲骨文顶点 22.2.1

富文本编辑器

初始化代码

function(options){
    // disable the Autoformat feature
    options.editorOptions.removePlugins.push('Autoformat');
    options.editorOptions.enableReadOnlyMode( 'my-feature-id' ); //Also replaced my_feature_id with true
    // apply a custom toolbar
    options.editorOptions.toolbar = [
        'heading', 'bulletedList', 'numberedList', 'fontSize', 'undo', 'redo'
    ];
    return options;
}

当使用 id 或布尔值 true 运行代码时,出现以下错误:

   TypeError: options.editorOptions.enableReadOnlyMode is not a function

我错过了什么?

谢谢

【问题讨论】:

  • 您是否考虑过使用本机顶点页面项目只读属性?
  • 当我使用只读属性时,它显示原始 html 代码
  • 刚刚又试了一次。不知道为什么,但只读总是工作正常。以前没有。可能还有其他一些我没有追踪到的变化。我会继续测试。谢谢
  • 测试良好我会关闭这个问题

标签: oracle-apex


【解决方案1】:

Koen Lostrie 给了我使用本机顶点页面项目只读属性的正确答案。不要用富文本编辑器的方法设置为只读。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-04-22
    • 2011-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多