How to create horizontal line in text editor?

How to create horizontal line in text editor?

by Antonio López -
Number of replies: 4

Hi,

I'm using the latest moodle version (2.1.2). In previous moodle versions there was a really useful button to create a horizontal line (ruler?) which I am not able to find in this new version. So, how do you create horizontal lines when your are editing, say..., a label?

Thanks.

Antonio.

Average of ratings: -
In reply to Antonio López

Re: How to create horizontal line in text editor?

by Lynn Scarlet Clark -

If you are an admin, you should be able to ensure that the line icon is turned on in the tinyMCE editor (admin>plugins>text editors>tiny MCE editor).

If you are not, typing a simple <hr> in the code view will give you a default colour (usually grey) 1 pixel height line across the whole wideth of the block you are in. You can add color/height/width etc html codes within the <hr> to alter this, eg <hr width="90%">

In reply to Lynn Scarlet Clark

Re: How to create horizontal line in text editor?

by Antonio López -

Thank you for your answer Scarlet. Your <hr> tip really solves my problem.

However, when I go to admin>plugins>text editors>tiny MCE editor (as an admin) the only option I seem to be able to configure is the spell check engine...

Anyway, my problem is solved smile

In reply to Antonio López

Re: How to create horizontal line in text editor?

by Mary Cooch (personal account) -
Picture of Documentation writers Picture of Testers

Hi there. There is a tracker entry for this: MDL-26954

Average of ratings: Useful (1)
In reply to Mary Cooch (personal account)

Re: How to create horizontal line in text editor?

by Colin Fraser -

mmm well, if someone was to go and look at the Tracker item refered to by Mary, he would not have just wasted 20minutes digging through the TinyMCE web site and reams of code to find the right place and add in a bit of code "hr," in about the same place as the Tracker item suggests.. haha!!!!