1
votes

Is there a way how to adjust HTML generated by xPage from document rich text field? I have q document from which the rich text field content is displayed on xPage using computed text control. Solution works nice except, that xPages engine generates strange HTML from the rich text field. When displaying page on web using standard form, all texts written by default font and default size doesn't contain markup arround so on could use CSS to style it. Not this way in xPages. Everything have tag around and its not funny seeing generated font tag around the div tag :-(

<div class="tcl-columns3-in">
  <font size="2" face="sans-serif"></font>
  <font size="2" face="sans-serif">
      <b>Header text ...</b>
  </font>
  <font size="2" face="sans-serif">
     <div class="tcl-box-outlined">
        text ...<br>
     </div>
  </font>
</div>

Is there a way how to get rid of out of generated HTML?. I looked to html filtering option with ASF filter but it requires to adjust settings on filesystem, which not option for me ...

1
I think you have to explain more, what do you want? Get rid of the <font or do you mean that some information isn't generated as is should?Fredrik Norling
exactly, HTML is generated by different way. It's not the same as it was with native Domino engine.Denny
Provide your CODE snippet PLEASE!!!!!stwissel
Not sure how to create code snippet here. I have a notes document with richtext field with some formated text content and on xpage there is a computede text control that displays the field value (disabled escaping) HTML output in browser contains <font /> tags all around. But as I understand this is how its working and I cant adjust it ... I understand that output is different from native http (displaying using notes form on web) simply because its different technology.David Marko

1 Answers

0
votes

There are a number of steps you narrow down your problem. RichText -> MIME -> RichText is not a problem free relationship. As Carl pointed out, you can have a look at the raw RichText -> Mime conversion result. Does that look OK? Then you could use a Dijit ContentPane to pull that content in.

It also depends on what control you use to display the content. You might have different success with textbox and RichText editor. If you look for very high fidelity you either store your RT as mime (a property of a RT field) or use Coex Edit a commercial server plug-in