<link href=\"/static/public/layui/css/layui.css\" rel=\"stylesheet\"><textarea class=\"layui-textarea\" id=\"LAY_demo1\" name=\"dynamic_content\" style=\"display: none\"> </textarea>
<script>layui.use(\'layedit\', function(){var layedit = layui.layedit,$ = layui.jquery;layui.layedit.set({uploadImage: {url: \"{:url(\'Common/doUploadPic\')}\" //接口url,type: \'post\' //默认post}});//构建一个默认的编辑器var index = layedit.build(\'LAY_demo1\');//编辑器外部操作var active = {content: function(){alert(layedit.getContent(index)); //获取编辑器内容},text: function(){alert(layedit.getText(index)); //获取编辑器纯文本内容},selection: function(){alert(layedit.getSelection(index));}};$(\'.site-demo-layedit\').on(\'click\', function(){var type = $(this).data(\'type\');active[type] ? active[type].call(this) : \'\';});//自定义工具栏layedit.build(\'LAY_demo2\', {tool: [\'face\', \'link\', \'unlink\', \'|\', \'left\', \'center\', \'right\'],height: 100})});</script>