GithubHelp home page GithubHelp logo

Comments (4)

lpreterite avatar lpreterite commented on June 7, 2024

同个页面,如何加载多个tinymce编辑器?

你好,请问是用我这个vue-tinymce插件时遇到的问题吗?为了方便调试问题能提供一下复现问题的例子吗?(比如提供codepen的例子

from vue-tinymce.

samdebug avatar samdebug commented on June 7, 2024

就是我vue项目一个页面里面定义了两个<vue-tinymce ref="tinymce" v-model="greet" :setting="setting" :setup="setup"></vue-tinymce>,但是渲染后我发现只有一个vue-tinymce渲染成功了,请问是什么问题

from vue-tinymce.

lpreterite avatar lpreterite commented on June 7, 2024

就是我vue项目一个页面里面定义了两个<vue-tinymce ref="tinymce" v-model="greet" :setting="setting" :setup="setup"></vue-tinymce>,但是渲染后我发现只有一个vue-tinymce渲染成功了,请问是什么问题

在我上面那个codepen例子中试了一下,发现<vue-tinymce />这种标签写法不能直接用在HTML里,因为不规范导致解析HTML时判别他没有闭合,所以多个<vue-tinymce />是没有效果的。只有经过vue-loader解析的情况下,才可以用<vue-tinymce />这种标签写法。

不知道你是不是这种情况,能提供例子可能会更快地解决问题。

from vue-tinymce.

jamey997 avatar jamey997 commented on June 7, 2024
  <vue-tinymce
      ref="editor"
      class="editor"
      v-model="content"
      :setting="{inline: false}"
      :setup="setup"
      @keyup.native="$emit('editorChange', content)"
    />

在编辑器设置setting中把inline字段设置成false,就可以同在一个页面中加载多个tinymce编辑器

from vue-tinymce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.