精华内容
下载资源
问答
  • TinyMCE

    2020-12-26 06:10:13
    <div><p>Problem with TinyMCE. Your access to TinyMCE will expire on 30 November 2020. Please either contact your administrator or upgrade your account using the instructions available at ...
  • Tinymce

    2020-12-26 13:19:28
    <div><p>What version are we using of tinymce. Just so I know I am reading the correct information. <p>Current Tinymce has several issues. Including Link and Image opening the same page menu rather ...
  • tinymce

    2020-12-08 19:21:34
    <div><p>Markdown感觉有点弱,界面跟confluence有点像,但是编辑器实在。...想把 tinymce引入进来,作者指点1下?</p><p>该提问来源于开源项目:xiweicheng/tms</p></div>
  • tinyMCE

    2011-11-28 14:45:00
    TinyMCE是一个轻量级的基于浏览器的所见即所得编辑器,由JavaScript写成。它对IE6+和Firefox1.5+都有着非常良好的支持。 功能方面虽然不能称得上是最强,但绝对能够满足大部分网站的需求,并且功能配置灵活简单。另...

      TinyMCE是一个轻量级的基于浏览器的所见即所得编辑器,由JavaScript写成。它对IE6+和Firefox1.5+都有着非常良好的支持。 功能方面虽然不能称得上是最强,但绝对能够满足大部分网站的需求,并且功能配置灵活简单。另一特点是加载速度非常快,如果你的服务器采用的脚本语言是 PHP,那还可以进一步优化。最重要的是,TinyMCE是一个根据LGPL license发布的自由软件,你可以把它用于商业应用。   

    在线演示地址:http://tinymce.moxiecode.com/examples/full.php

    转载于:https://www.cnblogs.com/icemoon160/archive/2011/11/28/2266185.html

    展开全文
  • TinyMce

    2019-11-14 11:42:20
    https://gitee.com/leif0419/tinymceDemo
    展开全文
  • Vue tinymce富文本编辑器整合

    万次阅读 多人点赞 2018-10-23 17:54:57
    最近再弄一个后台管理系统,挑选了不少的编辑器,最终选择了tinymce,UI精美,功能模块多,可按需加载配置 来一张tinymce官网的完整功能的图(没梯子可能访问速度有点慢…) 下面开始工作: 插件安装 tinymce官方提供...

    由于该编辑器升级到了5.0版本,会导致下文中的某些文件找不到的情况,但是封装思路是相同的,如需继续使用请使用下面的版本再次尝试
    “@tinymce/tinymce-vue”: “^1.1.0”
    “tinymce”: “^4.8.5”

    vue cli 3 + tinymce5.0版本整合参考:点击前往

    最近再弄一个后台管理系统,挑选了不少的编辑器,最终选择了tinymce,UI精美,功能模块多,可按需加载配置
    来一张tinymce官网的完整功能的图(没梯子可能访问速度有点慢…)
    在这里插入图片描述
    下面开始工作:

    插件安装

    tinymce官方提供了一个vue的组件tinymce-vue
    如果有注册或购买过服务的话,直接通过组件配置api-key直接使用,像我这种懒的注册或者购买的直接下载tinymce,自力更生

    安装tinymce-vue

    npm install @tinymce/tinymce-vue -S
    

    下载tinymce

    npm install tinymce -S
    

    下载的时候可以先在static下面建个目录tinymce,下载tinymce完成后在node_modules 中找到 tinymce/skins目录,将其复制到static\tinymce目录下面,
    在这里插入图片描述

    下载中文语言包

    tinymce提供了很多的语言包,这里我们下载中文语言包
    在这里插入图片描述
    下载完成后将其解压到static\tinymce目录下面,最终目录结构形式如下
    在这里插入图片描述

    初始化

    引入基本文件

    import tinymce from 'tinymce/tinymce'
    import Editor from '@tinymce/tinymce-vue'
    import 'tinymce/themes/modern/theme'
    

    components中注册tinymce-vue才能使用

    <editor id="tinymce" v-model="value" :init="init"></editor>
    

    初始化配置项,具体参考官网文档,这里说几个重要的

    init: {
    	language_url: '/static/tinymce/langs/zh_CN.js',//语言包的路径
    	language: 'zh_CN',//语言
    	skin_url: '/static/tinymce/skins/lightgray',//skin路径
    	height: 300,//编辑器高度
    	branding: false,//是否禁用“Powered by TinyMCE”
    	menubar: false,//顶部菜单栏显示
    }
    

    扩展插件

    默认的编辑器只有基本功能,如果还需要上传图片,插入表格之类的功能就需要添加插件
    如添加上传图片和插入表格的插件

    import 'tinymce/plugins/image'
    import 'tinymce/plugins/table'
    

    引入后还需要再toolbar工具栏上添加相应的按钮

    plugins: 'lists image media table textcolor wordcount contextmenu',
    toolbar: 'undo redo |  formatselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | lists image media table | removeformat',
    

    这里我们一般会再次把它进行封装一下,以便其他地方随时可以引用

    完整代码tinymce-editor.vue

    <template>
      <div class="tinymce-editor">
        <editor v-model="myValue"
          :init="init"
          :disabled="disabled"
          @onClick="onClick">
        </editor>
      </div>
    </template>
    
    <script>
    import tinymce from 'tinymce/tinymce'
    import Editor from '@tinymce/tinymce-vue'
    import 'tinymce/themes/modern/theme'
    import 'tinymce/plugins/image'
    import 'tinymce/plugins/media'
    import 'tinymce/plugins/table'
    import 'tinymce/plugins/lists'
    import 'tinymce/plugins/contextmenu'
    import 'tinymce/plugins/wordcount'
    import 'tinymce/plugins/colorpicker'
    import 'tinymce/plugins/textcolor'
    export default {
      components: {
        Editor
      },
      props: {
        //传入一个value,使组件支持v-model绑定
        value: {
          type: String,
          default: ''
        },
        disabled: {
          type: Boolean,
          default: false
        },
        plugins: {
          type: [String, Array],
          default: 'lists image media table textcolor wordcount contextmenu'
        },
        toolbar: {
          type: [String, Array],
          default: 'undo redo |  formatselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | lists image media table | removeformat'
        }
      },
      data() {
        return {
          //初始化配置
          init: {
            language_url: '/static/tinymce/langs/zh_CN.js',
            language: 'zh_CN',
            skin_url: '/static/tinymce/skins/lightgray',
            height: 300,
            plugins: this.plugins,
            toolbar: this.toolbar,
            branding: false,
            menubar: false,
            //此处为图片上传处理函数,这个直接用了base64的图片形式上传图片,
            //如需ajax上传可参考https://www.tiny.cloud/docs/configure/file-image-upload/#images_upload_handler
            images_upload_handler: (blobInfo, success, failure) => {
              const img = 'data:image/jpeg;base64,' + blobInfo.base64()
              success(img)
            }
          },
          myValue: this.value
        }
      },
      mounted() {
        tinymce.init({})
      },
      methods: {
        //添加相关的事件,可用的事件参照文档=> https://github.com/tinymce/tinymce-vue => All available events
        //需要什么事件可以自己增加
        onClick(e) {
          this.$emit('onClick', e, tinymce)
        },
        //可以添加一些自己的自定义事件,如清空内容
        clear() {
          this.myValue = ''
        }
      },
      watch: {
        value(newValue) {
          this.myValue = newValue
        },
        myValue(newValue) {
          this.$emit('input', newValue)
        }
      }
    }
    
    </script>
    <style scoped>
    </style>
    
    

    封装后使用

    <template>
      <div>
        {{ msg }}
        <tinymce-editor v-model="msg"
          :disabled="disabled"
          @onClick="onClick"
          ref="editor"></tinymce-editor>
        <button @click="clear">清空内容</button>
        <button @click="disabled = true">禁用</button>
      </div>
    </template>
    
    <script>
    import TinymceEditor from './tinymce-editor'
    export default {
      components: {
        TinymceEditor
      },
      data() {
        return {
          msg: 'Welcome to Use Tinymce Editor',
          disabled: false
        }
      },
      methods: {
        //鼠标单击的事件
        onClick(e, editor) {
          console.log('Element clicked')
          console.log(e)
          console.log(editor)
        },
        //清空内容
        clear() {
          this.$refs.editor.clear()
        }
      }
    }
    </script>
    
    <style scoped>
    </style>
    

    最后来张动态的效果图
    Vue整合tinymce富文本编辑器

    文章参考:

    https://www.cnblogs.com/wisewrong/p/8985471.html

    展开全文
  • Outsourced TinyMCE

    2020-12-02 09:13:36
    <div><ul><li>Add tinymce/tinymce as requirement to composer.json</li><li>Move TinyMCE languages to own directory</li><li>Update language file handling to check for existing default territory expansion...
  • Tinymce fixes

    2020-12-26 04:46:39
    <div><p>Collection of several small tinymce related fixes: <h3>1.) Remove tinymce editor instances before initializing <p>We have several places where we need to reinit tinymce editor instances. ...
  • TinyMCE update

    2020-12-25 23:07:44
    <div><p>There are compatibility issues with the version of TinyMCE. One of the issues is that the insert link option does not insert a link in Internet Explorer 11. According to the changelog of ...
  • tinymce powerpaste插件,兼容最新的tinymce5.2.0版本。解压后放到plugins目录
  • Translate TinyMCE

    2020-12-26 03:35:00
    s translate TinyMCE... This requires that we have to know the TinyMCE theme in the server side, so we build the TinyMCE options as a PHP array instead of building it as a JavaScript array.</p><p>该...
  • tinyMCE problem

    2020-12-26 03:58:31
    <div><p>Not sure if this is more of a tinyMCE thing or a JShrink thing. When loading up content that loads tinyMCE.init(), a couple requests are made to: <p>www.(baseurl).com//langs/en.js</p> <p>When ...
  • Customizing TinyMCE

    2020-12-26 11:44:29
    <div><h1>Feature Request/help ...I have seen in the tinyMCE webpage that there are some things you can do to modify the tinyMCE scripts to customize it. For example aparently you can add new hotkeys: ...
  • TinyMCE integration

    2021-01-10 05:25:47
    <div><p>I have followed the example for integrating elFinder as the TinyMCE file manager. The elFilemanager launches, etc. However there seems no way to select an image to pass back to TinyMCE. There ...
  • TinyMCE iFrames

    2020-12-01 13:45:28
    m having issues with TinyMCE. I'm using the WYSIWYG module in Drupal 7, and I have multiple TinyMCE instances on a single page. <p>Any of the fields in the form that are radio buttons or non-...
  • Support TinyMCE

    2020-12-28 13:03:47
    right now when placing images into TinyMCE they are included as base64, instead I would like to include them like You plugin is doing. <p>Maybe You already used Your plugin with TinyMCE?</p><p>该提问...
  • Focus tinyMCE

    2020-12-31 10:05:44
    <div><p>I have a textarea (tinyMCE) that i need to focus when it is loaded but i cannot figure out how to do that. am i just missing something?</p><p>该提问来源于开源项目:angular-ui/ui-tinymce...
  • TinyMCE Templates

    2020-11-26 15:05:42
    Shortcodes and Widgets are a nice thing but not very handy regarding a pure customizable css template like the one from tinyMCE <p>regards</p><p>该提问来源于开源项目:owen2345/camaleon-cms</p></...
  • tinymce.rar

    2020-05-24 11:13:16
    tinymce powerpaste插件,兼容最新的tinymce5.2.0版本。解压后放到plugins目录
  • TinyMCE 3.0

    2021-01-09 16:20:05
    <div><p><em>Reported by tinymce on 12 Feb 2008 22:12 UTC as Trac ticket #1484772</em></p> <p>TinyMCE 3.0 final is released. It would be great if we could switch to it. <p><em>Migrated-From: ...
  • upgrade tinymce

    2020-12-09 02:28:32
    <div><p>Hi all, we need to upgrade TinyMCE and it seems like the update to 4.2.5 changes the look and feel a bit for TinyMCE. <p><img alt="screen shot 2015-09-10 at 11 58 29 pm" src=...
  • tinymce 5

    2019-09-04 13:51:37
    在vue项目中使用tinymce编辑器(tinymce-vue) 项目使用vue-cli 3.x版本,tinymce5 1. 安装及引用 注:只安装tinymce-vue不可以,还需安装tinymce,否则会报错 npm install tinymce npm install @tinymce/...

     

    在vue项目中使用tinymce编辑器(tinymce-vue)

    项目使用vue-cli 3.x版本,tinymce5

    1. 安装及引用

    注:只安装tinymce-vue不可以,还需安装tinymce,否则会报错

    npm install tinymce
    npm install @tinymce/tinymce-vue
    
    import tinymce from 'tinymce/tinymce'
    import Editor from '@tinymce/tinymce-vue'

    2. 初始化编辑器(记录出现的问题和解决方案)

    • 按示例初始化发现编辑器不显示,报“theme.js:1 Uncaught SyntaxError: Unexpected token <”这个错,需要手动引入tinymce主题,在init({})方法里加theme: 'silver',没用。

      import 'tinymce/themes/silver/theme'
    • 不报错了但是编辑器还是不显示,继续研究,发现还需要定义“skin_url”,在init({})里加skin: "oxide"没用。先在public目录下新建一个文件夹命名为tinymce,然后在node_modules里找到tinymce的skin包,复制到public/tinymce里,在创建tinymce时的init({})里添加下面这行代码:

      skin_url: '/tinymce/skins/ui/oxide',

    3. 配置

    • 一些常用的配置属性

        browser_spellcheck: true, // 拼写检查
        branding: false, // 去水印
        elementpath: false,  //禁用编辑器底部的状态栏
        statusbar: false, // 隐藏编辑器底部的状态栏
        paste_data_images: true, // 允许粘贴图像
        menubar: false, // 隐藏最上方menu
    • plugins

      使用某个插件需要先引入这个插件,例:

      import 'tinymce/plugins/fullscreen'
      import 'tinymce/plugins/preview'
      
      plugins: 'fullscreen preview'
    • toolbar

      可以使用“|”给工具栏分组,把某一类功能划分成一组,例:

      toolbar: 'bold italic underline | alignleft aligncenter alignright'

    4. 定制

    • 将语言改为中文

      步骤:

      1. 在官网下载语言包https://www.tiny.cloud/get-tiny/language-packages/
      2. 把下载的语言包放到之前新建的tinymce文件夹里
      3. 初始化时添加以下代码
            language_url: `/tinymce/langs/zh_CN.js`,
            language: 'zh_CN',
    • 在tinymce5工具栏添加自定义功能按钮

      this.tinymceInit = {
      ...
      toolbar: 'imageUpload',
        setup: (editor) => {
          editor.ui.registry.addButton('imageUpload', {
            tooltip: '插入图片',
            icon: 'image',
            onAction: () => {
      
            }
          })
        }
      }

    <使用后出现问题>

    1.在ie10不能用.最低ie11

    2,在ie或者edge上工具栏(最上方的插件) 加载很慢,页面需要加载4~7秒之后才能出现.

    这篇主要是记录,有大佬看到这两个问题,麻烦给留个解决方案,不胜感激谢谢

    展开全文

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 5,435
精华内容 2,174
关键字:

tinymce