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 5 years 6 months ago #5731

  • Neil Pollock
  • Neil Pollock's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 92
  • Thank you received: 4
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 5 years 6 months ago #5732

  • ronm
  • ronm's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 852
  • Thank you received: 261
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
Note: Support here is voluntary and meant for users to support each other.
Need direct commercial support with Xerte? mitchellmedia.co.uk/contact/

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

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.044 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search