lightweight清爽简洁的编辑器

lightweight清爽简洁的编辑器

这是一款经过ace主题切换过的编辑器,比起官方的编辑器要好看的多,主要缺点是引入文件有点多,若放在管理员后台无所谓了

淘建站为您提供更多_其它特效_编辑器_编辑器_ace,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 248 次

打赏作者

觉得不错,可打赏下作者

下载资源

免费共享

特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。
分类:其它特效 > 编辑器 难易程度:中级

HTML

首先我们在页面上放置#editor1,用来生成编辑器

<div class="wysiwyg-editor" id="editor1"></div>

调用ace编辑器:

$('#editor1').ace_wysiwyg({
    toolbar: ['font', null, 'fontSize', null, {
        name: 'bold',
        className: 'btn-info'
    },
    {
        name: 'italic',
        className: 'btn-info'
    },
    {
        name: 'strikethrough',
        className: 'btn-info'
    },
    {
        name: 'underline',
        className: 'btn-info'
    },
    null, {
        name: 'insertunorderedlist',
        className: 'btn-success'
    },
    {
        name: 'insertorderedlist',
        className: 'btn-success'
    },
    {
        name: 'outdent',
        className: 'btn-purple'
    },
    {
        name: 'indent',
        className: 'btn-purple'
    },
    null, {
        name: 'justifyleft',
        className: 'btn-primary'
    },
    {
        name: 'justifycenter',
        className: 'btn-primary'
    },
    {
        name: 'justifyright',
        className: 'btn-primary'
    },
    {
        name: 'justifyfull',
        className: 'btn-inverse'
    },
    null, {
        name: 'createLink',
        className: 'btn-pink'
    },
    {
        name: 'unlink',
        className: 'btn-pink'
    },
    null, {
        name: 'insertImage',
        className: 'btn-success'
    },
    null, 'foreColor', null, {
        name: 'undo',
        className: 'btn-grey'
    },
    {
        name: 'redo',
        className: 'btn-grey'
    }],
    'wysiwyg': {
        fileUploadError: showErrorAlert
    }
}).prev().addClass('wysiwyg-style2');

默认效果

$('#editor1').ace_wysiwyg();

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/216.html
lightweight清爽简洁的编辑器 希望对你有帮助,感谢您的支持!
  • Bootstrap手机端弹出隐藏的侧栏菜单

    Bootstrap手机端弹出隐藏的侧栏菜单

  • Bootstrap左侧下拉三级菜单导航

    Bootstrap左侧下拉三级菜单导航

  • bootstrap-treeview.js多级下拉树菜单

    bootstrap-treeview.js多级下拉树菜单

  • notebook双击文字更改样式插件

    notebook双击文字更改样式插件

  • Custombox+bootstrap演示20种不同的手机响应式弹出层modal特效

    Custombox+bootstrap演示20种不同的手机响应式弹出层modal特效

  • editableSelect可编辑搜索的下拉框插件

    editableSelect可编辑搜索的下拉框插件

  • ClockPicker+bootstrap圆形时钟插件

    ClockPicker+bootstrap圆形时钟插件

  • Bootstrap手机响应式下拉框

    Bootstrap手机响应式下拉框

  • ace精美的树菜单插件

    ace精美的树菜单插件

  • bootstrap加入购物车jQuery特效

    bootstrap加入购物车jQuery特效

  • bootstrap底部弹出产品对比

    bootstrap底部弹出产品对比

  • bootstrap响应式穿梭框特效

    bootstrap响应式穿梭框特效

  • 留言(0)
    头像
     阿里云限量代金券,戳我领取
    1 2