Tinymce - Responsive file manager: Undefined error "defaultView" in jQ version 1.6

Asked

Viewed 126 times

1

When I try to insert a file it does not open the file management window and gives the error: Uncaught Typeerror: Cannot read Property 'defaultView' of Undefined

inserir a descrição da imagem aqui

I tried running with jquery 2.1.4 but no longer accepts inside noConflict()

structure uses:

<script src="application/modules/documentos/js/jquery-1.6.js" type="text/javascript"></script>

page:

<script src="application/modules/documentos/js/jquery-2.1.4.min.js" type="text/javascript"></script>
<script src="application/modules/documentos/js/tinymce.min.js" type="text/javascript"></script> 
<script type="text/javascript">

    $(function () {

        $v2 = $.noConflict(true);           

    })
 ...
(function ($) {

   tinymce.execCommand("mceRemoveEditor", true, 'doc-corpo');
            tinymce.init({
                selector: ".doc-tinymce",
                theme: "modern",
                language: "pt_BR",            
                entity_encoding: "raw",
                plugins: [
                "advlist autolink autoresize link image lists charmap print preview hr anchor pagebreak spellchecker",
                "searchreplace wordcount visualblocks visualchars code insertdatetime media nonbreaking",
                "save table contextmenu directionality emoticons template paste textcolor responsivefilemanager"
                ],
                external_filemanager_path:"application/modules/documentos/js/tinymce/plugins/responsivefilemanager/filemanager/",
                filemanager_title:"Gerenciador de arquivos" ,
                external_plugins: { "filemanager" : "plugins/responsivefilemanager/filemanager/plugin.min.js"},
                relative_urls: false,
                remove_script_host: false,
                autoresize_min_height: 0,
                autoresize_max_height: 3000,
                toolbar: "undo redo styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | forecolor backcolor | hr link image | insertdatetime emoticons responsivefilemanager |"


            });


}($v2));

</script>
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.