Page 3 of 4
Re: FCKeditorX 1.0 RC1
Posted: Wed Feb 01, 2006 4:56 pm
by megabob3
Russ wrote:
Patricia wrote:
Bob, I didn't try but did you set anything to use the config rewrite ? and if yes, any hardcoded shtml (as it was the defautl)?
Russ, I can have a look at that later tonight when I'm at home
Cheers
Thanks Patricia, I'll have a look as well, although I could not see anything obvious this morning. Somewhere however it must be setting a default
I'll post back here if I find anything.
Megabob3, is there anywhere in the code where you set the file extension e.g. to '.shtml' ??
Russ
Me no, but maybe FCKeditor use call other pages with it IFRAMEs.

Re: FCKeditorX 1.0 RC1
Posted: Thu Feb 02, 2006 9:47 pm
by Russ
Patricia did you have any luck? I can confirm that with Mod ReWrite using the .shtml extension it works but with a .html extension set it does not. It will work with other editors with both extensions??
I've had a look through the code, even though I don't understand a lot of it

, but I can't find the solution. Does anyone else have any idea how to fix this? It's getting a bit urgent for me now.
Russ
Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 4:55 am
by iNSiPiD
Russ,
What setting do you have for $config['page_extension'] in your config file?
If it is set to HTML then try setting it to nothing: $config['page_extension'] = '';
This solved my rewrite problems.
If that doesn't work then the problem is likely to be your rewrite rules. Paste them here so I can see what you're doing.
Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 10:33 am
by Russ
Thank you for the advice, I've been ploughing through FCKeditor stuff trying to find the answer for days now.
I tried changing the line in the config.php as you suggested, but now I get pages without extensions that cannot be found. So I guess it does not work yet. You should note that if I have .shtml in the config.php
Code: Select all
$config['page_extension'] = '.shtml';
or
Code: Select all
$config['page_extension'] = '.html';
and in the .htaccess
Code: Select all
RewriteRule ^(.+)\.shtml$ index.php?page=$1 [QSA]
or
Code: Select all
RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA]
everything works as planned **BUT** when I use the '.html' options above I cannot edit pages with FCKEditor, with the '.shtml' option I can edit pages. In both cases the web site works as expected.
My .htaccess files is as follows (for the .hml option):
Code: Select all
#Config for CMS
RewriteEngine On
Options FollowSymLinks
#Rewrites page.shtml as index.php?page
RewriteBase /
RewriteCond % !-f [NC]
RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA]
# Deny Access to .htaccess
<Files .htaccess>
order allow,deny
deny from all
</Files>
I hope it's me because I've wasted way too much time on this. Thanks for your help iNSiPiD
Russ
Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 4:02 pm
by Russ
Thank you very much Patricia
Replacing the line you suggested worked. I now have FCKeditor working with a .html extensions.
http://www.cms.shoesforindustry.net/index.html
Just so everyone is clear, I now have in this site .htaccess file:
Code: Select all
#Config for CMS
RewriteEngine On
Options FollowSymLinks
#Rewrites page.html as index.php?page
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA]
Hope this helps anyone else who gets stuck with the same problem.
Many thanks to Insipid and especially Patricia. It was not the first time Patricia has helped me out of a big hole and I expect it will not be the last, thank you.
Russ
Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 4:22 pm
by Russ
Megabob, you were telling me how to get the styles drop down list box woking in the FCKeditor....
...About styles drop down, you must put styles into TWO zone.
One is STYLES PANEL of FCKeditorX admin section.
And other to CMSMS CSS styles of pages.
I still can't seem to get this to work (browser: Firefox 1.5 latest on Mac OS X). Let me see if I'm getting this right?
1. I have the following in my FCKeditorX Admin settings for Toolbar:
Code: Select all
FCKConfig.ToolbarSets["Default"] = [
['FontFormat'],
['Cut','Copy','Paste','PasteText','PasteWord','-','RemoveFormat','-'],
['Bold','Italic','-'],
['OrderedList','UnorderedList','-'],
['CMSContent','Link','Unlink','-'],
['Image','Rule','SpecialChar'],
['Style','-','Source']
] ;
3. I paste the css in my FCKeditorX Admin settings for Styles.
Code: Select all
funkystyle {
border: 1px solid red;
color: blue;
}
3. I have a stylesheet attached to the template which has:
Code: Select all
funkystyle {
border: 1px solid red;
color: blue;
}
4. I update everthing and clear all caches etc. Close browser - restart it.
5. On editing I see the Styles drop down listbox but it has won't drop down, well it does a little bit so I hope the attached image will show it more clearly.
Any ideas,
Russ
[attachment deleted by admin]
Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 4:27 pm
by megabob3
oooo thx maybe i know the problem
bye the way try to insert this style:
.funkystyle {
border: 1px solid red;
color: blue;
}
Look the POINT before all.
Bye

Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 4:47 pm
by Russ
megabob3 wrote:
...bye the way try to insert this style:
.funkystyle {
border: 1px solid red;
color: blue;
}
I tried changing this but it does not make any difference?
Do you have any other ideas megabob?
Russ
Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 7:49 pm
by megabob3
Russ wrote:
megabob3 wrote:
...bye the way try to insert this style:
.funkystyle {
border: 1px solid red;
color: blue;
}
I tried changing this but it does not make any difference?
Do you have any other ideas megabob?
Russ

