diff --git a/e107_plugins/gallery/e_header.php b/e107_plugins/gallery/e_header.php index ead9303d7..018c74821 100644 --- a/e107_plugins/gallery/e_header.php +++ b/e107_plugins/gallery/e_header.php @@ -11,6 +11,11 @@ if (!defined('e107_INIT')) { exit; } //e107::css('gallery', 'jslib/lightbox/css/lightbox.css','jquery'); // See: http://www.no-margin-for-errors.com/projects/prettyPhoto-jquery-lightbox-clone + + +if(USER_AREA) +{ + e107::js('gallery', 'jslib/prettyPhoto/js/jquery.prettyPhoto.js','jquery'); e107::css('gallery', 'jslib/prettyPhoto/css/prettyPhoto.css','jquery'); @@ -91,6 +96,6 @@ $(document).ready(function() unset($gp); - +} ?> \ No newline at end of file diff --git a/e107_plugins/tinymce4/wysiwyg.php b/e107_plugins/tinymce4/wysiwyg.php index bab743ff7..aa8a575e6 100644 --- a/e107_plugins/tinymce4/wysiwyg.php +++ b/e107_plugins/tinymce4/wysiwyg.php @@ -240,7 +240,14 @@ class wysiwyg $this->config['convert_fonts_to_spans'] = false; $this->config['content_css'] = 'http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css'; - + + $this->config['relative_urls'] = false; //Media Manager prefers it like this. + $this->config['preformatted'] = true; + $this->config['document_base_url'] = SITEURL; + + // $this->config['verify_css_classes'] = 'false'; + + return; // -------------------------------------------------------------------------------------