## 國產editormd by Markdown
* 參考文檔: [http://pandao.github.io/editor.md/](http://pandao.github.io/editor.md/)
>[info] 基本應用
~~~
coreEditor = editormd("content-editormd", {
width: "65%",
height: 540,
syncScrolling: "single",
taskList: true,
tocm: true, // Using [TOCM]
htmlDecode: "style,script,iframe|on*", // 開啟 HTML 標簽解析,為了安全性,默認不開啟
imageUpload: true,
imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
imageUploadURL: "./php/upload.php",
saveHTMLToTextarea: true,
onload: function () {
console.log('onload', this);
//this.fullscreen();
//this.unwatch();
//this.watch().fullscreen();
//this.setMarkdown("#PHP");
//this.width("100%");
//this.height(480);
//this.resize("100%", 640);
},
path: "{{asset('static/editor.lib')}}/"
});
~~~
>[info] 上傳配置
~~~
/**上傳圖片相關配置如下*/
imageUpload: true,
imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"], //圖片上傳格式
imageUploadURL: "path/upload",
onload: function () { //上傳成功之后的回調
}
~~~
>[info] 獲取的md格式和html格式代碼賦值到editor.md中
~~~
testEditor.setMarkdown('hello editor!');
~~~
- 總導航
- 第一章 前端
- 1.0 js自定義模板
- 第二章 PHP
- 1.0 推薦博客
- 2.0 基礎理論
- 0.1 require和include區別
- 0.2 php運行機制
- 0.3 Http請求與響應
- 0.4 http響應狀態
- 3.0 Laravel框架
- 0.1 Eloquent ORM
- 0.2 時間處理
- 0.3 數據遷移
- 0.4 填充數據
- 4.0 composer安裝
- 5.0 緩存
- 0.1 Opcache
- 0.2 Memcache
- 0.3 Redis
- 0.4 Output buffer
- 第三章 MYSQL
- 1.0 新增和重置密碼
- 第四章 前端插件集
- 1.0 PreloadJS
- 0.1 LoadQueue
- 0.2 加載單個文件
- 0.3 加載進度顯示
- 0.4 加載指定目錄圖片
- 0.5 加載json圖片
- 2.0 Swiper
- 3.0 ECharts
- 0.1 簡單實例
- 0.2 title操作
- 0.3 tooltip操作
- 0.4 top顯示數字
- 0.5 雙數據顯示
- 0.6 大數據縮放顯示
- 0.7 綜合
- 4.0 Vue
- 0.1 模板語法
- 0.2 條件與循環
- 0.3 處理用戶輸入
- 0.4 計算屬性
- 0.5 事件綁定
- 0.6 動態渲染列表
- 5.0 layui
- 0.1 動態渲染nav
- 0.2 layer使用
- 6.0 IScroll
- 7.0 AlloyTouch
- 8.0 jquery.tagsinput
- 9.0 Editormd
- 第五章 應用軟件
- 1.0 Xshell
- 一螺集
- PHP
- 打印一天的區間時間
- 友好時間輸出
- 導出Excel
- JAVASCRIPT
- js回車事件