Bear with me I know this sounds crazy... However we have built a templating system for clients to create their own emails in Umbraco it works brilliantly except...
Our contracts with clients states that it will work across a variety of Email clients, however this unfortunately means some clients don't recognise css in the head of a document and thus for some links , images etc we require a style attribute to be added on the element inline.
I have tried adding a custom attribute to tinyMCEConfig.config called "custom", which loads in the following (as per the documents on tinyMCE's website)
This is picked up, relevant code added to tinyMCE javascript compression handler, however doesn't appear to work with styles not being populated.
Any help would be great as this functionality would allow us to create Umbraco as a complete email management system with an interface that the client already enjoys.
I'm not sure about this specifically, but I think there might be a certain format you need to add this code in. I think tinyMCE.init is already being called, so you don't want to call it again. Maybe try checking out this wiki article on Enabling the Template plugin for TinyMCE and look how they added the additional template_templates option and try to adopt that format.
Sorry for not getting back to you sooner, we are actually using the templating already which is pretty powerful - however there is nothing in TinyMCE for more advanced configuration (or so it seems) to include things like adding styles inline. Searching through the web and via TinyMCE themselves has proved fruitless, so it looks like it's rather impossible, which is a pity!
Alter TinyMCE to allow inline styles...
Bear with me I know this sounds crazy... However we have built a templating system for clients to create their own emails in Umbraco it works brilliantly except...
Our contracts with clients states that it will work across a variety of Email clients, however this unfortunately means some clients don't recognise css in the head of a document and thus for some links , images etc we require a style attribute to be added on the element inline.
I have tried adding a custom attribute to tinyMCEConfig.config called "custom", which loads in the following (as per the documents on tinyMCE's website)
This is picked up, relevant code added to tinyMCE javascript compression handler, however doesn't appear to work with styles not being populated.
Any help would be great as this functionality would allow us to create Umbraco as a complete email management system with an interface that the client already enjoys.
Thanks,
Joe
Hi Joe,
I'm not sure about this specifically, but I think there might be a certain format you need to add this code in. I think tinyMCE.init is already being called, so you don't want to call it again. Maybe try checking out this wiki article on Enabling the Template plugin for TinyMCE and look how they added the additional template_templates option and try to adopt that format.
Hope this helps,
Tom
Hi Tom,
Sorry for not getting back to you sooner, we are actually using the templating already which is pretty powerful - however there is nothing in TinyMCE for more advanced configuration (or so it seems) to include things like adding styles inline. Searching through the web and via TinyMCE themselves has proved fruitless, so it looks like it's rather impossible, which is a pity!
Thanks for your help however,
Joe.
is working on a reply...