Loaded Commerce Community

Banner


Board index » Loaded Commerce Support » General Support

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Replacing tiny editor worked easy enough but not for article
PostPosted: Sat Jan 21, 2012 4:35 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
It was pretty easy to replace the tiny_mce editor by mainly changing admin/includes/functions/wysiwyg_editor.php to point to the new editor.

That is where the easy part ended... When I try to edit the articles it doesn't seem to pick up on the new editor it just gives me it with all the html code showing.

Anyone have an idea? This is with 6.3.3 BTW. (I know people will suggest I move to 6.5 but I'm just looking for an idea of where to look).
Thanks,
Mike


Top
 Profile  
 
 Post subject: Re: Replacing tiny editor worked easy enough but not for article
PostPosted: Mon Jan 23, 2012 12:46 am 
Offline
CRE Legend
User avatar

Joined: Thu Jun 12, 2008 6:39 am
Posts: 2404
Location: New Zealand
Pretty much answered your own question ... grab a 6.5 CE version and check how it does it.
Hint - try /admin/includes/runtime/footer/ckeditor_footer_bottom.php - replace 'ckeditor' with whatever type you're using.

Simon

_________________
www.codemehappy.com
For Cre Loaded tips, how-to articles and more


Top
 Profile  
 
 Post subject: Re: Replacing tiny editor worked easy enough but not for article
PostPosted: Mon Jan 23, 2012 10:13 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
As always thank you for the reply... here is the part that has me confused...

It has:
case FILENAME_ARTICLES:
if(tep_not_null($topics_description_elements) && ARTICLE_WYSIWYG_ENABLE == 'Enable'){
$cpe = explode(',',$topics_description_elements);
foreach ($cpe as $id => $editor_id){
if($editor_id != ''){
echo tep_insert_ckeditor($editor_id,'BODY');
}
}
}
break;

and when editing article topics it works, but when editing the articles themselves it doesn't.
admin/articles.php?tPath=&aID=1&action=new_article&osCAdminID=ihnn8s84q9vbuvovh1u7odcvc6
doesn't work....

admin/articles.php?tPath=&tID=1&action=edit_topic&osCAdminID=ihnn8s84q9vbuvovh1u7odcvc6
WORKS!

So I need to find the equivalent $topics_description_elements for the article description....

So far drawing a blank.

Mike


Top
 Profile  
 
 Post subject: Re: Replacing tiny editor worked easy enough but not for article
PostPosted: Tue Jan 24, 2012 3:38 am 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
Okay - I was in multiple places because of some oddities... One that really had me spinning was typing to edit the pages... Well quick fix was someone in pages.php spelled it $pages_body_elemtnts versus $pages_body_elements so that is why the body section would never have the editor... Now on to the article issue I was having... Spun around for quite a while on that last one!!!

Mike


Top
 Profile  
 
 Post subject: Re: Replacing tiny editor worked easy enough but not for article
PostPosted: Tue Jan 24, 2012 6:08 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
Thank you again Simon for the point in the right direction....

It is now fixed - I added the below section commented below to the ckeditor_footer_bottom.php file.

case FILENAME_ARTICLES:
if(tep_not_null($topics_description_elements) && ARTICLE_WYSIWYG_ENABLE == 'Enable'){
$cpe = explode(',',$topics_description_elements);
foreach ($cpe as $id => $editor_id){
if($editor_id != ''){
echo tep_insert_ckeditor($editor_id,'BODY');
}
}
}
// added this section begin
if(tep_not_null($articles_description_elements) && ARTICLE_WYSIWYG_ENABLE == 'Enable'){
$cpe = explode(',',$articles_description_elements);
foreach ($cpe as $id => $editor_id){
if($editor_id != ''){
echo tep_insert_ckeditor($editor_id,'BODY');
}
}
}
// added this section end
break;

With this fix for the articles and the last fix for the pages editing has it working so no more tiny_mce editor.... :)

Mike


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Board index » Loaded Commerce Support » General Support

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed May 23, 2012 8:44 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy