- 论坛徽章:
- 0
|
用普通js调用的方法很简单:在相应的模板问文件中加入
{% block myeditor %}
<!-- fckeditor -->
<script type="text/javascript" src="/mymedia/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var sBasePath = "/mymedia/fckeditor/" ;
var oFCKeditor = new FCKeditor( 'gcontent','800','200','MyBasic','') ;
//var FCKeditor = function( instanceName, width, height, toolbarSet, value )
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
</script>
<!-- fckeditor -->
{% endblock %}
相应的路径照着改就行了,不知道那个针对python的方法怎么用?那位高人指点下? |
|