1

文本编辑器没有加载,我不知道为什么。我有一个coldfusion页面,我在该部分下将其包含如下(请不要我在会话中工作)。

<cfoutput>
             <script type="text/javascript" src="#rootUrl#/#myPath#/tests/user/tinymce_4.0.8/tinymce/js/tinymce/tinymce.min.js"></script> 


</cfoutput>

在此之下,我定义了包含 CSS 的样式:

<cfoutput>


<style>     

                @import url('#rootUrl#/#myPath#/css/first.css');
                @import url('#rootUrl#/#myPath#/css/second.css');
                @import url('#rootUrl#/#myPath#/css/third.css');

            </style>    


</cfoutput>

在这段代码下面,我定义了要启动的代码,可以在这里找到(在查看源代码下):

http://www.tinymce.com/tryit/full.php

<script type="text/javascript">

    tinymce.init({
    selector: "textarea",
    convert_urls: false,
    theme: "modern",
    plugins: [
        "advlist autolink lists link image charmap print preview hr anchor pagebreak",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "emoticons template paste textcolor"
    ],
    toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
    toolbar2: "print preview media | forecolor backcolor emoticons",
    image_advtab: true,
    templates: [
        {title: 'Test template 1', content: 'Test 1'},
        {title: 'Test template 2', content: 'Test 2'}
    ]
   });
  </script>

我收到以下错误,你能告诉我为什么会这样吗?

NetworkError: 404 Not Found - http://abc.xyz.com/Public/tests/user/tinymce_4.0.8/tinymce/js/tinymce/tinymce.min.js


ReferenceError: tinymce is not defined


tinymce.init({

请让我知道出了什么问题。

PS:我已经测试了编辑器,如果我只是创建一个简单的 HTML 页面甚至 cfm 页面并执行上述操作(不包括 rootURL 定义步骤),它就可以正常工作

4

1 回答 1

1

尝试在您的地址中输入“ http://abc.xyz.com/Public/tests/user/tinymce_4.0.8/tinymce/js/tinymce/tinymce.min.js ”(将 abc.xyz.com 更改为实际域)栏并查看脚本是否打印在您的浏览器中

于 2013-10-30T23:39:30.650 回答