Asp.net TinyMCE editor is not showing up online windows server but it works on localhost

前端 未结 1 949
余生分开走
余生分开走 2021-01-29 09:32

TinyMCE editor is not showing up after publishing. Though, it works on localhost. Here\'s what I see:

相关标签:
1条回答
  • 2021-01-29 09:47

    You need to provide baseURL to tinyMCE before initialising it. You can do that right before tinymce.init({...}). Often, it works on localhost without this but on server it is not able to find the tinymce root directory.

    According to TinyMCE Docs,

    "property: baseURL, type: String, Description: Base URL where the root directory of TinyMCE is located."

    Example:

    tinyMCE.baseURL = "PATH/TO/tinymce/directory/";
    
    tinyMCE.init({
        theme : "simple",
        ...
    });
    
    0 讨论(0)
提交回复
热议问题