Can't see TinyMCE

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Can't see TinyMCE

Post by hexdj »

I just installed 1.1 and everything went great. My problem is the edition of pages, I see everything except for TinyMCE toolbar or something, therefore I can't do any WYSIWYG editing. However, I am able to see its options under Extensions > TinyMCE Basic. I even removed 2.2 and installed 2.2.1 and nothing...

Can someone tell me what am I missing?
Last edited by hexdj on Sun Jul 22, 2007 2:10 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Can't see TinyMCE

Post by Dr.CSS »

Look in permissions for any missing...

Go to Preferences and set tiny as your editor...
theredspecial
Forum Members
Forum Members
Posts: 31
Joined: Tue Jun 05, 2007 5:36 pm

Re: Can't see TinyMCE

Post by theredspecial »

same thing here...
TinyMCE is my default editor, I've got the permissions set right, yet still: no TinyMCE
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Can't see TinyMCE

Post by Elijah Lofgren »

Hi Guys,

I was running into the same problem with TinyMCE not loading.

Silmarilion and I fixed few problems and here is the latest SVN version you can try:

http://www.elijahlofgren.com/uploads/cm ... .2-svn.zip
(if you want XML version)
http://www.elijahlofgren.com/uploads/cm ... vn.xml.zip

Hope this helps,

Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
jce76350
Beta Tester
Beta Tester
Posts: 2095
Joined: Mon May 29, 2006 1:20 pm

Re: Can't see TinyMCE

Post by jce76350 »

Hi,
Silmarilion and I fixed few problems and here is the latest SVN version
.
I can't connect to  http://viewsvn.cmsmadesimple.org/viewsv ... madesimple
I have a message  Not Found The requested URL /viewsvn/ was not found on this server.
Jean-Claude Etiemble MyPageFr
michelG
Forum Members
Forum Members
Posts: 43
Joined: Tue Jul 17, 2007 1:25 pm

Re: Can't see TinyMCE

Post by michelG »

hexdj, theredspecial,

You may experiment the same problem as a posting I made several days ago for which I didn't receive any reply.

http://forum.cmsmadesimple.org/index.ph ... 553.0.html

In my case, the issue seems to be a broken link generated by the tinyconfig.php file:  it cannot find the include.php file where -- if I understand correctly -- the tinyMCE javascript is called.

Your browser may have an option to visualize all javascript and other errors generated. (In Firefox: Tools -> Error Console). If you could isolate the error -- if any -- and post it that would probably help the experts on this forum.

Elijah, thanks for your links. I installed your version, but it didn't fix my broken link error.
theredspecial
Forum Members
Forum Members
Posts: 31
Joined: Tue Jun 05, 2007 5:36 pm

Re: Can't see TinyMCE

Post by theredspecial »

been working on this... found where the error occurs: line 33

Code: Select all

