Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC: Including code

Including code 4 months 4 weeks ago #5731

  • Neil Pollock
  • Neil Pollock's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 73
  • Thank you received: 3
Not a huge priority in terms of bugs, but still an annoyance. I need to include some HTML on a page, so tried to include it in source view as:
<code>&lt;h1&gt;Example&lt;/h1&gt;</code>

Unfortunately, when you leave the editor page then return, it converts it to actual HTML like this:
<h1>
  <code>Test
  </code>
</h1>

Now, there is a workaround by adding <span> tags, but it starts to become a little verbose:
<code>&lt;<span>h1</span>&gt;Test&lt;<span>/h1</span>&gt;</code>

I suspect this is an issue with the WYSIWYG editor, but is there any way this can be fixed?

Please Log in or Create an account to join the conversation.

Including code 4 months 4 weeks ago #5732

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 532
  • Thank you received: 129
Hi Neil
as a workaround for now does using a textarea work for you e.g.
<p><textarea>&lt;h1&gt;Example&lt;h1&gt;</textarea>
</p>
HTH
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk | xerteacademy.com | learningapps.co.uk
Need direct commercial support? mitchellmedia.co.uk/contact/

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: jultenjjs
Time to create page: 0.456 seconds
Copyright © 2019 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search