You are not logged in.
#1 2008-02-08 13:34:48
- fyankai
- Member
- Registered: 2008-02-08
- Posts: 10
TinyMCE doesn't load properly in Safari 3.0
Hi All
Having a bit of a problem with TinyMCE 3.0 and Safari 3.0:
When I go to my editor in Safari, TinyCME doesn't load. If I refresh the page it appears, but it's never there the first time I go to the page. I found this the case too on the "Advanced theme full" example:
http://wiki.moxiecode.com/examples/tiny … ple_02.php
When I visit this page from a link in another page - the drop-down menu, say - I don't see the editor, just the textarea. But then refreshing the page makes it work.
Does this happen on other people's Safaris or is it just me?
Thanks loads for any help
Frank
Offline
#2 2008-02-08 17:02:17
- chapstick
- Member
- Registered: 2008-02-08
- Posts: 4
Re: TinyMCE doesn't load properly in Safari 3.0
I'm running Safari 3.0.4 on Windows XP, and it's working fine for me.
Try clearing your cache? Or perform a complete reload (CTRL + R).
Offline
#3 2008-02-08 17:08:31
- fyankai
- Member
- Registered: 2008-02-08
- Posts: 10
Re: TinyMCE doesn't load properly in Safari 3.0
Oh sorry, should have said: I'm running Safari on OS X. Keep forgetting it's on windows too now!
I've tried deleting cache but that doesn't help. It works when I reload the page but not when I first go there - ie, I'll refresh it, it all looks great, then browse to a different page, go back to it and it's gone (until I refresh again).
If it's just my Mac I'm not so worried, so would be good to know if other people have this problem...
Thanks for checking
Offline
#4 2008-02-15 16:02:21
Re: TinyMCE doesn't load properly in Safari 3.0
I've tracked this problem down now. It's when a plugin is added and isn't available. For example: flash or zoom plugin left behind, if you remove them from the plugins list it will load property.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#5 2008-02-18 10:50:07
- fyankai
- Member
- Registered: 2008-02-08
- Posts: 10
Re: TinyMCE doesn't load properly in Safari 3.0
Great, yep that fixed it!
Thanks loads
Frank
Offline
#6 2008-03-04 14:08:53
- fyankai
- Member
- Registered: 2008-02-08
- Posts: 10
Re: TinyMCE doesn't load properly in Safari 3.0
Hi all
Just found a new problem, could be related:
I'm trying to add a custom listbox, but when I load it in, I get the same problem again with Safari (OS X): you don't see the tinyMCE editor until you refresh the page. Here's how I'm doing it:
I'm creating the listbox in an external JS file (which I link to before initialising tinyMCE):
// Creates a new plugin class and a custom listbox
tinymce.create('tinymce.plugins.mytemplate', {
createControl: function(n, cm) {
switch (n) {
case 'mytemplate':
var mlb = cm.createListBox('mylistbox', {
title : 'Template',
onselect : function(v) {
//add some code here to change stylesheet
}
});
// Add some values to the list box
mlb.add('Default Template', 'default');
mlb.add('Media Template', 'media');
mlb.add('Contact Template', 'contact');
// Return the new listbox instance
return mlb;
}
return null;
}
});
// Register plugin with a short name
tinymce.PluginManager.add('mytemplate', tinymce.plugins.mytemplate);
I'm then adding it as a plugin in the tinyMCE options:
plugins : "mytemplate,style,contextmenu,paste,noneditable,safari",
Is there something I'm missing or is this a bug with Safari?
Thanks loads for any help
Frank
Offline
#7 2008-03-04 14:35:23
Re: TinyMCE doesn't load properly in Safari 3.0
I think this might still be the problem with Safari bugging out if you try to load files that isn't there.
If you use the tiny_mce_src.js you need to call your plugin file editor_plugin_src.js is you use the tiny_mce.js you need to call it editor_plugin.js.
Use Firebug on firefox and check for 404 errors while it loads.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#8 2008-03-05 02:00:51
- fannar
- Member
- Registered: 2008-03-05
- Posts: 1
Re: TinyMCE doesn't load properly in Safari 3.0
Hi.
I'm having this same problem on my production environment. On my MBP using Safari 3 this doesn't happen, but when I load my page from my server this happens and TinyMCE doesn't appear until I reload. The only plugins I'm using are emotions and paste. They are both in the plugins directory and work fine.
Offline
#9 2008-03-05 09:51:45
Re: TinyMCE doesn't load properly in Safari 3.0
Check for other third party scripts since the only way I've been successful in reproducing this problem is if the page got 404 errors due to missing scripts.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#10 2008-03-07 19:58:27
- kurt165749
- Member
- Registered: 2008-03-07
- Posts: 2
Re: TinyMCE doesn't load properly in Safari 3.0
I have this same problem. When I load the page for the first time, it works. Loading it any other time the editor will not work until you manually refresh the page and/or clear the cache. I tried removing all plugins but the problem still exists (I was only using spellcheck). This problem seems to be tied to Safari's cache...
Offline
#11 2008-03-12 23:01:56
- fyankai
- Member
- Registered: 2008-02-08
- Posts: 10
Re: TinyMCE doesn't load properly in Safari 3.0
Ah, I found the problem with my script above: The last line should have read:
// Register plugin with a short name
tinymce.PluginManager.add('-mytemplate', tinymce.plugins.mytemplate);
The "-" before the name of the plugin is important, as it stops tinyMCE trying to find it in the plugins folder
Offline
#12 2008-03-24 15:11:14
- kurt165749
- Member
- Registered: 2008-03-07
- Posts: 2
Re: TinyMCE doesn't load properly in Safari 3.0
fyankai wrote:
Ah, I found the problem with my script above: The last line should have read:
// Register plugin with a short name
tinymce.PluginManager.add('-mytemplate', tinymce.plugins.mytemplate);
The "-" before the name of the plugin is important, as it stops tinyMCE trying to find it in the plugins folder
Has anyone found any other solutions other than this one? Specifically, an explanation of why the editor doesn't load even when there are no plugins. Any insight would be greatly appreciated.
Offline
#13 2008-04-25 17:25:21
- dunnma
- Member
- Registered: 2006-05-05
- Posts: 12
Re: TinyMCE doesn't load properly in Safari 3.0
This is happening on my site as well. I am using the advanced theme and in all browsers the first time the page loads, tinymce doesn't appear. If you refresh the page you are on it loads.
This is an out of the box install (well I add in the compression stuff) but I am not using any plugins. (I commented out the lines for them).
I don't remember this happening on the older versions of TinyMCE. Is this a known bug in the new version?
Thanks!
Offline
#14 2008-04-25 17:52:50
Re: TinyMCE doesn't load properly in Safari 3.0
Works for me in all Safari installations. The only time it doesn't is when files are missing. Use Firebug or HTTP fiddler to check for 404 error messages when you load your page.
Does it work with 3.0.6 is this a 3.0.7 specific problem? We introduced a version suffix in 3.0.7 to each request it will be removed in 3.0.8.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#15 2008-05-06 11:50:55
- hornbill
- Member
- Registered: 2008-05-06
- Posts: 3
Re: TinyMCE doesn't load properly in Safari 3.0
I'm having similar problems with Safari OSX 3.1.1 on the Windows server at my host. My local server running Apache consistently displays TinyMCE fine.
My experience is that TinyMCE initially loads fine. It takes nearly as long to load the second time before the cache kicks in, but is still ok. On the third, fourth or fifth call for the editor some random html or java code will show up on the page and disrupt adjacent links or form elements. It's not always the same code, and sometimes the code does not appear. The TinyMCE editor does display and functions properly, but the page itself is messed-up, and the form may not work. It's not just machines here, as have duplicated the errors on other Macs offsite. Disabling the cache of course solves the problem--but is not a real solution.
Last edited by hornbill (2008-05-06 11:57:35)
Offline
#16 2008-05-06 17:20:07
Re: TinyMCE doesn't load properly in Safari 3.0
Look for 404 using Fiddler or Firebug. The only way I've been able to reproduce it is when files are missing.
Best regards,
Spocke - Main developer of TinyMCE
Offline
#17 2008-05-07 04:57:36
- hornbill
- Member
- Registered: 2008-05-06
- Posts: 3
Re: TinyMCE doesn't load properly in Safari 3.0
Thanks for getting back. No file missing problems.
It appears that the problem is related to Coldfusion server only. I've created some identical html and Coldfusion pages and the html pages repeatedly load fine, the Coldfusion pages eventually have problems. The code is identical, only that that they are in .cfm files and run through the Coldfusion server.
Here are some dummy forms if you want to take a look.
http://67.199.42.251/admin/TinyMCEForm1.html
As I'm using both Thai and English I've also created two version of each form, with a bit of Thai in one and only English in the other. This does not appear to have an impact, as both HTML pages still load fine, but both Coldfusion pages will eventually load improperly unless one does a refresh to reset the cache. Again, this problem does not occur on every subsequent Coldfusion TinyMCE load from the cache, so you may have to hit one of the Coldfusion pages a number of times before the problem surfaces.
Both Coldfusion forms are in UTF-8 as that is what the server is set to--while the HTML have both UTF-8 and ISO-8859-1
Any ideas would be helpful.
Offline
#18 2008-06-05 11:52:37
- weitlan
- Member
- Registered: 2008-06-05
- Posts: 1
Re: TinyMCE doesn't load properly in Safari 3.0
I’m facing a similar problem using Safari 3 on Mac OSX 10.4 but exactly in the opposite way: on first page call tinyMCE loads properly but on any page refresh or return to this page it fails. I even added a random get-variable to exclude caching issues and applied manual cache cleaning etc.
When this error occurs the Safari debugging console shows the following message:
1. TypeError: Value undefined (result of expression document.write) is not object.
http://*/tiny_mce/tiny_mce_src.js (line 4610)
tinyMCE VErsion:
majorVersion : '3',
minorVersion : '0.9',
releaseDate : '2008-06-02',
After fiddling around 2 days with this problem, which appears only with Safari (the same page works fine in FF on Mac and IE/FF on Win XP – there are no Javascript errors at all), I found out that it seems to be an xml-header issue. When I omit the – correct – xml-declaration for a valid xhtml-document, tinyMCE (re)loads correctly in Safari 3, too.
So instead of:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
I put:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
which is technically possible, but a serious problem when you want (or need) to provide valid xhtml-documents using several validation tools.
Offline
#19 2008-10-02 11:44:17
- sites4all
- Member
- Registered: 2008-10-02
- Posts: 5
Re: TinyMCE doesn't load properly in Safari 3.0
It doesn't load at all in Safari 1.3.2 (v312.6) under OSX 10.3.9
I tested it with the Examples page at http://tinymce.moxiecode.com/examples/full.php so it's not my code.
Also it does not work in Mac IE 5.2 (but that's probably to be expected!)
Mac Opera 9.25 seems to work though I haven't fully tested it yet.
Offline
#20 2008-10-20 20:43:34
- prem_ewit
- Member
- Registered: 2008-10-15
- Posts: 6
Re: TinyMCE doesn't load properly in Safari 3.0
tinyMCE layer functionality is not working in Safari3.0 , please verify this in the example on tinymce home page(http://tinymce.moxiecode.com/examples/full.php).
I am not able to drag layer in the editor area. This is working fine in other browser.
Help to fix this problem is really appreciated.
Thanks in advance.
Offline
© 2003-2010