← Back to team overview

mahara-contributors team mailing list archive

[Bug 1538654] Re: <hr> icon in text editor

 

There is no current plan to add it back in as part of core but if you
want to add it to your instance of Mahara then using latest codebase
(16.04dev) as an example then to add the <hr> button to tinymce you
would need to change the htdocs/lib/web.php file in two places and add
the 'hr' option.

Eg, on line 259 change:
 '"fontselect | fontsizeselect | emoticons nonbreaking charmap ' . $mathslate . ' ' . $spellchecker_toolbar . ' | table | removeformat pastetext | code"',

To:
 '"fontselect | fontsizeselect | hr emoticons nonbreaking charmap ' . $mathslate . ' ' . $spellchecker_toolbar . ' | table | removeformat pastetext | code"',

And on line 273 change:
 plugins: "tooltoggle,textcolor,visualblocks,wordcount,link,imagebrowser,table,emoticons{$spellchecker},paste,code,fullscreen,directionality,searchreplace,nonbreaking,charmap{$mathslateplugin}",

To:
 plugins: "tooltoggle,textcolor,visualblocks,wordcount,link,imagebrowser,table,emoticons{$spellchecker},paste,code,fullscreen,hr,directionality,searchreplace,nonbreaking,charmap{$mathslateplugin}",

This will add the <hr> button to the third row of options (initially
hidden) which you can see by expanding the tools options.

Also to note: The use of the <hr> tag has changed over time. In newer
HTML5, the <hr> tag defines a thematic break whereas in older HTML 4.01,
the <hr> tag represents a horizontal rule.

This means that the <hr> attributes are not supported anymore so if you
need the <hr> to be styled in any particular way this needs to be done
via your theme's css now.

Cheers

Robert

** Changed in: mahara
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1538654

Title:
  <hr> icon in text editor

Status in Mahara:
  Opinion

Bug description:
  I know this button has been away for some time... but it is just been
  reported to me.

  The horizontal rule (<hr>) button that was available in text editor of
  Mahara version 1.9 has disappeared.

  Could it be possible to add it? Or better to have the option to add
  one or many buttons onto the text editor toolbar (like Atto editor in
  Moodle)?

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1538654/+subscriptions


References