Hello everybody,
I'm working on mails and mail templates (mako) inside OpenERP. I have a problem when I choose the template and the ckeditor (version 4.3.1) is filled.
If I press the source button first and then I choose the template, the code is loaded fine and everything is working. But when I switch to WYSIWYG view is not working anymore.
When I switch back to the source view something like this happens
http://ckeditor.com/forums/CKEditor-3.x/Preserver-source-code-formatting-protected-source
I tried protecting the source like below, but anyway I get an empty mail:
config.protectedSource.push( /<%[\s\S]*?%>/g );
In my case the code between <% %> is protected but if I write in source view
<%
set suma = 3+4
string = "some string"
%>Login de res.partner: ${object.name}<br />
When I switch back to WYSIWYG this happens
<%
set suma = 3+4
string = "some string"
%>Login de res.partner: ${object.name}<br />
And I get an empty mail
Any idea how to solve this?
Thanks in advance.