Page 1 of 1

TinyMCE Does Not Show Up in Editor Windows

Posted: Mon Aug 11, 2014 9:25 pm
by KitchM
I am having a problem getting TinyMCE to show up in my Admin panel. It was there at one time; perhap two versions ago. However it is not displaying on any page at all.

I have tried all the tricks that were shown in http://forum.cmsmadesimple.org/viewtopi ... =7&t=70386, except for open basedir which I don't know how to change.

My configuation is:

----------------------------------------------

Cms Version: 1.11.11

Installed Modules:

CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.5
MenuManager: 1.8.6
TinyMCE: 2.9.12
ModuleManager: 1.5.8
News: 2.14.4
Search: 1.7.11
ThemeManager: 1.1.8
Gallery: 2.0.1
CGExtensions: 1.41.2
SiteMapMadeSimple: 1.2.8
Glossary: 1.0
ExtendedTools: 1.3.3
CGCalendar: 1.14.3
FrontEndUsers: 1.24
CustomContent: 1.10
SelfRegistration: 1.8.2
Captcha: 0.4.6
TemplateExternalizer: 2.1.3
UsersGuide: 1.8.1
ListIt2: 1.4.1
ListIt2XDefs: 1.2
ListIt2NEOlist: 1.4.1
AdvancedContent: 0.9.4.3
CGSmartImage: 1.16.2
LinkMgr: 2.0
ListIt2DirectionList: 1.4.1
CGSimpleSmarty: 1.7.4
MicroTiny: 1.2.7
RSSSimplePie: 1.0
ListIt2PoliticalList: 1.4.1
ListIt2EndorsementsList: 1.4.1


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.3
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /home/mydomain/tmp (0750)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: cgi-fcgi
Server Db Type: MySQL (mysql)
Server Db Version: 5.1.73
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found


----------------------------------------------

Please keep in mind that because I find the layout of the Admin panel to be a little confusing, I try every combination of the settings under MyPreferences>MyAccount>UserPreferences>ContentEditorSettings, and SiteAdmin>GlobalSettings>GeneralSettings. I have tried exiting and logging in again, and I have tried flushing the cache in CMSMS. I have tried a windoz platform and flushed the cache in the browser there as well. But nothing seems to help.

Thanks.

Re: TinyMCE Does Not Show Up in Editor Windows

Posted: Tue Aug 12, 2014 6:28 am
by velden
My first step would be looking at the page source to see if the editor is actually in there. Then have a look at possible errors in javascript console.

And of course: test using another browser

Re: TinyMCE Does Not Show Up in Editor Windows

Posted: Tue Aug 12, 2014 2:38 pm
by KitchM
Here's all I could find referencing TinyMCE:

Code: Select all

<__script__ src="http://www.sierraclubswmg.org/modules/TinyMCE/tinymce/jscripts/tiny_mce/tiny_mce.js" type="text/javascript"></__script>

Code: Select all

Reload the page to get source for: http://www.sierraclubswmg.org/modules/TinyMCE/tinymce/jscripts/tiny_mce/tiny_mce.js
</__script>

Code: Select all

