1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-03 03:13:34 +02:00

Removed TinyMce from every page load. e_footer.php introduced and e107::wysiwyg() toggle method.

This commit is contained in:
Cameron
2015-01-29 11:26:56 -08:00
parent 6621247583
commit 86c1bd3353
11 changed files with 89 additions and 221 deletions

View File

@@ -2599,6 +2599,26 @@ class e107
}
/**
* Set or Retrieve WYSIWYG active status. (replaces constant e_WYSIWYG)
*/
public static function wysiwyg($val=null)
{
if (self::getPref('core','wysiwyg',false) != true)
{
return false;
}
if(is_null($val))
{
return self::getRegistry('core/e107/wysiwyg');
}
else
{
return self::setRegistry('core/e107/wysiwyg',$val);
}
}
/**

View File

@@ -1218,6 +1218,9 @@ class e_form
$_SESSION['media_category'] = $mediaCat; // used by TinyMce.
e107::wysiwyg(true); // bbarea loaded, so activate wysiwyg (if enabled in preferences)
return $ret;
// Quick fix - hide TinyMCE links if not installed, dups are handled by JS handler

View File

@@ -36,8 +36,8 @@ class e107plugin
'e_meta',
'e_emailprint',
'e_frontpage',
'e_latest', // @TODO Move inside e_dashboard as latest()
'e_status', // @TODO Move inside e_dashboard as status()
'e_latest', // @Deprecated - see e_dashboard
'e_status', //@Deprecated - see e_dashboard
'e_search',
'e_shortcode',
'e_module',
@@ -46,13 +46,14 @@ class e107plugin
'e_sql',
'e_dashboard', // Admin Front-Page addon.
// 'e_userprofile', @deprecated @see e_user
'e_header',
'e_header', // loaded in header prior to javascript manager.
'e_footer', // Loaded in footer prior to javascript manager.
// 'e_userinfo', @deprecated @see e_user
'e_tagwords',
'e_url', // simple mod-rewrite.
'e_mailout',
'e_sitelink',
'e_sitelink', // sitelinks generator.
'e_tohtml',
'e_featurebox',
'e_related',