Displaying HTML Code in eGuide

By: coolguys

July 12, 2006 12:00 am

Reads: 207




I was wondering how to display HTML-formatted text in eGuide. I was thinking of using something like http://tinymce.moxiecode.com/ to edit the text – but I suppose
I’ll need another frameset in order to make this happen.


After a bit more digging I’ve added the following UI handler:

  <xsl:template name="SV_MAFTextAreaEditTD">
    <td class="ValueText">
      <input type="hidden" name="{name}" id="{name}">
      <!-- <textarea rows="5" cols="50" id="MAFShow" wrap="hard" 
class="mceEdit" name="_SV_CTRL_{name}" 
onkeyup="updateSvXml('document.forms[0]._SV_CTRL_{name}')"> -->

      <textarea rows="5" cols="50" id="MAFShow" wrap="hard" 
class="mceEdit" name="_SV_CTRL_{name}" 
        <xsl:value-of select="value"/>

The method that tinyMCE uses (http://tinymce.moxiecode.com/tinymce/docs/option_add_form_submit_trigger.html)
to copy back the text from their hidden frame to the ‘native’ frame seems to conflict with what eGuide is doing. So, I think I’ll wind up trying the http://tinymce.moxiecode.com/tinymce/docs/option_onchange_callback.html
method and place in there the logic that would otherwise place the
<![CDATA[<undefined><nochange></nochange></undefined>]]> entry in that field, if it had not been changed.

And of course I’ll need an iFrame for display …

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: , ,
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.