Plain text area and images

Plain text area and images

by Dannie Stanley -
Number of replies: 5

I much prefer to use the plain text area for adding content to Moodle. However, on the rare occasion that I need to add an image to my content it isn't clear to me how to do this without using the WYSIWYG HTML editor. Right now I temporarily change my user preferences to facilitate it. I don't mind creating the HTML by hand, I just need the attachment feature.

Average of ratings: -
In reply to Dannie Stanley

Re: Plain text area and images

by Colin Fraser -
Picture of Documentation writers Picture of Testers

Hi Dannie, while I sympathise with you, the reality is that there are far too many restrictions using TextArea, you are much better off using TinyMCE or Atto. Having said that, it is also appropriate to turn HTMLTidy off, if you have it installed. What I have done in the past is to write the page as I want it to appear, then copy and paste it into the HTML editing page. Images and the like are then added using the WYSIWYG next and final edits occur after that. This gives me the illusion that I am actually in control of how my page appears - most of the time..smile  For me, this also gives me a more significant level of control over my finished product, produced with quick, simple code which is often easily repaired when some other editor comes in and changes things, for the "better" of course.   

Average of ratings: Useful (1)
In reply to Dannie Stanley

Re: Plain text area and images

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

I am exactly in your position. Haven't found a solution other than temprorily changing editor to a GUI editor in my profile, which is a tedious work-around.

- "HTML editor breaks my code"
https://moodle.org/mod/forum/discuss.php?d=261368

- "Uploading and linking files without the GUI editor"
https://moodle.org/mod/forum/discuss.php?d=271062

- "Delegating the editing to Vim (or other decent text editor)"
https://moodle.org/mod/forum/discuss.php?d=270989

My conclusion is that Moodle is getting more and more "visual" ;(

I am trying to take my editing out of Moodle. This is the idea:
"https://moodle.org/mod/forum/discuss.php?d=276119"
https://moodle.org/mod/forum/discuss.php?d=276119

As a bonus, hoping to create EPUB e-books from the same source.
In reply to Visvanath Ratnaweera

Re: Plain text area and images

by Przemek Kaszubski -
Picture of Particularly helpful Moodlers Picture of Testers

My experience is - unless you're embedding local media in the page, HTML edits are fine. Otherwise, use Colin's method - do all the text as HTML, and only switch on the WYSIWYG editor for uploading the media and connecting to them.

AND after that point, NEVER revert to the HTML code editing in Moodle if you want to retain links to the media.

Otherwise, you're likely to be get frustrated.

In reply to Przemek Kaszubski

Re: Plain text area and images

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi Przemek

A detail which could turn out to be critical, the OP is talking about _textarea_, not the HTML area '<>'.
In reply to Visvanath Ratnaweera

Re: Plain text area and images

by Przemek Kaszubski -
Picture of Particularly helpful Moodlers Picture of Testers

Ah, yes, Visvanath, I missed that, thanks. That's because I myself use HTML wherever possible. Still the point is that if we want to embed local media, we need to use the HTML editor.  And once we've done that, it safer not to post-edit the HTML by hand.