forkcms/forkcms — pull request #151 by davelens (2011-10-30 22:19:38+00:00)
Title: tinymce().getContent() problem temporary solution

Tiny should no longer output javascript or other tiny-related code whilst executing getContent() on a tinymce source object. It's a dirty solution (manual stripping of tiny-related fields) but not sure if there is a better way.

Also, because I'm copying the value of a textarea to another textarea, there was an issue with utf8 encoded characters. To fix that, I used escape() on the value, and rawurldecode() in the PHP on the frontend. This way CampaignMonitor will receive good HTML, but again, sloppy solution and not sure if there is a better way.

View comments in mailmotor.js (jsBackend.mailmotor.step3) if it's not clear.