Select Editor in Wysiwyg's Custom Field

  • Posts: 175
  • Thank you received: 0
11 years 3 months ago #118649

Hello,
I'm using JCE Editor as Default editor. But it seem there's problem between hikashop and JCE Editor as the data can't be save. This has no problem with tinyMCE... i would like to know is there a way to choose the editor for WYSIWYG custom field ?

Thanks

-- url of the page with the problem -- : still in localhost
-- HikaShop version -- : 2.2.0
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3.17
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : Error_message

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 3 months ago #118692

Hi,

There is no option for that. You can select the editor globally for HikaShop in the Editor option of the configuration.

Last edit: 11 years 3 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 175
  • Thank you received: 0
11 years 3 months ago #118723

Hi nicholas,
I believe there's a lot of hikashop user which using 3rd party Wysiwyg since default tinymce has a lot of limitation. i check on JCKEditor and JCE Editor.. and it has bugs with WYSIWYG, so using tinymce is a solution right now.

There's very simple solution on doing this, and i see you guys already prepare a neat code for this.. it took me an hour to find it, and i'm bit surprise for this simple solution and you choose not to give me a clue to find this... at least a simply reply like "you might take a look on xxxxx.php and xxxxx.php.... and can dig deep there, but we don't provide further support on this..."

Anyway.. for any of hikashop user who like to 'force' tinymce as the default WYSIWYG editor for custom field... here's the solution:

1. open administrator/components/com_hikashop/helpers/editor.php
2. find the line consist of : function setEditor($editor=''){
3. change it into: function setEditor($editor='tinymce'){
4. done

Hope this tips helpful

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 3 months ago #118724

Hi,

Thanks for the tip.
But you know that HikaShop contains a lot of lines and files and we are several to work in, so Nicolas just forgot about this helper and this function.

After that, if you want to modify a helper file, please be careful with updates. You can use class/helper override system like explained in this thread :
www.hikashop.com/forum/2-general-talk-ab...te-issue.html#109257

It will ensure you that your override won't be lost during updates.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum