Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

As add wysiwyg in Oscommerce 2.3.4


Recommended Posts

  • 2 months later...

Working on setting up Bootstrap with 234 site.  I have added ckeditor to root of the site and under admin/ext.  How do I get red of the double spacing and make it not show <p> </p> and other signs?

Link to comment
Share on other sites

Click the Source icon in the upper left of the CKEditor frame. Are the tags now encoded? CKEditor may have ignored the existing HTML and made the tags safe to display. If so, the only fix that I know is to copy the contents out to a text editor, making sure everything is cleared out, then switch CKEditor to Source mode and paste it back in. If that doesn't work you'll have to enter the contents again and reformat them.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Hi JIm @@kymation

 

Thanks for getting back to me.  I went on a hunt to find a solution to the extra spacing and the <p> signs showing up.

 

Found this to pass along .  Tested and using on CKeditor 4.4.7

 

To remove CKE from showing HTML code, make the following change to the two files, catalog/includes/functions/html_output.php  & catalog/admin/includes/functions/html_output.php

 

Find:

} elseif (tep_not_null($text)) {

$field.=tep_output_string_protected($text);

}

 

Replace with:

} elseif (tep_not_null($text)) {

$field.=$text;

}

 

To remove the large spacing in CKE, open the sites ckeditor/ckeditor.js in Notepad++.  Change both files in catalog/ckeditor and admin/ext/ckeditor

 

Around line 181

Search for forceEnterMode

Change the following:

enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,

 

into:

enterMode:CKEDITOR.ENTER_BR,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_P,

 

I’m not a programmer, and offer this without any warranty.  Hope this will help others.

Link to comment
Share on other sites

  • 1 year later...

I'm getting error following attempt to install ckeditor in 2.3.4. Appears to be something in the template_top file regarding the ability to turn on/off the ability to use the editor. If I comment that out the error goes away but the editor is not available.

 

 

1366 - Incorrect integer value: '' for column 'configuration_id' at row 1

insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) values ('', 'Use CKEditor', 'USE_CKEDITOR_ADMIN_TEXTAREA','true','Use CKEditor for WYSIWYG editing of textarea fields in admin',1,99,now(),'tep_cfg_select_option(array(\'true\', \'false\'),' )

[TEP STOP]

Link to comment
Share on other sites

Try replacing the SQL code with this:

insert into configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) values (NULL, 'Use CKEditor', 'USE_CKEDITOR_ADMIN_TEXTAREA','true','Use CKEditor for WYSIWYG editing of textarea fields in admin',1,99,now(),'tep_cfg_select_option(array(\'true\', \'false\'),' )

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...