【问题标题】:Link plugin in tinyMCEtinyMCE 中的链接插件
【发布时间】:2022-01-07 17:10:37
【问题描述】:

我的反应应用程序中有一个文本编辑器,我想启用插入 URL,但是有什么方法可以让我只能在工具栏中使用该选项,而不是在我右键单击时?

当我右键单击时,我不想看到那个框,只想看到常用选项(复制、粘贴、打印、重新加载)

这是我的代码

 <Editor
        initialValue={initialValue1}
        value={value}
        onEditorChange={(newValue, editor) => setValue(newValue)}
        initialValue="<p>Escribe...</p>"
        init={{
          height: 400,
          selector: 'textarea',  // change this value according to your HTML
          plugins: [
            
            'insertdatetime media table paste help wordcount lists image code link',
          ],
          toolbar: 
          '| media image link ' +
          'table tabledelete',
          language:'es'
       }}
   />

【问题讨论】:

    标签: reactjs tinymce text-editor tinymce-4 tinymce-plugins


    【解决方案1】:

    contextmenu: false 添加到您的初始化中

    【讨论】:

      猜你喜欢
      • 2020-02-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-01-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多