Search code examples
asp.net-mvctinymcetinymce-5

TinyMCE 5.7.0 - Cannot read property 'isTouch' of undefined


I have a project based on ASP.NET MVC. After upgrading to the latest version of TinyMCE from version 4, I get an error message on one is cshtml where it is used: enter image description here

In version 4, the modern theme was used, which replaced the silver theme. However, TinyMCE is initializing from Shared cshtml, could there be a problem? Can you please point me in the right direction? Because I don't have any problem on other cshtml where initialize TinyMCE without shared cshtml.


Solution

  • When I commented:

    <script src="~/Content/tinymce4/skins/lightgray/imagetools-created.js"></script>
    <script src="~/Content/tinymce4/skins/lightgray/imagetools-theme.js"></script>
    <link href="~/Content/tinymce4/skins/lightgray/imagetools-created.css" rel="stylesheet" />
    

    then TinyMCE started working correctly.