Jump to content
Sign in to follow this  
spooks

FCK WYSIWYG HTML editor

Recommended Posts

Hi, I am new to posting in this forum, but over the years, it has been a great source of information on thing what to do and what not to do!

 

so now i have my first question, in regards to FCK WYISYG with mail.php. I have installed fckeditor 2.6.2 in categories.php and newsletter.php and have it working now, however with mail.php it is sending code not html Does some one know what i should check, I am at my wits end. below is the code i have used for the page.

 

<td valign="top" class="main"><?php echo TEXT_MESSAGE; ?></td>

<td><?php echo tep_draw_fckeditor('message','600','400'); ?></td>

 

any help would be much appreciated.

 

Hi Marnslee,

You said that you got fck working on newsletter.php in admin, would it be possible for you to post the code change, i have been trying to do that for newsletter and can't figure it out. Right now when i create newsletter it puts lots of white blank space in between lines and tables, it looks bad.

 

Thank you

Share this post


Link to post
Share on other sites

If you post the code I think that would be more usefull, I`m sure I would see the same as you within admin.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
If you post the code I think that would be more usefull, I`m sure I would see the same as you within admin.

 

here is what i have right now

 

<td class="main"><?php echo tep_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?></td>

 

and i wanted to substitute that with the following for fckeditor

 

