Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/398.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php NicEditor不工作引用错误:bkLib_Php_Javascript_Jquery_Ajax_Load - Fatal编程技术网

Php NicEditor不工作引用错误:bkLib

Php NicEditor不工作引用错误:bkLib,php,javascript,jquery,ajax,load,Php,Javascript,Jquery,Ajax,Load,我的编辑有问题。如果我使用一个简单的html页面,如下所示: <html> <head> <script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script> <script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>

我的编辑有问题。如果我使用一个简单的html页面,如下所示:

<html>
<head>
<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>
</head>
<body>
<textarea></textarea>
</body>
</html>
我试图在index.php中包含NicEditor脚本,但似乎message.detail.php的
没有转换为NicEditor。我还试图在message.detail.php中包含NicEditor脚本,但它给出了一个错误“uncaughtreferenceerror:bkLib未定义”

消息详细信息页面

<script src="http://js.nicedit.com/nicEdit-latest.js" type="text/javascript"></script>
<script type="text/javascript">bkLib.onDomLoaded(nicEditors.allTextAreas);</script>

<div class="span9 pull-right">
    <div class="hero-unit">
        <textarea></textarea>
    </div>
</div>

bkLib.ondomload(nicEditors.allTextAreas);

我希望您理解我的意思。

加载文本区域后,尝试重新初始化NicEditor,例如:

$('table#messages tr td a').click(function(){
//Content Manipulation
var page = $(this).attr('href');
page = page.replace('#','');
$('#content').load('message.details.php?messageid='+page);

// Set new textareas to use NicEditor
bkLib.onDomLoaded(nicEditors.allTextAreas);

return false;
}))

$('table#messages tr td a').click(function(){
//Content Manipulation
var page = $(this).attr('href');
page = page.replace('#','');
$('#content').load('message.details.php?messageid='+page);

// Set new textareas to use NicEditor
bkLib.onDomLoaded(nicEditors.allTextAreas);

return false;