Jump to content

How can I enable a global editor? My categories look like crap!


Recommended Posts

I am adding all the different categories to a new 1.5 rc2 shop. I am trying to fancy up my Description: in the backoffice. At this location below...

 

Catalog separator_breadcrum.png Categories separator_breadcrum.png Edit

 

 

The problem is there is no editor to use. I also noticed that simple breaks with the htm break tag works but when you hover over the categories on the front office the popup shows all the html as well as the content.

 

It just looks like arse...

 

So what gives... Is their a global editor avalible for the back office?

 

Why do html tags work but show up inside the hover element over top of the cat?

 

 

I am enjoying the new 1.5 it is off the hook!

 

Thanks

Billy

Link to comment
Share on other sites

Good Morning,

 

I am also using 1.5.0.15 on a local host and have tried replicating you problem using "Bold" and "Break" tags but do not have this problem.

 

It is odd though not to have an html editor or can't either of us find it.

 

Paul

Link to comment
Share on other sites

Man I really need to use the editer in all of the back office. What editer's does prestashop come with? (Tiny) Also when I say I can see the html code in the front office. What I meant to say is I can see the code in the "alt tags" on the front office.

 

If you hover over the categories the alt tag will display. Inside the alt tag is all your html... This will look very bad to customers on the site.

 

I hope that makes better sense...

 

Thanks for your post and im glad im not the only one not to have use of the editer. Maybe we can get this fixed if other people will chime in...

 

Thanks for your time paul

Billy

 

Ps btw my site is not local its live in maintence mode.

Edited by Billy (see edit history)
Link to comment
Share on other sites

  • 7 months later...

Hello there,

 

I just found a quick solution for this for prestashop 1.5.4.0

 

Just go to root/controller/admin/AdminCategoriesController.php

 

and goto line 336 and replace the varibale with following code. Then you are done.

 

$this->fields_form = array(
  'tinymce' => true,
  'legend' => array(
   'title' => $this->l('Category'),
   'image' => '../img/admin/tab-categories.gif'
  ),
  'input' => array(
   array(
 'type' => 'text',
 'label' => $this->l('Name:'),
 'name' => 'name',
 'lang' => true,
 'size' => 48,
 'required' => true,
 'class' => 'copy2friendlyUrl',
 'hint' => $this->l('Invalid characters:').' <>;=#{}',
   ),
   array(
 'type' => 'radio',
 'label' => $this->l('Displayed:'),
 'name' => 'active',
 'required' => false,
 'class' => 't',
 'is_bool' => true,
 'values' => array(
  array(
   'id' => 'active_on',
   'value' => 1,
   'label' => $this->l('Enabled')
  ),
  array(
   'id' => 'active_off',
   'value' => 0,
   'label' => $this->l('Disabled')
  )
 )
   ),
   array(
 'type' => 'categories',
 'label' => $this->l('Parent category:'),
 'name' => 'id_parent',
 'values' => array(
  'trads' => array(
    'Root' => $root_category,
    'selected' => $this->l('Selected'),
    'Collapse All' => $this->l('Collapse All'),
    'Expand All' => $this->l('Expand All')
  ),
  'selected_cat' => $selected_cat,
  'input_name' => 'id_parent',
  'use_radio' => true,
  'use_search' => false,
  'disabled_categories' => array(4),
  'top_category' => Category::getTopCategory(),
  'use_context' => true,
 )
   ),
   array(
 'type' => 'radio',
 'label' => $this->l('Root Category:'),
 'name' => 'is_root_category',
 'required' => false,
 'is_bool' => true,
 'class' => 't',
 'values' => array(
  array(
   'id' => 'is_root_on',
   'value' => 1,
   'label' => $this->l('Yes')
  ),
  array(
   'id' => 'is_root_off',
   'value' => 0,
   'label' => $this->l('No')
  )
 )
   ),
   array(
 'type' => 'textarea',
 'label' => $this->l('Description'),
 'name' => 'description',
 'autoload_rte' => true,
 'lang' => true,
 'rows' => 10,
 'cols' => 100,
 'hint' => $this->l('Invalid characters:').' <>;=#{}'
   ),
   array(
 'type' => 'file',
 'label' => $this->l('Image:'),
 'name' => 'image',
 'display_image' => true,
 'desc' => $this->l('Upload a category logo from your computer.')
   ),
   array(
 'type' => 'text',
 'label' => $this->l('Meta title:'),
 'name' => 'meta_title',
 'lang' => true,
 'hint' => $this->l('Forbidden characters:').' <>;=#{}'
   ),
   array(
 'type' => 'text',
 'label' => $this->l('Meta description:'),
 'name' => 'meta_description',
 'lang' => true,
 'hint' => $this->l('Forbidden characters:').' <>;=#{}'
   ),
   array(
 'type' => 'tags',
 'label' => $this->l('Meta keywords:'),
 'name' => 'meta_keywords',
 'lang' => true,
 'hint' => $this->l('Forbidden characters:').' <>;=#{}',
 'desc' => $this->l('To add "tags," click in the field, write something, and then press "Enter."')
   ),
   array(
 'type' => 'text',
 'label' => $this->l('Friendly URL:'),
 'name' => 'link_rewrite',
 'lang' => true,
 'required' => true,
 'hint' => $this->l('Only letters and the minus (-) character are allowed.')
   ),
   array(
 'type' => 'group',
 'label' => $this->l('Group access:'),
 'name' => 'groupBox',
 'values' => Group::getGroups(Context::getContext()->language->id),
 'info_introduction' => $this->l('You now have three default customer groups.'),
 'unidentified' => $unidentified_group_information,
 'guest' => $guest_group_information,
 'customer' => $default_group_information,
 'desc' => $this->l('Mark all of the customer groups you;d like to have access to this category.')
   )
  ),
  'submit' => array(
   'title' => $this->l('Save'),
   'class' => 'button'
  )
 );

 

 

Let me know if it worked for you or not.

Link to comment
Share on other sites

  • 3 months later...

Excellent, seems to be jsut what I needed to embed YouTube videos in the description. The line is 326 on my file though

Link to comment
Share on other sites

×
×
  • Create New...