Post by JNeuhoff » Wed Nov 26, 2008 6:03 pm

Both fido-x's and hm2k's solutions work for me on IE7, FF3 and Opera9.62

May I also suggest that, if Bruce & Juergen Category Descriptions and fido's home page contributions go into 0.8, could they be skinned to silver to make then look the same as standard Open Cart
I am planning to update the Category Descriptions with the following changes in file category.tpl:

Code: Select all

  ....
  <script type="text/javascript"><!--
  var sBasePath           = document.location.href.replace(/index\.php.*/, 'javascript/fckeditor/');
  <?php foreach ($categories as $category) { ?>
  var oFCKeditor<?php echo $category['language_id']; ?>          = new FCKeditor('description<?php echo $category['language_id']; ?>');
      oFCKeditor<?php echo $category['language_id']; ?>.BasePath = sBasePath;
      oFCKeditor<?php echo $category['language_id']; ?>.Value    = document.getElementById('description<?php echo $category['language_id']; ?>').value;
      oFCKeditor<?php echo $category['language_id']; ?>.Width    = '600';
      oFCKeditor<?php echo $category['language_id']; ?>.Height   = '300';
      oFCKeditor<?php echo $category['language_id']; ?>.Config['DocType'] = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">';
      oFCKeditor<?php echo $category['language_id']; ?>.Config['SkinPath'] = oFCKeditor<?php echo $category['language_id']; ?>.BasePath + 'editor/skins/silver/' ;
      oFCKeditor<?php echo $category['language_id']; ?>.ToolbarSet = 'Custom' ;
      oFCKeditor<?php echo $category['language_id']; ?>.ReplaceTextarea();
  <?php } ?>      
  //--></script>
  .....
To hm2k: You said in another forum thread that you plan to simplify the integration and configuration of the FCKEditor for the product.tpl, information.tpl, product.tpl and newsletter.tpl using e.g. a common configuration file. Can you tell me how you did it so that the category.tpl could use a similar way of integrating the FCKEditor? Also, it seems multiple languages are supported for the category descriptions, maybe something similar can be done for the other TPL files using the FCKEditor?
Last edited by JNeuhoff on Wed Nov 26, 2008 6:08 pm, edited 1 time in total.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by jty » Wed Nov 26, 2008 7:09 pm

Do you also have to include this

Code: Select all

oFCKeditor.Config['CustomConfigurationsPath'] = oFCKeditor.BasePath + 'myconfig.js';
I have no idea what it means but I found it in the latest SVN version of mail.tpl

Also, don't tell anyone I said this but I am having a question mark annoyance since the changes
In product.tpl and home.tpl (for homepage mod), I keep getting ? when I press an enter at the end of a description
The enter key at the end of a description causes a   which turns into ? after saving.

Strange thing is that it doesn't happen in information.tpl and category.tpl (with the fckedtiro upgrade and change)
Anyway, I shouldn't have a   at the end of a description so no problem. We'll just keep it a secret and hope no one presses enter at the end of a description

Thanks for the silver skin

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by JNeuhoff » Wed Nov 26, 2008 8:07 pm

Do you also have to include this

oFCKeditor.Config['CustomConfigurationsPath'] = oFCKeditor.BasePath + 'myconfig.js';
I have no idea what it means but I found it in the latest SVN version of mail.tpl

I am not sure, it's not in 0.7.9RC4, looks like hm2k or QPhoria have done some more updates since 0.7.9RC4.

I am having a question mark annoyance since the changes
In product.tpl and home.tpl (for homepage mod), I keep getting ? when I press an enter at the end of a description
The enter key at the end of a description causes a   which turns into ? after saving.
I can confirm that it does indeed add the extra

Code: Select all

<p> </p>
into the description, and also in the database.

I can't reproduce your error getting the question mark though. What web browser are you using?
Last edited by JNeuhoff on Wed Nov 26, 2008 8:08 pm, edited 1 time in total.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by hm2k » Wed Nov 26, 2008 8:15 pm

JNeuhoff wrote: To hm2k: You said in another forum thread that you plan to simplify the integration and configuration of the FCKEditor for the product.tpl, information.tpl, product.tpl and newsletter.tpl using e.g. a common configuration file. Can you tell me how you did it so that the category.tpl could use a similar way of integrating the FCKEditor? Also, it seems multiple languages are supported for the category descriptions, maybe something similar can be done for the other TPL files using the FCKEditor?
I've not actually implemented it as of yet, however the use of 'myconfig.js' is a step in the right direction.

I will be moving the DocType and SkinPath variables to "myconfig.js", further from this, I will be creating a PHP based template that can be included as it is required. These are things for 0.8.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by jty » Wed Nov 26, 2008 8:25 pm

JNeuhoff wrote:
Do you also have to include this

oFCKeditor.Config['CustomConfigurationsPath'] = oFCKeditor.BasePath + 'myconfig.js';

I have no idea what it means but I found it in the latest SVN version of mail.tpl
I am not sure, it's not in 0.7.9RC4, looks like hm2k or QPhoria have done some more updates since 0.7.9RC4.
Yes, I got it from mail.tpl in the latest SVN r232
I can confirm that it does indeed add the extra

Code: Select all

<p> </p>
into the description, and also in the database.

I can't reproduce your error getting the question mark though. What web browser are you using?
I think it's best to ignore it for now. It's not important enough to hold up 079 Final
It happens in IE, FF and Opera but it only happens on product.tpl and the homepage one after the change. I couldn't reproduce it in information.tpl and category.tpl so something is funny with my product.tpl
It's not important enough to warrant anymore attention

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by Qphoria » Wed Nov 26, 2008 10:51 pm

The plan for 0.8 is also to move the javascript folder to the library area instead of having 2 copies of jquery and all other javascript libraries in both "admin/javascript" and "catalog/javascript"

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 2 guests