Froala wysiwyg-rails,当粘贴到编辑器时,总是删除代码缩进

时间:2017-11-10 02:52:04

标签: ruby-on-rails ruby wysiwyg froala

将任何代码复制到编辑器时

<section class="page-title">
    <div class="container">
      <div class="row">
        <div class="col-md-6 col-sm-7 co-xs-12 text-left">
          <h1><%= t ".title" %></h1>
        </div>
        <div class="col-md-6 col-sm-5 co-xs-12 text-right">
          <div class="bread">
            <ol class="breadcrumb">
              <li><%= link_to t(".home"), root_path %></li>
              <li class="active"><%= t ".title" %></li>
            </ol>
          </div>
        </div>
      </div>
    </div>
  </section>

并在Froala编辑器中显示

<section class="page-title">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-7 co-xs-12 text-left">
<h1><%= t ".title" %></h1>
</div>
<div class="col-md-6 col-sm-5 co-xs-12 text-right">
<div class="bread">
<ol class="breadcrumb">
<li><%= link_to t(".home"), root_path %></li>
<li class="active"><%= t ".title" %></li>
</ol>
</div>
</div>
</div>
</div>
</section>

我试图配置,但它不起作用, 请帮帮我! 即时通讯使用wysiwyg-rails gem for ROR App

0 个答案:

没有答案