简体   繁体   English

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

[英]Unable to add wysiwyg editor in Bootstrap container

I am trying to develop a admin page for my own blog cms like wp. 我正在尝试为自己的博客cms(例如wp)开发一个管理页面。

however i am unable to add wysiwyg editor in my admin page 但是我无法在我的管理页面中添加所见即所得编辑器

<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>

在此处输入图片说明

Not sure how the editor works, but your script-tag is corrupt: 不确定编辑器的工作方式,但脚本标记已损坏:

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

Should be: 应该:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM