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!
Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language
Quote:
Originally Posted by
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.
Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language
Quote:
Originally Posted by
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:
Code:
<?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:
Code:
<?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), 'class="noEditor"'); ?></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), 'class="noEditor"'); ?></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.
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.)
Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language
Thanks, DrByte; I'll get that change going.
Re: EZ-Pages Meta Tag Fields and CKEditor issues with Danish language
Thank you guys! It is working perfect! :clap::clap::clap::clap:
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.