📜 ⬆️ ⬇️

TinyMCE in Livestreet 0.4.1 "korzhit" inserted Youtube-code

Faced with this problem today, it is rather opaquely hanging on the surface: from under Firefox and Chrome, inserting video from services like Youtube works fine, and is inserted and displayed, but in IE the inserted video is displayed with a broken link.

The solution turned out to be quite simple (an example is given for the default template new):

In the files:
')
/plugins/page/templates/skin/default/actions/ActionPage/add.tpl
/templates/skin/new/actions/ActionTalk/add.tpl
/templates/skin/new/actions/ActionTopic/add.tpl


We add the media_strict: false parameter to the TinyMCE initialization. After that, the contents of the add.tpl files will look like this:

tinyMCE.init({
...
media_strict : false,
...
});

Source: https://habr.com/ru/post/98153/


All Articles