Hi all, hope this is the right place to post this question.

I have just installed Drupal 4.7.2 and added the Xinha htlmarea as a WYSIWYG editor for textarea formfields. I have enabled 'formatblock' in the htmlarea toolbar and just tried using it to format headings in a test page.

The headings display OK in the WYSIWYG and look OK in the code view within the editor, but when I display the page, the headings are showing as ordinary text ... ie:

Code view in WYSIWYG editor shows:

<h2>Heading 2</h2>
  <p>This is a <strong>test page</strong> With some content and a <a title="home page link" href="index.php">link</a>. </p>
  <h3>Heading 3</h3>
  <p>And some more text here.</p>
  <p>&nbsp;</p>

View source in browser shows:

 <div class="content">
<p>Heading 2<br />
  This is a <strong>test page</strong> With some content and a <a title="home page link" href="index.php">link</a>.<br />
  Heading 3<br />
  And some more text here.<br />
  &nbsp;</p>
 </div>

Can anyone point me in the direction of what is causing this to happen? I suspect a textarea admin setting or a line in the htmlarea.js, but not sure which one.

Thanks

Tony

Comments

dchsweb’s picture

I should have mentioned that the formatting is retained and recognised by the WYSIWYG editor - it is not lost on save. When I reload the page for editing, the H2 and H3 tags are still there in the editor. It is just not displayed in the browsable page.

Tony