gpt4 book ai didi

javascript - 无法在 Bootstrap 容器中添加所见即所得编辑器

转载 作者:行者123 更新时间:2023-11-28 07:37:14 24 4
gpt4 key购买 nike

我正在尝试为我自己的博客 cms 开发一个管理页面,例如 wp。

但是我无法在我的管理页面中添加所见即所得的编辑器

<div class="box-inner">

<style type="text/javascript"> $('#editor').wysiwyg();</style> /* this is editor */


<div class="box-header well" data-original-title="">
<h2><i class="glyphicon glyphicon-edit"></i> Add Article</h2>

<div class="box-icon">

<a href="#" class="btn btn-minimize btn-round btn-default"><i
class="glyphicon glyphicon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round btn-default"><i
class="glyphicon glyphicon-remove"></i></a>
</div>
</div>

enter image description here

最佳答案

不确定编辑器如何工作,但您的脚本标签已损坏:

<style type="text/javascript"> $('#editor').wysiwyg();</style> /* this is editor */

应该是:

<script type="text/javascript"> 
$('#editor').wysiwyg(); /* this is editor */
</script>

关于javascript - 无法在 Bootstrap 容器中添加所见即所得编辑器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31157383/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com