Answer the question
In order to leave comments, you need to log in
TinyMCE: editor initialization
Good evening everyone.
There was a problem when launching the TinyMCE editor, namely: during initialization, it complains about the inability to load the language pack. All this happens on the wordpress 3.5.1 engine, it already has a tinyMCE editor, which is used (it's stupid to load it from somewhere else).
How everything happens.
Connecting the editor
wp_enqueue_script('tiny_mce', get_option('siteurl') . '/wp-includes/js/tinymce/tiny_mce.js', false, '3');
tinyMCE.init({
mode : "exact",
elements : editorID, // идентификатор textarea
language: 'wp-langs-en'
});
Answer the question
In order to leave comments, you need to log in
Are you adding in the admin? If there, then it works for me like this:
tinyMCE.init({
theme : "advanced",
mode: "exact",
language: "",
elements : "description"
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question