【问题标题】:TinyMCE mobile setup for iOS app is not working with Self-Hosted适用于 iOS 应用程序的 TinyMCE 移动设置不适用于自托管
【发布时间】:2023-02-22 22:00:37
【问题描述】:

我想为我用 Swift 编写的 iOS 应用程序使用 TinyMCE 富文本编辑器。

我想使用 tinymce.min.js 从 xCode 访问本地自托管。

我根据指南做了所有事情,但是样式和 javascript 不起作用,我只显示一个没有工具栏的文本框。

如果以前安装过它的人可以提供帮助,我将不胜感激。

注意:当我尝试使用 api 密钥时它会起作用。但我想通过 xCode 而不是通过 url 运行它

代码如下:

<!DOCTYPE html>
<html>
<head><!-- Get TinyMCe Cloud -->
<script src="js/tinymce/tinymce.min.js"></script>
<script>
  tinymce.init({
    selector: 'textarea',
    theme: 'silver',
    mobile: {
      theme: 'mobile',
      plugins: 'autosave lists autolink',
      toolbar: 'undo bold italic styleselect'
    }
  });
  </script>

  </head>
  <body>
  <textarea>Now go get a free trial of our Premium Plugins!</textarea>

  </body>
  </html>

【问题讨论】:

    标签: javascript swift tinymce rich-text-editor tinymce-5


    【解决方案1】:

    我运行这个脚本 你可以试试我的变体

    enter link description here

    【讨论】:

      猜你喜欢
      • 2019-11-20
      • 2021-09-19
      • 1970-01-01
      • 1970-01-01
      • 2014-06-29
      • 2023-02-24
      • 2019-12-18
      • 1970-01-01
      • 2021-06-17
      相关资源
      最近更新 更多