It seems that there may be an issue with caching pages where some of the functionality of the editor will not work.
This may happen when you change editor files (such as the config?) and then revisit the page.
What I do know is that I have gotten around Firefox not being able to use the arrow keys on my keyboard to move around in the edit box and not being able to paste into the edit box. How I did that was to clear my cache.
Which brings me to the following idea: Can we setup the editor files with a No Cache pragma?
Here is some information about HTTP No Cache header commands from Apple's site for safari developers:
----------------------------------------------------------------
5. How do I prevent my pages (and cookies) from being cached in Safari?
Safari achieves much of its performance through efficient use of content caching. If you have pages you wish to prevent from being cached, including those that write out cookies, be sure to write the following headers when serving your pages:
// PHP example - include at the top of your pages
<? php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
RE: Firefox Pasting and Cache
Some cache control for HTML files:
<META http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT">
<META name="Last-Modified" content="">
<META http-equiv="Cache-Control" content="no-cache">
<META http-equiv="Cache-Control" content="no-store">
<META http-equiv="Cache-Control" content="must-revalidate">
<META http-equiv="Cache-Control" content="max-age=0">
<META http-equiv="Pragma" content="no-cache">
I'm going to add these to my PHP and HTML files to see if this may help out.
RE: Firefox Pasting and Cache
Also, cache REALLY speeds up loading of the editor, which is what you want in most cases.
It seems cache is mostly a problem when developing plug-ins, etc., so if you RELIGIOUSLY clear your cache, and switch between browsers and make new files even, you'll be more sure of what is really happening.
hth!
RE: Firefox Pasting and Cache
* Change the fckconfig.js file (changed fonts) and saved it.
* On reloading the page in Mozilla 1.01 it had the 'broken behavior' - not able to paste, not able to navigate the doc with arrow keys.
* Cleared Mozilla cache and reloaded the editor page
* Worked fine again.
That is WITH my header changes as above, so these cache control headers didn't seem to help this problem.
I'm inclined to agree with Denny, I think this must have something to do with the way that mozilla works with cached Javascript, which does not bode well for changing the editor when it's in production, or is 'live', as you cannot force the users to clear their cache.
Well here's to clearing my cache.
RE: Firefox Pasting and Cache
One way of forcing a reload might be to do something like:
<iframe id="#this.instanceName#___Frame" src="#sURL#&#randrange(1,500)#=#randrange(1,500)#" width="#this.width#" height="#this.height#" frameborder="no" scrolling="no"></iframe>
at line 166 of fckeditor.cfc.
If you are using PHP or ASP you would do the same thing only using PHP or ASP functions. You could even use javascript and append random stuff to the src="" value to ensure reloading every time.
After some testing this seems to work great. Change a value in fckconfig.js and it is reflected on a plain old page refresh, no cache clearing necessary.
Also note that in some browsers holding shift while clicking refresh clears the cache for the current page.
Force be with you,
RE: Firefox Pasting and Cache
I had none of these problems with RC2.
RE: Firefox Pasting and Cache
If you didn't experience any of this with RC2, I'm stunned. Caching has been, hands down, the #1 issue since 2b1.
Remember, every release has the caveat "Not for use in production environment" or whatever. 'Cept for 1.6, of course.
Once again WHAT A GOOD PROJECT! THANKS FREDERICO!
RE: Firefox Pasting and Cache
Odd think is .. it works fine when I run it locally, but as soon as I browse to it on the web server the buttons are disabled in FF. Your online demo works fine too.
I have added both server-side and client-side scripts to [attempt to] disable caching because every now and then.. say 1 in 10 it works fine in both browsers.
RE: Firefox Pasting and Cache
RE: Firefox Pasting and Cache
Out of curiosity, did you try my JS no-cache solution? Or, better yet, did you make super-sure your cache was clear?
*Note that some stuff is disabled unless you have highlighted some text...
RE: Firefox Pasting and Cache
Super-sure? Like. Tools, options, privacy, cache .. click clear... is there another way?
RE: Firefox Pasting and Cache
Roughly two thousand messages back... https://sourceforge.net/forum/message.p ... id=3041217
The idea is the link to the .js is unique 'every' time.
And clear doesn't always mean clear. Try using multiple browsers, renaming the .html page, and restarting the computer even.
Good Luck
RE: Firefox Pasting and Cache
I think I have a solution to the FireFox Copy/Paste problem in FCKeditor rc3. I have disabled the cache in FireFox. ( See http://www.mozilla.org/support/firefox/ ... h_memcache to find out how to do this) and I seem to be able to copy and paste into FCKeditor rc3.
Hope this helps.