Problem

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.

Solution

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}">
        <xsl:attribute 
name="value"><![CDATA[<undefined><nochange></nochange></undefined>]]></xsl:attribute>
      </input>
      <!-- <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}" 
onkeyup="updateSvXml('document.getElementByID(MAFShow');'">
        <xsl:value-of select="value"/>
      </textarea>
    </td>
  </xsl:template>

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 …

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...
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.

Leave a Reply

No Comments
By: coolguys
Jul 12, 2006
12:00 am
Reads:
1,661
Score:
Unrated
Active Directory Automation Cloud Computing Cloud Security Configuration Customizing Data Breach DirXML Drivers End User Management Identity Manager Importing-Exporting / ICE/ LDIF Intelligent Workload Management Knowledge Depot LDAP Migrating from Windows XP or 2003 to SUSE Linux Monitoring Open Enterprise Server Passwords Reporting Secure Access Sentinel Supported Troubleshooting Workflow