Forums / All Other Contributions/Addons / EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

Views: 1,221

Results 1 to 7 of 7
7 May 2016, 10:05 AM
#1
bennito avatar

bennito

New Zenner

Join Date:
Jan 2016
Location:
Denmark, Copenhagen
Posts:
39
Plugin Contributions:
0

EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

Hello everyone!

I am using Zen Cart v1.5.4. Recently I installed EZ-pages Meta tag that allows me to add keywords and title to my EZ pages. Unfortunately I noticed (perhaps many others know about this issue) that anytime when I add some keywords and I am using CKEditor they are having some changes on certain letters (specific letters to the Danish alphabet).

I know that somebody will say "disable it before using EZ-Pges". Well, unfortunately I would do that if I wouldn't had to use CKEditor to edit my EZ pages content. So if I go to EZ pages with disabled CKEditor and I add my metatags and next time go with enabled CKEditor to edit my content on the pages, they are automatically changed.

So, here is my question: how I should proceed in this situation? Is there some code that I can add, so CKEditor doesn't affect to the Metatags fields in EZ-pages menu?

Thank you in advance and sorry for my English!

7 May 2016, 5:38 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

bennito:

Is there some code that I can add, so CKEditor doesn't affect to the Metatags fields in EZ-pages menu?
Add an HTML class of "noEditor" to the textarea fields that you wish CKEditor to ignore.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 May 2016, 6:06 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

DrByte:

Add an HTML class of "noEditor" to the textarea fields that you wish CKEditor to ignore.
Just so I'm clear, the following section of the ezpages.php modified by the EZ Pages Meta Tags plugin:

<?php
//-bof-ezpages_metatags-lat9  *** 4 of 5 ***
?>
          <tr>
            <td class="main"><?php echo TEXT_PAGE_META_TITLE; ?></td>
            <td class="main"><?php echo zen_draw_input_field('pages_meta_title', $ezInfo->pages_meta_title); ?></td>
          </tr>
          <tr>
            <td class="main"><?php echo TEXT_PAGE_META_KEYWORDS; ?></td>
            <td class="main"><?php echo zen_draw_textarea_field ('pages_meta_keywords', 'soft', '100%', '3', htmlspecialchars ($ezInfo->pages_meta_keywords, ENT_COMPAT, CHARSET, TRUE)); ?></td>
          </tr>
          <tr>
            <td class="main"><?php echo TEXT_PAGE_META_DESCRIPTION; ?></td>
            <td class="main"><?php echo zen_draw_textarea_field('pages_meta_description', 'soft', '100%', '5', htmlspecialchars ($ezInfo->pages_meta_description, ENT_COMPAT, CHARSET, TRUE)); ?></td>
          </tr>
          <tr>
            <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
          </tr>
<?php
//-eof-ezpages_metatags-lat9  *** 4 of 5 ***
?>

should be changed to:

<?php
//-bof-ezpages_metatags-lat9  *** 4 of 5 ***
?>
          <tr>
            <td class="main"><?php echo TEXT_PAGE_META_TITLE; ?></td>
            <td class="main"><?php echo zen_draw_input_field('pages_meta_title', $ezInfo->pages_meta_title); ?></td>
          </tr>
          <tr>
            <td class="main"><?php echo TEXT_PAGE_META_KEYWORDS; ?></td>
            <td class="main"><?php echo zen_draw_textarea_field ('pages_meta_keywords', 'soft', '100%', '3', htmlspecialchars ($ezInfo->pages_meta_keywords, ENT_COMPAT, CHARSET, TRUE)[B], 'class="noEditor"'[/B]); ?></td>
          </tr>
          <tr>
            <td class="main"><?php echo TEXT_PAGE_META_DESCRIPTION; ?></td>
            <td class="main"><?php echo zen_draw_textarea_field('pages_meta_description', 'soft', '100%', '5', htmlspecialchars ($ezInfo->pages_meta_description, ENT_COMPAT, CHARSET, TRUE)[B], 'class="noEditor"'[/B]); ?></td>
          </tr>
          <tr>
            <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
          </tr>
<?php
//-eof-ezpages_metatags-lat9  *** 4 of 5 ***
?>

If that's correct, I'll get that change staged for the plugin. You can check the status within the plugin's support thread.

7 May 2016, 6:18 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

Correct.

(As a quick test, you can View Source to verify that the textarea field has the noEditor class on it.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 May 2016, 7:46 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

Thanks, DrByte; I'll get that change going.

8 May 2016, 7:51 AM
#6
bennito avatar

bennito

New Zenner

Join Date:
Jan 2016
Location:
Denmark, Copenhagen
Posts:
39
Plugin Contributions:
0

Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

Thank you guys! It is working perfect! :clap::clap::clap::clap:

8 May 2016, 2:15 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language

Thanks for the feedback, bennito! I'll get that change into the plugin shortly.