panjo
panjo

Reputation: 3515

tinymce selector to div id only

With current setup tinymce selector is set to all textarea fields on my page. How can I change this to only one field using css id property?

This is my current setup

<script>
    tinymce.init({ selector: 'textarea' });
</script>

Upvotes: 4

Views: 20627

Answers (2)

Bala
Bala

Reputation: 3638

You can do something like this

<script>
tinymce.init({ selector: "div#div1" });
</script>

Upvotes: 4

Hugo Tunius
Hugo Tunius

Reputation: 2879

<script>
tinymce.init({ selector: "#myid" });
</script>

Upvotes: 19

Related Questions