Setting default font size and background color in TinyMCE
tinymce
Solution
You can change the css using Javascript also.
Add this to your init function:
oninit : "postInitWork",
and
function postInitWork() {
tinyMCE.getInstanceById('textedit').getWin().document.body.style.backgroundColor='#FFFF66';
var dom = tinymce.activeEditor.dom;
var pElements = dom.select('p'); // Default scope is the editor document.
dom.setStyle(pElements, 'color', 'red');
}
Problem
How can I set the default font size and the background color in TinyMCE? Thanks, Eden