quill富文本编辑器实现一个表格编辑操作效果代码
代码语言:html
所属分类:其他
代码描述:quill富文本编辑器实现一个表格编辑操作效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/quill.bubble.css"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/quill.snow.css"> <style> body { padding: 25px; } #bubble-container, #snow-container { height: 300px; margin-bottom: 10px; } .container { display: flex; } .panel { flex: 1; margin-left: 25px; margin-right: 25px; } </style> </head> <body> <div class="container"> <div class="panel"> <div id="snow-container"></div> <div> <button id="insert-table">Insert Table</button> <button id="insert-row-above">Insert Row Above</button> <button id="insert-row-below">Insert Row Below</button> <button id="insert-column-left">Insert Column Left</button> <button id="insert-column-right">Insert Column Right</button> <button id="delete-row">Delete Row</button> <button id="delete-column">Delete Column</button> <button id="delete-table">Delete Table</button> </div> </div> <div class="panel"> <div id="bubble-container"></div> </div> <div class="panel"> <div id="output-container"></div> </div> </div> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/quill.js"></script> <script> var bubble = new Quill('#bubble-container', { theme: 'bubble', modules: { table: true } }); var snow = new Quill('#snow-container', { theme: 'snow&.........完整代码请登录后点击上方下载按钮下载查看
网友评论0