Jump to content
Sign in to follow this  
spooks

FCK WYSIWYG HTML editor

Recommended Posts

FIXED IGNORE

 

IMAGES NOT SHOWING RIGHT BECAUSE OF PATH

 

thanks for the contribution...

 

i know php programming, just don't want to hunt down the problem, this is the problem

 

when adding an image it lists the path as /userfiles/images/whateverimage.jpg

therefore it does not register in the editor because the path does not exist

so when i change $Config['UserFilesPath'] in the config.php file to the full path

(like http://mydomain.com/catalog/userfiles/) the image will show in the editor

but when saved it puts /catalog/admin/ on the front so the path now looks like

 

/catalog/admin/\" http://mydomain.com/catalog/userfiles/imag...jpg\"

 

there is a problem with putting the right addition on the front of the /userfiles/

 

i am using FCKeditor_1.2_1

Share this post


Link to post
Share on other sites

Hi Sam,

 

Do you know any reason why FCK Editor alter the image and url path it adds \ to it ie

how can i get fck editor to stop enclosing url of the image in \" ie path should be /userfiles/image/home-wbswd.JPG

but in fck editor i get this after saving \"/userfiles/image/home-wbswd.JPG\" and no image if i remove the \" the image shows

 

ive asked in fck forums but have had no reply so far this does it in v3 and the release before it

 

 

Steve

Share this post


Link to post
Share on other sites
Hi Sam,

 

Do you know any reason why FCK Editor alter the image and url path it adds \ to it ie

how can i get fck editor to stop enclosing url of the image in \" ie path should be /userfiles/image/home-wbswd.JPG

but in fck editor i get this after saving \"/userfiles/image/home-wbswd.JPG\" and no image if i remove the \" the image shows

 

ive asked in fck forums but have had no reply so far this does it in v3 and the release before it

 

 

Steve

Hi Sam,

 

ive just tried CKEditor and it adds "/ to the beginning and the end of any url or img src this must be down to oscommerce either functions/general.php or html_output.php

 

Steve

Share this post


Link to post
Share on other sites

are using the contrib this thread is for? if you have set the configure file correctly as per instructions it will not use userfiles/ folder, just the original osC images.


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
are using the contrib this thread is for? if you have set the configure file correctly as per instructions it will not use userfiles/ folder, just the original osC images.

Hi Sam,

 

its not the path, its that it changes the url heres an example of the link after being saved <img src="/"images/xxxx.gif/"" alt=""//text//">

 

This is weird, CKEditor and FCKEditor both do the same thing

 

was just wondering if you had any idea why it does it, if not no worries,

 

Steve

Share this post


Link to post
Share on other sites
Hi Sam,

 

its not the path, its that it changes the url heres an example of the link after being saved <img src="/"images/xxxx.gif/"" alt=""//text//">

 

This is weird, CKEditor and FCKEditor both do the same thing

 

was just wondering if you had any idea why it does it, if not no worries,

 

Steve

i think i have found why must be down to this

  function tep_output_string($string, $translate = false, $protected = false) {
if ($protected == true) {
  return htmlspecialchars($string);
} else {
  if ($translate == false) {
	return tep_parse_input_field_data($string, array('"' => '"'));
  } else {
	return tep_parse_input_field_data($string, $translate);
  }
}
 }

 

Steve

Share this post


Link to post
Share on other sites

Hello

I've installed the contrib FCKeditor_1.2 all in one. It's works well but if I add an image in the descritpion of a product, it' s not shown (or in the newsletter where I've installed the addons too). The image is well uploaded and I can find it by browsing on the server, but in the preview I've only the "broken image icon" . I've search in this topic but don't seen what can be wrong ?Thanks in advance if you can help me (OS commerce v2.2 RC 2)

France

Edited by France

Share this post


Link to post
Share on other sites
I've installed the contrib FCKeditor_1.2 all in one.

 

 

Thats a different contribution that has its own support thread, but if you download this one and look at the configure settings I think thast should resolve it for you.


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
Thats a different contribution that has its own support thread, but if you download this one and look at the configure settings I think thast should resolve it for you.

Thank you, I'll look in the good support thread.

:blush:

Share this post


Link to post
Share on other sites

Is a special installer needed for the new CKEditor 3.0 that was just released?

 

(I installed the 2.x version just now and it went perfectly -- I was afraid to try the new 3.0 editor, though.)

Share this post


Link to post
Share on other sites

Hello i'm tryng to install the new CKEditor 3.0 in oscommerce 2.2MS2 categories.php and mail.php following this documentation CKEditor documentation

 

In admin/categories.php and admin/mail.php i have added this before the </head> tag

 

<script type="text/javascript" src="ckeditor/ckeditor.js"></script>

 

After that in admin/includes/functions/html_output.php i have modified the tep_draw_textarea_field function to this:

 

// Output a form textarea field

 function tep_draw_textarea_field( $name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true, $id_area="") {
$field = '<textarea name="' . tep_output_string($name) .'" id="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';
if (tep_not_null($class))  $field .= ' ' .  'class="' . tep_output_string($class) . '"';
if (tep_not_null($parameters)) $field .= ' ' . $parameters;
$field .= '>';

if ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {
  if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {
	$field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name]));
  } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {
	$field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name]));
  }
} elseif (tep_not_null($text)) {
  $field .= tep_output_string_protected($text);
}

$field .= '</textarea>
<script ="text/javascript"> 
	//<![CDATA[

				// This call can be placed at any point after the
				// <textarea>, or inside a <head><script> in a
				// window.onload event handler.

				// Replace the <textarea id="editor"> with an CKEditor
				// instance, using default configurations.
