Skip to content

Commit

Permalink
refs #1742 : modified - confliction between modern and tinyMCE editor.
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Jan 12, 2015
1 parent 32c2278 commit ca80aeb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/FM_Modern/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ function FM_Modern_editorinit($editor) {

function FM_Modern_adminheader($target, $mother) {
global $suri, $pluginURL;

if ($suri['directive'] == '/owner/entry/post' || $suri['directive'] == '/owner/entry/edit') {
$target .= "\t<link rel=\"stylesheet\" media=\"screen\" type=\"text/css\" href=\"$pluginURL/editor.css\" />\n";
$target .= "\t<script type=\"text/javascript\" src=\"$pluginURL/editor.js\"></script>\n";
$context = Model_Context::getInstance();
if ($context->getProperty('editor.key') == 'modern') {
if ($suri['directive'] == '/owner/entry/post' || $suri['directive'] == '/owner/entry/edit') {
$target .= "\t<link rel=\"stylesheet\" media=\"screen\" type=\"text/css\" href=\"$pluginURL/editor.css\" />\n";
$target .= "\t<script type=\"text/javascript\" src=\"$pluginURL/editor.js\"></script>\n";
}
}
return $target;
}
Expand Down

0 comments on commit ca80aeb

Please # to comment.