M
M
Messi2017-09-06 14:13:24
JavaScript
Messi, 2017-09-06 14:13:24

How to add translation for TinyMCE?

In Yii2, the TinyMCE widget is added to the page, and image_upload is also connected.
Translation for buttons in image uploader added when connecting widget:

'init_instance_callback' => new \yii\web\JsExpression("
                    function(editor) {
                        tinymce.i18n.data.uk_UA['Upload'] = 'Завантажити';
                        tinymce.i18n.data.uk_UA['Image'] = 'Зображення';
                        tinymce.i18n.data.uk_UA['Drop an image here'] = 'Свой текст';
                    }
                "),

But the text Drop an image here didn't translate. Why and how to fix it?
910baf65499d464daef9b21033346769.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mykola, 2017-09-08
@iSensetivity

It looks like this text is wired into layout.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question