no
Nothing to say

Re: FCKeditorX 1.0 RC1
Posted: Mon Feb 06, 2006 11:11 pm
by iNSiPiD
Russ, is your htaccess file in root or elsewhere? That rewrite condition shouldn't have made any difference. I certainly don't use it. Maybe it's cos you wild card everything before the file extension. Oh well, the mysteries of new tech. As long as it works. Patricia, you are a legend as ever.
As for your styles drop-down. Sounds like you're doing the right thing. You absolutely "must" have a period before a class and a # before an ID.
Are you using the CSS manager for your stylesheets or are you using an external file?
Re: FCKeditorX 1.0 RC1
Posted: Tue Feb 07, 2006 7:08 am
by Russ
Thanks for the advice iNSiPiD, I agree it is weird, but then again it works??? So, as you say, Patricia strikes again
As for the styles issue: I don't normally use the internal style sheets, I prefer to use my own and my own style sheets and a simple sheet switcher. However, in this case I've also added a simple style sheet to the template with just this '.funkstyle' CSS in it. But no styles dropdown?
Although I'm on a Mac (OS X) using Firefox, I did try it on my IE6 /IE5.5/ IE5 on my Virtual PC. Same problem so it has to be some central configuration issue and not anything to do with browsers. Does anyone have this working ?
Russ
Re: FCKeditorX 1.0 RC1
Posted: Tue Feb 07, 2006 5:47 pm
by newagekat
Hello:
I wanted to upgrade FCKeditorX to your new version as a Client (using firefox on windows 2000) is unable to see the editor or the content of the page (shows up as a white page). I thought maybe a non-javascript editor might do the trick. I have already downloaded it. Do I simply uploaded the whole folder and replace the old one in the module directory?
if any of you have experienced this, I would appreciate any help you can provide.
Thanks again.
Re: FCKeditorX 1.0 RC1
Posted: Wed Feb 08, 2006 4:04 am
by iNSiPiD
Russ: You've associated the CSS file with the appropriate template, right? And the page you're editing has that template applied? Yes, people have it working. I have it working but don't use the latest release so can't tell if it's just a bug in RC 1.
newagekat: No, sadly it's not that simple. You need to integrate it with CMSMS by converting it into a module. Your best bet is to look at the PHP files for FCK, TinyMCE and others to see how it can be done. This will require 7/10 PHP skillz though.
Just out of curiousity, which WYSIYG did you download? We're always interested in hearing about a non-javascript variety. Perhaps someonw will like it enough to modularise it.
As you can see, the current ones aren't doing us any favours.

Re: FCKeditorX 1.0 RC1
Posted: Wed Feb 08, 2006 4:29 pm
by Russ
iNSiPiD wrote:
Russ: You've associated the CSS file with the appropriate template, right? And the page you're editing has that template applied? Yes, people have it working. I have it working but don't use the latest release so can't tell if it's just a bug.
Thanks for the information iNSiPiD, but the answer is yes. The css is attached to the template and the template is set for all the pages. I even tried unsetting it and re-setting it again but this did not work.
Could it be something to do with permisions? Megabob where do you write the information when you update the Styles in the admin screen? Just an idea...
Russ
Re: FCKeditorX 1.0 RC1
Posted: Wed Feb 08, 2006 10:49 pm
by iNSiPiD
I'll get around to installing RC1 soon enough and then see if I have the same problem. Given that it's pretty much the default WYSIWYG I'm surprised there's not more debate about this.