function CMSmsCustomCleanup(type, value) {
  var start, end, previous_end, valuein, s;
	switch (type) {
	case "get_from_editor":
		start = -1;
		end = 0; previous_end = 0;
		valuein = value;
		value = "";
		while( (start = valuein.indexOf( '{', end )) != -1 ) {
			end = valuein.indexOf( '}', start )+1;
			if( end == 0 ) break;
			s = valuein.substring(start,end);
			if( s == '{literal}' ) {
				end = valuein.indexOf( '{/literal}', end )+1;
				if( end == 0 ) break;
				end = end + 9;
				s = valuein.substring(start,end);
			} else {					
				s = s.replace(/'/g, "'");
				s = s.replace(/"/g, '"');
			}
			value = value.concat( valuein.substring( previous_end, start ) );
			value = value.concat( s );
			previous_end = end;
		}
		value = value.concat( valuein.substring( previous_end, valuein.length ) );
  	break;
	}
	return value;
}

//this is where the error occurs
  tinyMCE.init({
		
			mode : "exact",
			elements : "content_en",
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Can't see TinyMCE

Post by Silmarillion »

theredspecial:
In which browser? Seems to be some special JavaScript case...

sil.
theredspecial
Forum Members
Forum Members
Posts: 31
Joined: Tue Jun 05, 2007 5:36 pm

Re: Can't see TinyMCE

Post by theredspecial »

i am using
- FF 2.0.0.6 (with NoScript, but server is set as to allowed), running @ WinXP Pro.
- Same holds for IE7(.0.5730.11. supposedly fully up2date), I'm not sure if the error occurs in the same line, because I cannot fin a error console in IE  >:(
mrbiggs

Re: Can't see TinyMCE

Post by mrbiggs »

I'm having this same problem.  theredspecial may be beyond this already, but for me, both both firefox and opera say tinyconfig.php generated this error:

Code: Select all

<br />
<b>Warning</b>:  main(//include.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/.shorty/username/hostname.com/modules/TinyMCE/tinyconfig.php</b> on line <b>5</b><br />
<br />
<b>Warning</b>:  main(//include.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in <b>/home/.shorty/username/hostname.com/modules/TinyMCE/tinyconfig.php</b> on line <b>5</b><br />
<br />
<b>Fatal error</b>:  main() [<a href='function.require'>function.require</a>]: Failed opening required '//include.php' (include_path='.:/usr/local/lib/php') in <b>/home/.shorty/username/hostname.com/modules/TinyMCE/tinyconfig.php</b> on line <b>5</b><br />
Does anybody have any leads/understading on this? I have no PHP skills, and am not even sure if TinyMCE is at fault. TinyMCE disappeared for me when I changed hosting providers (complete reinstall of CMSMS) so is there some element of Javascript that could be blocked by my webhost?
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Can't see TinyMCE

Post by Silmarillion »

Hmm, this last dump of output actually made sense... think I may have fixed it today, due to some other issues... Feel free to test svn-version, which should be pretty stable, or wait till next release, which will be out quite soon.

sil.
theredspecial
Forum Members
Forum Members
Posts: 31
Joined: Tue Jun 05, 2007 5:36 pm

Re: Can't see TinyMCE

Post by theredspecial »

Haven't tried the SVN. Hope to do so tonight - in the meanwhile:

I managed to get more details on the error:

Error: missing ; before statement
Source file: http://***/cms/modules/TinyMCE/tinyconfig.php
Rule: 2, Column: 9

Source code:
Parse error:  syntax error, unexpected T_ECHO in ***/cms/modules/TinyMCE/tinyconfig.php on line 8

Doesn't seem hard to fix, but I can't find the missing ";"

Code: Select all

<?php             // COMMENT line 1?

header("Content-type:text/javascript; charset=utf-8");
-$path = dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
+$path = dirname(dirname(dirname(__FILE__)));
+// Uncomment the 2 lines below to aid in debugging:
+ print_r($_SERVER);
+ echo $path;
require $path . DIRECTORY_SEPARATOR . 'include.php';
// Adapted from http://www.php.net/manual/en/function.session-id.php#54084
// session_id() returns an empty string if there is no current session, sotest if a session already exists before calling session_start() to prevent error notices:
if(session_id() == "")
{
session_start();
}


$modules =& $gCms->modules;
$tiny=$modules["TinyMCE"]['object'];
$basepath = $gCms->config["root_url"].'/modules/TinyMCE/tinymce/jscripts/tiny_mce/';
?>
function CMSmsCustomCleanup(type, value) {
  var start, end, previous_end, valuein, s;
	switch (type) {
	case "get_from_editor":
		start = -1;
		end = 0; previous_end = 0;
		valuein = value;
		value = "";
		while( (start = valuein.indexOf( '{', end )) != -1 ) {
			end = valuein.indexOf( '}', start )+1;
			if( end == 0 ) break;
			s = valuein.substring(start,end);
			if( s == '{literal}' ) {
				end = valuein.indexOf( '{/literal}', end )+1;
				if( end == 0 ) break;
				end = end + 9;
				s = valuein.substring(start,end);
			} else {					
				s = s.replace(/'/g, "'");
				s = s.replace(/"/g, '"');
			}
			value = value.concat( valuein.substring( previous_end, start ) );
			value = value.concat( s );
			previous_end = end;
		}
		value = value.concat( valuein.substring( previous_end, valuein.length ) );
  	break;
	}
	return value;
}
User avatar
Silmarillion
Dev Team Member
Dev Team Member
Posts: 483
Joined: Sun Jan 02, 2005 9:10 pm

Re: Can't see TinyMCE

Post by Silmarillion »

ok, the version you inserted here is sure not to work... how did you come across that? the +/-'es in the first few lines is not PHP thats svn complaining about differences...
Replace the start of the file with this:

Code: Select all

<?php             // COMMENT line 1?

header("Content-type:text/javascript; charset=utf-8");
$path = dirname(dirname(dirname($_SERVER['SCRIPT_FILENAME'])));
require $path . DIRECTORY_SEPARATOR . 'include.php';
if(session_id() == "") {
session_start();
}
Hope this works...

sil.
theredspecial
Forum Members
Forum Members
Posts: 31
Joined: Tue Jun 05, 2007 5:36 pm

Re: Can't see TinyMCE

Post by theredspecial »

got it here: http://forum.cmsmadesimple.org/index.ph ... 553.0.html
inserted 'your' text instead of mine at the beginning, getting this error message

Fout: tinyMCE is not defined
File: ***/modules/TinyMCE/tinyconfig.php
Line: 33
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Can't see TinyMCE

Post by Dr.CSS »

This is what mine says...

modules;
$tiny=$modules["TinyMCE"]['object'];
$basepath = $gCms->config["root_url"].'/modules/TinyMCE/tinymce/jscripts/tiny_mce/';
?>
function CMSmsCustomCleanup(type, value) {
  var start, end, previous_end, valuein, s;
switch (type) {
Locked

Return to “[locked] Installation, Setup and Upgrade”