<td class="main"><?php echo tep_draw_fckeditor('content[' . $languages[$i]['id'] . ']','800','500',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

 

that didn't work

Share this post


Link to post
Share on other sites
here is what i have right now

 

<td class="main"><?php echo tep_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?></td>

 

and i wanted to substitute that with the following for fckeditor

 

<td class="main"><?php echo tep_draw_fckeditor('content[' . $languages[$i]['id'] . ']','800','500',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

 

that didn't work

 

A direct replacement for:

 

<td class="main"><?php echo tep_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?></td>

 

 

would be:

 

<td class="main"><?php echo tep_draw_fckeditor('content','800','500',(isset($nInfo->content) ? stripslashes($nInfo->content) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

So do you have multi languages or not?

 

Are they allowed for at the dbase write?


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
A direct replacement for:

 

<td class="main"><?php echo tep_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?></td>

 

 

would be:

 

<td class="main"><?php echo tep_draw_fckeditor('content','800','500',(isset($nInfo->content) ? stripslashes($nInfo->content) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

So do you have multi languages or not?

 

Are they allowed for at the dbase write?

 

Thank you, it works good.

The only problem i have now after i create html page in fckeditor and click preview in the admin to view the email, it shows the email with lots of blank spaces in between.

 

No i don't have multilanguage support, and they can't be written to DB, so i guess i don't even need it.

 

Thank you!

Edited by kotaro

Share this post


Link to post
Share on other sites
Hello

 

 

can someone tell me how to change the size of the FCK wyciwyg

 

and where to make the changes

 

 

Thanks

Ben

 

Its detailed in the install package.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
Its detailed in the install package.

 

spooks

 

Frist the install package states this

 

Find:

 

<td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

 

 

Replace With:

 

<td class="main"><?php echo tep_draw_fckeditor('products_description[' . $languages[$i]['id'] . ']','600','300',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>

The '600','300' set the editor size, adjust to suit.

 

ok now here is the problem

 

in the product desceription where the editor is shows the # 600 in the text area

 

if I remove the 600 in the above code it is gone

 

if I put any other number in its place I can't get nothing to work website don't load

and I can't get in to my addmin to add items

 

 

Ben

Share this post


Link to post
Share on other sites
I though I`d start this new topic for this contribution as there does'nt appear to be one.

 

This editor can be used to replace any input box and allows many functions normally only seen on commercial packages.

 

It can be easily configured to take the site css files, plus you can add extra fonts, sizes etc. If you need its possible to change a editor instance background colour/image/styles post load.

 

Contribution is at http://addons.oscommerce.com/info/2900.

Share this post


Link to post
Share on other sites

I have sucessfully installed FCKeditor to edit HTML web pages for newsletters. I have no probelms to edit, save and preview the HTML newsletter under FCKeditor. However, when I tried to send the editted newsletter, it became garble. I gues the probelm is because MIME HTML doesnt have the feature as FCK editor. Can someone help me on this issue?

Share this post


Link to post
Share on other sites

Send Admin HTML e-mails http://addons.oscommerce.com/info/5806 deals with these issues for mail, you should be able to adapt.

 

This has come up before & been fixed, so the answers here somewhere.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

the 600 means 600 wide, if you remove your setting 0 wide!!

 

I believe 300 is minimum, but other page elements can also effect it.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
the 600 means 600 wide, if you remove your setting 0 wide!!

 

I believe 300 is minimum, but other page elements can also effect it.

 

I understand what the 600 stands for but the problem is it show on the editor

and if I remove it then no problem but if I change the size then none of my pages load

 

 

Ben

Share this post


Link to post
Share on other sites

Then you have errors in the install, go over it & check carefully.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
Send Admin HTML e-mails http://addons.oscommerce.com/info/5806 deals with these issues for mail, you should be able to adapt.

 

This has come up before & been fixed, so the answers here somewhere.

 

Hi Spooks,

 

Thanks. I have installed the suggested add-on(5086) and have no probelms to edit and send HTM emails with FCKeditor, but I still have problems with the newletter. I can edit and preview HTML web pages under FCKeditor. When I tried to sent out the edtiied newsletter, it looks awkward and different to what I saw in the FCKeditor. Do you have any codes to fix it? Thanks

Share this post


Link to post
Share on other sites

Just want to say thanks for this. Def a novice on Oscommerce and just spent the best part of 3 hours reading through, backing up, making a 2nd backup just in case and got this nice little addon working. Only need it for my mail and products and after a few little hiccups it seems to be working fine.

 

Appreciate the work put into this and all the posts which seem to answer every error I came across

 

Dave

Share this post


Link to post
Share on other sites

Hello excuse my bad English.

You are specialiste to fckeditor and I allows me to ask you to help me and I thank you.

I have fckeditor and not probleme with it whit your help in forum.

I have header tags and in France we have éèêà and with fckeditor html replace in code with html caracteres.

To modify it I have modify fckeditor - > fckconfig.js FCKConfig.

ProcessHTMLEntities = true;

FCKConfig. IncludeLatinEntities = true;

FCKConfig. IncludeGreekEntities = true;

 

By

FCKConfig. ProcessHTMLEntities = false;

FCKConfig. IncludeLatinEntities = true;

FCKConfig. IncludeGreekEntities = true;

 

And it is now ok, no problem with header tags éèàê are éèàê in source code

is my corection good?

 

But I have in the code source when there is nothing in the description <p>   </p>

how to remove it.

Thank you for your help

 

Francois

Share this post


Link to post
Share on other sites

I have this installed on my site and all appears to work until I press "Save" then everything I added is removed - any suggestions?

 

Thanks

Share this post


Link to post
Share on other sites
I have this installed on my site and all appears to work until I press "Save" then everything I added is removed - any suggestions?

 

Thanks

hello

 

i had the same problem just last week

 

what you have is a error in the install

 

go back over your install with a fine tooth comb

 

and check there is a error in your install

 

Ben

Share this post


Link to post
Share on other sites

I installed FCKeditor and its add-on EmailOrderText_1_4_FCK successfully. However, the email order doesn't show the complete price (see below imagge)

 

The item price and sub-total should be $37.59 but it shows .59

Shipping cost should be $43.70 but it only shows .70

Total should be $81.29 but it show as .29

 

email_order.jpg

 

I tried to amend the table and cell width but it's still the same... please help

 

Thank you~

Share this post


Link to post
Share on other sites

This thread is for the support of the core FCKeditor, there are many add ons, please address any addon queries in the respective threads.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
hello

 

i had the same problem just last week

 

what you have is a error in the install

 

go back over your install with a fine tooth comb

 

and check there is a error in your install

 

Ben

 

Interesting. I'm running into the same problem. As I posted once before, when adding a new product all is OK. if you go select a product to edit the text or add extra images using Lightbox jquery, none of the changes &/or images added actually take affect. They show as being OK in the preview stage but once you click update, "poof" they're gone.

 

Are there perhaps any known issues between FCK & Jquery lightbox?


Ausmaniac (AKA John)

"A man's' ambition must be small, to write his name on a toilet wall"

Share this post


Link to post
Share on other sites

Hi, big brothers. Sorry to bother you all. I am using the latest version of fckeditor. I tried to upload a flash through fckeditor, everything is fine before uploading. But when the uploading finished, it shows "load fail" and the flash cannot show up at all. Anybody can give me some ideas?

 

The file is a swf file and this extension is allowed in config.php, so I have no idea where the problem come from. I am really eager for help.

 

Many thx!! ^______^

Share this post


Link to post
Share on other sites

Hi, I am very new to osCommerce, i installed the latest version of OSC last week.

 

Today i installed the FCKeditor. It was pretty straight forward but it is as if i did nothing?

 

I have no editor. I have been over & over my install but cant find anything?

 

I have one maybe stupid question.

 

/public_html/catalog/admin/fckeditor/editor/filemanager/connectors/php/config.php in this file it asks for an absolute path for this line of code,

 

$Config['UserFilesAbsolutePath'] = '/home/mysite/public_html/catalog/userfiles/' ;

 

Is the "mysite" supposed to be the name of my website or is the term "mysite" used in oscommerce?

 

Can anybody share some clues, i am a complete novice at this & have never used oscommerce before.

 

Many Thanks :)

Share this post


Link to post
Share on other sites

permissions, file size


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×