I am upgrading tinyMCE from 3.4.2 to 4.0.1. Everything works perfectly in place. But the problem started when I posted everything on the server. The toolbar loads fine, but the icons do not display correctly. Note. I have separate projects for applications and CDN. I assume this is a cross-domain / url problem, but unable to figure it out. The toolbar is currently loading, as shown in the screencast section!
tinyMCE.init({ // General options theme: "modern", editor_selector: "mceDesignerEditorAutoresize", relative_urls: false, convert_urls: false, toolbar1: "cut copy paste | bold italic | undo redo | bullist numlist | outdent indent blockquote | link unlink image code | inserttime preview | forecolor backcolor | imgCustom attachCustom", toolbar_items_size: 'small', plugins: [ "autoresize advlist autolink lists link image charmap print preview hr anchor pagebreak", "searchreplace wordcount visualblocks visualchars code fullscreen", "insertdatetime nonbreaking save table contextmenu directionality", "emoticons template paste textcolor" ], accessibility_warnings: false, accessibility_focus: false, setup: function (ed) { ed.addButton('imgCustom', { title: 'Image', image: $("#jsTinyMCEImageUrl").val().toString(), onclick: function () { openModalPopup($("#jsTinyMCEImagePath").val(), "width=700,height=600"); } }); ed.addButton('attachCustom', { title: 'Attachment', image: $("#jsTinyMCEAttachUrl").val().toString(), onclick: function () { try { openModalPopup($("#jsTinyMCEAttachPath").val(), "width=400,height=200"); } catch (e) { } } }); }, language: $('#TinyMCECurrentLanguage').val(), paste_auto_cleanup_on_paste: true
});
source share