Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

We are using primefaces <p:editor> to expose html e-mails to the client. However, it was noticed that for a tag like the one below (I know it's messy, but I can't control what is inserted):

HTML
<body style="-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background: #ffffff; color: #393939; font-family: Arial, Helvetica,; font-size: 14px; margin: 0 auto; padding: 0; width: 100% !important" bgcolor="#ffffff">
</pre>

when I'm inside the system and inspect the html inside de editor, the body tag show the following code instead:

<pre lang="HTML">
&lt;body style="margin:4px; font:10pt Arial,Verdana; cursor:text">
</pre>

<pre lang="C#">At the moment I would like to keep &lt;p:editor&gt; because otherwise I&#39;ve to change many other events that depend/interact with it.</pre>

<b>What I have tried:</b>

I've been researching about it, but so far I've found nothing.

By setting the actual style with some well placed !important tags, it's possible to get the desired result. but that is not an option nor a good option.

I've seen some people dealing with similar issues using javascript, but if could be set by some kind of configuration on primefaces, it would be better.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900