[Infusion-users] Rich text inline editor and allowed tags

Antranig Basman antranig.basman at colorado.edu
Thu May 27 22:49:06 UTC 2010


Well... how is the form submitting? Is it a plain HTML form? Or are its 
contents themselves being read via jQuery? If you inspect the DOM, can 
you see the script tag inside the form field?

On 27/05/2010 16:43, Jennifer Bourey wrote:
 > Thanks! That definitely helped get me closer. I now have the script
 > element showing up in the markup in the preview div. The code I'm using
 > is essentially the following:
 >
 > myportlet.scriptEnablingViewAccessor = function (element) {
 > return {
 > value: function (newValue) {
 > if (newValue) {
 > element.innerHTML = newValue;
 > return $(element);
 > } else {
 > return element.innerHTML;
 > }
 > }
 > };
 > };
 >
 > The problem I'm facing now is that while the preview is updated, the
 > submitted form field value is still missing the script tag. Any ideas?
 >
 > - Jen
 >




More information about the Infusion-users mailing list