1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 14:44:29 +02:00

Library path fix for tinymce4.

This commit is contained in:
lonalore
2017-01-30 14:06:04 +01:00
parent a5087b9bdc
commit 7f9a3dce0c
2 changed files with 12 additions and 4 deletions

View File

@@ -734,12 +734,18 @@ class wysiwyg
e_PLUGIN_ABS.'tinymce4/editor.css',
);
*/
$pathBS = e107::getLibrary()->getProperty('bootstrap', 'library_path');
$pathBS .= '/';
$pathBS .= e107::getLibrary()->getProperty('bootstrap', 'path'); // sub-folder
$pathFA = e107::getLibrary()->getProperty('fontawesome', 'library_path');
$pathFA .= '/';
$pathFA .= e107::getLibrary()->getProperty('fontawesome', 'path'); // sub-folder
$editorCSS = array(
0 => e107::getLibrary()->getProperty('bootstrap','library_path').'dist/css/bootstrap.min.css',
1 => e107::getLibrary()->getProperty('fontawesome','library_path').'css/font-awesome.min.css',
2 => e_PLUGIN_ABS.'tinymce4/editor.css'
0 => $pathBS . '/dist/css/bootstrap.min.css',
1 => $pathFA . '/css/font-awesome.min.css',
2 => e_PLUGIN_ABS . 'tinymce4/editor.css',
);
$editorCSS = $tp->replaceConstants($editorCSS, 'abs');