CKEDITOR.replace( '. $name .' ); 

//]]>
</script>';
return $field;

 }

 

This code works for now in firefox and chrome but not in intrnet explorer 8 and only mail.php shows the CKEeditor. I have added $id_area in the code to give to the text area a id="". But internet explorer says that CKEDITOR.replace( '. $name .' ); is not defined.

 

Hope this helps to make a new contribution.

Share this post


Link to post
Share on other sites

Hey Spooks,

 

I PM'd you a while back asking if you would be interested in doing a little custom work for a project. Please check your PM's and reply.

 

Best

Share this post


Link to post
Share on other sites

I have tried CKeditor 3.0.1 using above code, it works only for mail.php (Firefox and Chrome only, not IE8), and it does not work for category.php to add new product.

 

Can expert figure out why?

 

Thanks.

Share this post


Link to post
Share on other sites

Hi Spooks. I have a major problem i can't solve on my own.

 

It all works almost perfect.

However, when i make a new product in Admin -> Catalog -> Categories / Products -> "New Product", insert all the information i want, click preview and then insert. The product get published on my catalog, but in some strange way it cant be found in admin. So i cant delete, edit or do anything with my newly created product.

 

I've installed the "All In One FCK Editor WYSIWYG Editor" from http://addons.oscommerce.com/info/5679

I've even tried install the latest version from http://ckeditor.com/

 

Do you have any solution to this? Really need your help.

 

Thank you

Share this post


Link to post
Share on other sites

dbase issue?

 

 

 

Since this makes no changes to the dbase, or the way the data is written, its most likely a co-incidental error.

 

Try a dbase repair in phpmyadmin.


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

Downloaded latest autoinstaller and ftp'd to root - Downloaded fck editor 2.6 and ftp'd to admin - Changed images folder to 777.

 

When I point to the autoinstaller folder, I get a black page. Everything as far as server location, etc appears to be fine, so am thinking it may be tripping up on a server issue.

 

Am running dedicated *nix server with Centos 5, and have upgraded php to 5.2.11.

 

Are there any other php/apache requirements that the autoinstaller and fck editor requires?


My latest osCommerce work in progress

 

no outside links in signatures allowed, see PM

Share this post


Link to post
Share on other sites

Downloaded latest autoinstaller and ftp'd to root - Downloaded fck editor 2.6 and ftp'd to admin - Changed images folder to 777.

 

When I point to the autoinstaller folder, I get a black page. Everything as far as server location, etc appears to be fine, so am thinking it may be tripping up on a server issue.

 

Am running dedicated *nix server with Centos 5, and have upgraded php to 5.2.11.

 

Are there any other php/apache requirements that the autoinstaller and fck editor requires?

 

 

I've not used the autoinstaller so cant say on any issue, I don't know if it has any support thread. Have you considered trying the manual install theres not that much to do.


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

I'm also having the problem on the product edit page where the preview is perfect but loses the modifications once I press the UPDATE button.

 

I've installed it working on a fresh oscommerce installation working fine,

I tried using the fresh's categories file aswell to the same effect.

 

The problem must be in some file other edited? :huh:

Could it be because of my Database's Collation?

 

I've tried all off the FCK as well as the tinymce (I prefer FCK) editors and keep getting the issue. <_<

 

If someone who knows more about this and what could be causing this could point me in the right direction, I'd really appreciat it. :(

 

PS. I also noteced on my backups from a couple of months ago the default textarea does not allow new rows, it makes all the text a long rong and the "enter"-command a space.


"I have no special talent. I am only passionately curious"

- Albert Einstein

Share this post


Link to post
Share on other sites

.

Edited by Stephan (VS)

"I have no special talent. I am only passionately curious"

- Albert Einstein

Share this post


Link to post
Share on other sites

Sorry about the tripple posting. :blush:

Edited by Stephan (VS)

"I have no special talent. I am only passionately curious"

- Albert Einstein

Share this post


Link to post
Share on other sites

 

 

 

What version of osc r u using, if old perhaps u should upgrade?

 

Check your dbase for errors with phpmyadmin

 

This makes no changes to dbase writes, so any problems there r due to other causes.


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

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

hello all i try to install contrib Autoinstaller 2.14 for:

 

FCKeditor for Product Descriptions 2.7 spooks (27 Jun 2008)

but i follow the installing instructions i have a meassage like this You should set 777 permissions for:

 

 

6 files:

httpdocs/admin/categories.php

httpdocs/admin/fckeditor/editor/filemanager/connectors/php/config.php

httpdocs/admin/fckeditor/fckconfig.js

httpdocs/admin/includes/application_top.php

httpdocs/admin/includes/functions/html_output.php

httpdocs/admin/mail.php

 

 

Then refresh the page.

 

NOTE: Don't forget to change the permissions back at the end of the installation. (755 for the directories and 644 for the files)

 

i do all the change in permissions then i refresh the page nothing change except one or two files

 

i don't understand why someone could help me pls

i have 2.2rc2a version with

MySQL - 5.0.22

phpMyAdmin - 2.8.2.4

 

 

prince66

Edited by prince_66

Share this post


Link to post
Share on other sites

Did u check your php version: The Auto Installer script requires PHP 5.2.0

 

 

I've not used the autoinstaller so cant say on any issue, I don't know if it has any support thread. Have you considered trying the manual install theres not that much to do.


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

Hey there,

 

Any tried CKeditor 3.1 implement into osCommerce v3.x ?

 

At least for new product edit for tiny mc replace?

Edited by Goaul

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  

×