Welcome, Guest
Username: Password: Remember me

TOPIC: Text editor, extra buttons like Article and Image

Text editor, extra buttons like Article and Image 16 Jan 2012 12:33 #1008

  • molenwal1
  • molenwal1's Avatar
  • Offline
  • Senior Member
  • Posts: 63
  • Thank you received: 17
  • Karma: 3
When you edit an article in Joomla, underneath the ArticleText you will find buttons like Image, Article and Read more. The Cook component will not display these buttons by default for Rich text fields.

How to display these buttons: edit file admin\dom\html\form\input\editor.php
Change line
$html = $editor->display($this->dataKey, $this->dataValue, $this->width, $this->height, $this->cols, $this->rows, false);

Into (false -> true):
$html = $editor->display($this->dataKey, $this->dataValue, $this->width, $this->height, $this->cols, $this->rows, true);

If you want to display only certain buttons you have to change some more code, just check the Joomla category and article components in the administrator part on how to hide/display buttons.
Molenwal1 Webdesign
www.molenwal1.nl
The administrator has disabled public write access.
Time to create page: 0.077 seconds

Get Started