Using multiple textareas results in TinyMCE only using the last configuration, rather than applying the correct config to each textarea.
I've tried several answers from Stack Overflow. None of them solved the problem. Many answers are from previous versions of TinyMCE, but do not specify what version the answers are for -- which makes obsolete answers seem relevant when they're not. Most troubling is that the official documentation from TinyMCE 4 is also apparently wrong.
This is the "official" way to specify more than one selector:
tinymce.init({
selector: "#textarea1",
});
tinymce.init({
selector: "#textarea2",
});
The actual outcome is that TinyMCE only uses the last configuration ("#textarea2").
Other solutions that you find on Stack Overflow and elsewhere do not solve the problem (using "exact" mode, specifying "textareas", etc.). The official documentation for tinyMCE v4 also uses the above method, though it is clearly wrong.
You can see this in the docs for yourself at the following link: https://www.tiny.cloud/docs/general-configuration-guide/multiple-editors/
Since using more than one editor on a page is basic functionality, I don't understand how there are so many possible "right" answers to the same question (note: this question is specifically about tinyMCE version 4), and apparently no definitive simple, correct answer. There's no reason for it to be a question to spend hours answering in several different possible ways without a clear solution. We're not exactly sending humans to Mars, here...
Thanks in advance for help on this issue.