problem is, if I click preview, then the modified data is showed in the preview, which I want, but the original content in the editing field is also changed.
How do i prevent this?
I mean when I click preview I want it to show modified data, but the editor box should have original unmodified content in it.
Upon submit, the modified data should be saved in database, which works as well.
The code I'm using:
Code: Select all
$message= $event['message_parser']->message; //Do something with $message; $event['message_parser']->message = $message;
I'm not sure if it was asked before. I tried searching, but couldn't find what I am looking for,