• <i id='fAR85'><tr id='fAR85'><dt id='fAR85'><q id='fAR85'><span id='fAR85'><b id='fAR85'><form id='fAR85'><ins id='fAR85'></ins><ul id='fAR85'></ul><sub id='fAR85'></sub></form><legend id='fAR85'></legend><bdo id='fAR85'><pre id='fAR85'><center id='fAR85'></center></pre></bdo></b><th id='fAR85'></th></span></q></dt></tr></i><div id='fAR85'><tfoot id='fAR85'></tfoot><dl id='fAR85'><fieldset id='fAR85'></fieldset></dl></div>
    <tfoot id='fAR85'></tfoot>
    • <bdo id='fAR85'></bdo><ul id='fAR85'></ul>
  • <small id='fAR85'></small><noframes id='fAR85'>

  • <legend id='fAR85'><style id='fAR85'><dir id='fAR85'><q id='fAR85'></q></dir></style></legend>

        关闭封闭 &lt;p&gt;CKEditor 3.0 中的标签

        时间:2023-07-31
          <tbody id='ykNZL'></tbody>

        1. <i id='ykNZL'><tr id='ykNZL'><dt id='ykNZL'><q id='ykNZL'><span id='ykNZL'><b id='ykNZL'><form id='ykNZL'><ins id='ykNZL'></ins><ul id='ykNZL'></ul><sub id='ykNZL'></sub></form><legend id='ykNZL'></legend><bdo id='ykNZL'><pre id='ykNZL'><center id='ykNZL'></center></pre></bdo></b><th id='ykNZL'></th></span></q></dt></tr></i><div id='ykNZL'><tfoot id='ykNZL'></tfoot><dl id='ykNZL'><fieldset id='ykNZL'></fieldset></dl></div>
            <bdo id='ykNZL'></bdo><ul id='ykNZL'></ul>
            • <small id='ykNZL'></small><noframes id='ykNZL'>

              • <tfoot id='ykNZL'></tfoot>
                <legend id='ykNZL'><style id='ykNZL'><dir id='ykNZL'><q id='ykNZL'></q></dir></style></legend>

                  本文介绍了关闭封闭 &lt;p&gt;CKEditor 3.0 中的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否有可能关闭所有书面内容的自动封闭在<p></p>在 CKEditor 3.x 中?

                  Is there a possibility to turn off the automatic enclosing of all written content within <p></p> in CKEditor 3.x?

                  我试过了

                    CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR;
                  

                  但这只是将内联换行符更改为 <br/>同时离开封闭的段落.

                  but this just changes the inline linebreaks to <br /> while leaving the enclosing paragraph.

                  当前编写测试"会产生此输出

                  Currently writing "Test" produces this output

                  <p>
                      Test</p>
                  

                  但我希望它是简单的

                  Test
                  

                  是否有为此的配置属性,或者是否有其他内联编辑器更适合此?

                  Is there a configuration property for this or would another inline editor to be better suited for this?

                  推荐答案

                  CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR; - 这对我来说非常适合.您是否尝试过清除浏览器缓存 - 这有时是个问题.
                  您也可以使用 jQuery 适配器查看它:

                  CKEDITOR.config.enterMode = CKEDITOR.ENTER_BR; - this works perfectly for me. Have you tried clearing your browser cache - this is an issue sometimes.
                  You can also check it out with the jQuery adapter:

                  <script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script>
                  <script type="text/javascript" src="/js/ckeditor/adapters/jquery.js"></script>
                  <script type="text/javascript">
                  $(function() {
                      $('#your_textarea').ckeditor({
                          toolbar: 'Full',
                          enterMode : CKEDITOR.ENTER_BR,
                          shiftEnterMode: CKEDITOR.ENTER_P
                      });
                  });
                  </script>
                  


                  根据@Tomkay 的评论更新:

                  从 CKEditor 3.6 版开始,您可以配置是否要使用 <p></p> 等标签自动包装内联内容.这是正确的设置:

                  Since version 3.6 of CKEditor you can configure if you want inline content to be automatically wrapped with tags like <p></p>. This is the correct setting:

                  CKEDITOR.config.autoParagraph = false;
                  

                  来源:http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.autoParagraph

                  这篇关于关闭封闭 &lt;p&gt;CKEditor 3.0 中的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:HTML 的 width/height 属性和 img 元素上的 CSS width/height 属性有什么区别? 下一篇:stackoverflow 如何制作其 Tag 输入字段?

                  相关文章

                1. <legend id='6A4eH'><style id='6A4eH'><dir id='6A4eH'><q id='6A4eH'></q></dir></style></legend>
                      <bdo id='6A4eH'></bdo><ul id='6A4eH'></ul>

                  1. <i id='6A4eH'><tr id='6A4eH'><dt id='6A4eH'><q id='6A4eH'><span id='6A4eH'><b id='6A4eH'><form id='6A4eH'><ins id='6A4eH'></ins><ul id='6A4eH'></ul><sub id='6A4eH'></sub></form><legend id='6A4eH'></legend><bdo id='6A4eH'><pre id='6A4eH'><center id='6A4eH'></center></pre></bdo></b><th id='6A4eH'></th></span></q></dt></tr></i><div id='6A4eH'><tfoot id='6A4eH'></tfoot><dl id='6A4eH'><fieldset id='6A4eH'></fieldset></dl></div>

                      <small id='6A4eH'></small><noframes id='6A4eH'>

                      <tfoot id='6A4eH'></tfoot>