On 10/31/2012 01:59 PM, Lake, Seth M (Vangent) wrote: > been playing aorund with this for a few day now. Able to design a table > in the WYSIWYG and have it email out properly (by setting the contect to > html in the templates) and show properly in the history (by pbypassing > the scrubber). still having an issue populating the Description field > on a new ticket though. any help is appreciated.
Rather than bypassing the scrubber, push the tags you need into @RT::Interface::Web::SCRUBBER_ALLOWED_TAGS. > I managed to hack together my first callback from Create.html and it > works (yay!) but it's populating the WYSIWYG with unformatted text. if > anyone knows how to make this pop as an actual table please shoot me a line. All message boxes (Elements/MessageBox) start as <textarea>s which are then optionally upgraded to a rich text editor if preferred using JavaScript. The assumption is that the <textarea> always starts with plain text and so it is HTML escaped before upgrading to the rich text editor. I'd investigate the CKEditor's JS API docs for ways to set HTML content, and then do that from your callback. Another option is setting the MessageBox Content to HTML and then tricking RT into thinking it's already HTML escaped (by setting CKEditorEncoded appropriately), but that sounds much more fragile and open to abuse. BTW, your callback will want to check and make sure there isn't already Content, otherwise you'll overwrite the submitted message every time. -------- We're hiring! http://bestpractical.com/jobs