css - 将 froala 所见即所得的文本区域更改为笔记本

标签 css froala

我正在尝试将 froala 所见即所得编辑器的背景图像更改为看起来像笔记本,

但它根本没有改变任何东西...有人可以帮我修复它并告诉我如何修复吗?

这就是我正在做的:

<style type="text/css">

textarea.notebook {
      font-family: 'Open Sans', Arial, Helvetica, sans-serif;
      font-weight: 700;
      width: 100%;
      padding: 5px 0px;
      margin-bottom: 20px;
      resize: vertical;
      font-size: 11px;
      line-height: 24px;
      border-bottom: 2px solid;
       -webkit-appearance: none;
      border-radius: 0;
      background: url(notebook.png);
}


</style>

<section id="editor">

    <form>
      <textarea  id="edit"  name="edit" class="notebook"  style="margin-top: 30px;">

  </textarea>


    </form>

  </section>

最佳答案

一种可能的方法是为 froala 编辑器创建自定义主题,请参阅:

http://editor.froala.com/examples/color-themes

我怀疑如果可以修改背景颜色,也可以添加背景图片。

关于css - 将 froala 所见即所得的文本区域更改为笔记本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26180579/

相关文章:

javascript - 如何从 froala 编辑器中获取文本数据?

css - Froala Font Awesome 工具栏图标显示为正方形

html - h1 和 h3 标签上的文本缩进,我无法将其删除

javascript - 更改类 :hover background-color with js

css - 响应式网页设计和高分辨率显示 (iPhone 4/5)

asp.net - 针对不同屏幕调整图像大小

jquery - 根据屏幕大小禁用 jQuery

javascript - 如何从现有网站嗅探 div 上的 css 以将内联 css 添加到该 div?

angular - Froala Angular 文本编辑器 (v3) - 在输入更改时销毁并重新初始化

javascript - ajax 响应并在 Codeigniter 中提供良好链接后,如何在 Froala 编辑器中显示图像?