javascript - How to fix broken image icon bug with TinyMce and knockout -


i´m using tinymce-editor knockout, utilizing handler:

ko.bindinghandlers.wysiwyg = { init: function (element, valueaccessor, allbindingsaccessor, viewmodel) {     var value = valueaccessor();     var valueunwrapped = ko.unwrap(value);     var allbindings = allbindingsaccessor();     var $element = $(element);     $element.attr('id', 'wysiwyg_' + date.now());     if (ko.isobservable(value)) {         var issubscriberchange = false;         var iseditorchange = true;         $element.html(value());         var iseditorchange = false;          tinymce.init({             selector: '#' + $element.attr('id'),             inline: true,             plugins: [                 "textcolor advlist autolink lists link image charmap print preview anchor",                 "searchreplace visualblocks code fullscreen",                 "insertdatetime media table contextmenu paste"             ],             toolbar: "insertfile undo redo | styleselect | bold italic underline | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",             menubar: false,             setup: function (editor) {                 editor.on('change', function () {                     if (!issubscriberchange) {                         iseditorchange = true;                         value($element.html());                         iseditorchange = false;                     }                 });             }         });         value.subscribe(function (newvalue) {             if (!iseditorchange) {                 issubscriberchange = true;                 $element.html(newvalue);                 issubscriberchange = false;             }         });     }   } } 

on page have som ui.icons, typically:

 <img id="btnmetatoggle" class="ui-icon ui-icon-arrow-4-diag" style="display: inline-block" /> 

however, strange reason "inline: true" option of tinymce-init-function causes hi-icons disturbed placing -moz-force-broken-image-icon above them.

debugging firebug see css file (?) "inline", have no such file guess tinymce-stuff.

does have solution getting rid of these -moz-force-broken-image-icon´s ?

fiddle: http://jsfiddle.net/2xjkc/5/ (haven´t found image file online, icon empty though).


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -

jquery - Keeping Kendo Datepicker in min/max range -