   // Set CodeMirror cursor and bookmark to same position as cursor was in TinyMCE:
            var html = editor.getContent({source_view: true});

            // [FIX] #6 z-index issue with table panel and source code dialog
            //	editor.selection.getBookmark();

            html = html.replace(/<span\s+style="display: none;"\s+class="CmCaReT"([^>]*)>([^<]*)<\/span>/gm, String.fromCharCode(chr));
            editor.dom.remove(editor.dom.select('.CmCaReT'));

            // Hide TinyMCE toolbar pan