layedit富文本编辑器自定义菜单栏按钮效果代码

代码语言:html

所属分类:其他

代码描述:layedit富文本编辑器自定义菜单栏按钮效果代码

代码标签: layedit 富文本 编辑器 自定义 菜单栏 按钮

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/layui/layui.js"></script>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/js/layui/css/layui.css">
</head>

<body>

    <textarea name="content" class="layui-textarea content" id="content" placeholder="请输入描述"></textarea>
 

    <script>
        layui.use(['layedit','form'], function () {
            var form = layui.form
                ,layer = layui.layer
                ,$ = layui.$;
     
            var layedit = layui.layedit;
            layedit.set({
                //暴露layupload参数设置接口 --详细查看layupload参数说明
                uploadImage: {
                    url: '/Attachment/LayUploadFile',
                    accept: 'image',
                    acceptMime: 'image/*',
                    exts: 'jpg|png|gif|bmp|jpeg',
                    size: '10240'
                }
                , uploadVideo: {
                    url: '/Attachment/LayUploadFile',
                    accept: 'video',
                    acceptMime: 'video/*',
                    exts: 'mp4|flv|avi|rm|rmvb',
                    size: '20480'
         .........完整代码请登录后点击上方下载按钮下载查看

网友评论0