多个tinymce textareas不包括第一个 [英] multiple tinymce textareas excluding first

查看:33
本文介绍了多个tinymce textareas不包括第一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在多次使用的类中使用tinymce,除了第一次?

我正在查看多个tinymce textareas,但无法完全找到我想要的内容.

我多次使用 .wp-editor-area,但不希望第一次使用 mce.

我用过:

解决方案

实际上,您不能跳过"任何与选择器值匹配的元素 - 没有配置可以做到这一点.

您可以添加第二个类吗?有问题的文本区域是否也有 id?如果您不想让这些 textareas 中的一个与选择器匹配,您将需要找到一个与第一个 textarea 不匹配的选择器.

How do we use tinymce in a class used multiple times, except the first time ?

I was looking at multiple tinymce textareas but could not find fully as what I wanted.

I have .wp-editor-area used multiple times, but do not want the mce in the first instance.

I had used :

<script>
  tinymce.init({
    selector: ".wp-editor-area"
  })
</script>

解决方案

Effectively you cannot "skip" any elements that match the selector's value - there is no configuration to do that.

Can you add a second class? Do the textareas in question also have an id? If you don't want to have one of these textareas match the selector you will need to find a selector that does not match that first textarea.

这篇关于多个tinymce textareas不包括第一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