Page 1 of 2

Can't see TinyMCE

Posted: Sun Jul 22, 2007 2:06 am
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?

Re: Can't see TinyMCE

Posted: Sun Jul 22, 2007 5:53 am
by Dr.CSS
Look in permissions for any missing...

Go to Preferences and set tiny as your editor...

Re: Can't see TinyMCE

Posted: Sun Jul 22, 2007 3:46 pm
by theredspecial
same thing here...
TinyMCE is my default editor, I've got the permissions set right, yet still: no TinyMCE

Re: Can't see TinyMCE

Posted: Sun Jul 22, 2007 10:26 pm
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

Re: Can't see TinyMCE

Posted: Mon Jul 23, 2007 2:00 pm
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.

Re: Can't see TinyMCE

Posted: Tue Jul 24, 2007 1:18 pm
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.

Re: Can't see TinyMCE

Posted: Sun Aug 05, 2007 3:17 pm
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",

Re: Can't see TinyMCE

Posted: Sun Aug 05, 2007 9:30 pm
by Silmarillion
theredspecial:
In which browser? Seems to be some special JavaScript case...

sil.

Re: Can't see TinyMCE

Posted: Mon Aug 06, 2007 1:04 pm
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  >:(

Re: Can't see TinyMCE

Posted: Tue Aug 07, 2007 11:12 pm
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?

Re: Can't see TinyMCE

Posted: Wed Aug 08, 2007 1:27 am
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.

Re: Can't see TinyMCE

Posted: Wed Aug 08, 2007 12:31 pm
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;
}

Re: Can't see TinyMCE

Posted: Wed Aug 08, 2007 1:20 pm
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.

Re: Can't see TinyMCE

Posted: Thu Aug 09, 2007 5:14 pm
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

Re: Can't see TinyMCE

Posted: Thu Aug 09, 2007 6:59 pm
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) {