<__script__ src="https://www.sierraclubswmg.org/57ap14X102/moduleinterface.php?mact=TinyMCE,fp_,tinyconfig,0&_sx_=77696302a8a413bd&fp_templateid=35&fp_languageid=en&showtemplate=false" type="text/javascript">
tinymce.create('tinymce.plugins.CustomDropDown', {
createControl: function(n, cm) {
switch (n) {
case 'customdropdown': {
var c = cm.createMenuButton('customdropdown', {
title : 'Custom dropdown-menu',
image : 'http://www.sierraclubswmg.org/modules/TinyMCE/images/customdropdown.gif',
icons : false
});
c.onRenderMenu.add(function(c, m) {
m.add({title : 'Insert CMS version info', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '{cms_version} {cms_versionname}');
}});
m.addSeparator();
m.add({title : 'Insert Smarty {literal} around selection', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '{literal}'+sel+'{/literal}');
}});
});
return c;
}
}
return null;
}
});
// Register plugin with a short name
tinymce.PluginManager.add('customdropdown', tinymce.plugins.CustomDropDown);
//Creates a new plugin class and a custom listbox
tinymce.create('tinymce.plugins.CMSLinkerPlugin', {
createControl: function(n, cm) {
switch (n) {
case 'cmslinker':
var c = cm.createMenuButton('cmslinker', {
title : 'Insert link to cmsms-page',
image : 'http://www.sierraclubswmg.org/modules/TinyMCE/images/cmsmslink.gif',
icons : false
});
c.onRenderMenu.add(function(c, m) {
var mm = m.addMenu({title : '1 Home'});
mm.add({title : '1 Home', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='Home';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'Home\' }">'+sel+'</a>');
}});
mm.addSeparator();
var mmm = mm.addMenu({title : '1.1 About SWMG'});
mmm.add({title : '1.1 About SWMG', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='About SWMG';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'About-SWMG\' }">'+sel+'</a>');
}});
mmm.addSeparator();
m.add({title : '2 Calendar', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='Calendar';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'calendar\' }">'+sel+'</a>');
}});
m.add({title : '3 NEO', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='NEO';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'NEO\' }">'+sel+'</a>');
}});
m.add({title : '4 Links', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='Links';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'links\' }">'+sel+'</a>');
}});
m.add({title : '5 News', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='News';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'news\' }">'+sel+'</a>');
}});
var mm = m.addMenu({title : '6 Political'});
mm.add({title : '6 Political', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='Political';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'political\' }">'+sel+'</a>');
}});
mm.addSeparator();
mm.add({title : '6.1 Endorsements', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='Endorsements';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'endorsements\' }">'+sel+'</a>');
}});
m.add({title : '8 Forum', onclick : function() {
var sel=tinyMCE.activeEditor.selection.getContent();
if (sel=='') sel='Forum';
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<a href="{cms_selflink href=\'forum\' }">'+sel+'</a>');
}});
});
// Return the new menu button instance
return c;
}
return null;
}
});
// Register plugin with a short name
tinymce.PluginManager.add('cmslinker', tinymce.plugins.CMSLinkerPlugin);
tinyMCE.init({
mode : "exact",
elements : "content_en",
body_class : "CMSMSBody",
content_css : "http://www.sierraclubswmg.org/modules/TinyMCE/stylesheet.php?templateid=35&mediatype=screen&bogus=1407852109",
entity_encoding : "raw",
button_tile_map : true, //performance update
theme : "advanced",
skin : "default",
skin_variant : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
visual : true,
accessibility_warnings : false,
fix_list_elements : true,
verify_html : true,
verify_css_classes : false,
scheme : "html4",
plugins : "-cmslinker,-customdropdown,paste,advimage,advlink,contextmenu,inlinepopups,spellchecker",
paste_auto_cleanup_on_paste : true,
paste_remove_spans : true,
paste_remove_styles : true,
theme_advanced_buttons1 : "cut,paste,pastetext,pasteword,copy,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "bold,italic,underline,strikethrough,advhr,separator,bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,customdropdown,cmslinker,link,unlink,anchor,image,charmap,cleanup,separator,forecolor,backcolor,separator,code,spellchecker,fullscreen,help",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_blockformats : "h1,h2,h3,h4,h5,h6,blockquote,dt,dd,code,samp",
document_base_url : "http://www.sierraclubswmg.org/",
relative_urls : true,
remove_script_host : true,
language: "en",
dialog_type: "modal",
apply_source_formatting : true,
theme_advanced_statusbar_location : 'bottom',
theme_advanced_path : true,
forced_root_block : false,
force_p_newlines : true,
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S"
,file_browser_callback : 'CMSMSFilePicker'
});
function toggleEditor(id) {
if (!tinyMCE.getInstanceById(id))
tinyMCE.execCommand('mceAddControl', false, id);
else
tinyMCE.execCommand('mceRemoveControl', false, id);
}
function CMSMSFilePicker (field_name, url, type, win) {
var cmsURL = "https://www.sierraclubswmg.org/57ap14X102/moduleinterface.php?mact=TinyMCE,fp_,filepicker,0&_sx_=77696302a8a413bd&type="+type+"&showtemplate=false";
//"http://www.sierraclubswmg.org/modules/TinyMCE/filepicker.php?_sx_=77696302a8a413bd&type="+type;
tinyMCE.activeEditor.windowManager.open({
file : cmsURL,
title : 'CMSMadeSimple File Selection',
width : '700',
height : '500',
resizable : "yes",
scrollbars : "yes",
inline : "yes",
close_previous : "no"
}, {
window : win,
input : field_name
});
return false;
}
</__script>

Code: Select all

</__body>
<div id="ncleangrey-container">
<div id="logocontainer">
<div class="topmenucontainer">
<ul id="nav">
<li>
<li>
<li>
<li>
<li>
<a href="index.php?section=extensions&_sx_=77696302a8a413bd">Extensions</a>
<ul>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<li>
<a class="module" href="moduleinterface.php?_sx_=77696302a8a413bd&module=TinyMCE">TinyMCE WYSIWYG</a>
</li>
</ul>
</li>
<li>
<li>
</ul>
<div class="clearb"></div>
</div>