Php NicEditor不工作引用错误:bkLib
我的编辑有问题。如果我使用一个简单的html页面,如下所示: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>
<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;