富文字編輯器

2022-05-27 07:09:11 字數 677 閱讀 8556

官方文件:

link rel="stylesheet" type="text/css" href="[style path]/simditor.css" />
注意

simditor基於jquery和module.js。

hotkeys.js用於繫結熱鍵。

uploader.js與上傳檔案有關。如果您不需要上傳功能,則不需要匯入此檔案。

在您的專案中使用simditor

要使用simditor,首先,你需要乙個textarea像這樣的元素:

初始化simditor:

var editor = new simditor();

// 初始化simditor的函式

$(function() );

// 加到window上去,其他地方才能訪問到editor這個變數

window.editor = editor;

});// 新增文章的執行函式

$(function()

});var content_html = editor.getvalue();

var data = ;

// 通過ajax發布到伺服器

myajax.post(else

},'error': function(err)

});});

富文字編輯器

關於使用富文字編輯器的一些小坑 官網 1.專案 片 editor fail function xhr,editor,result custominsert function insertimg,result,editor this.editor.create this.editor.txt.html...

富文字編輯器

富文字編輯器,rich text editor,簡稱 rte,它提供類似於 microsoft word 的編輯功能。常用的富文字編輯器 kindeditor ueditor ckeditor 在頁面中新增js 用於初始化kindeditorallowfilemanager 是否允許瀏覽伺服器已上傳...

富文字編輯器

富文字編輯器,rich text editor,簡稱 rte,它提供類似於 microsoft word 的編輯功能。常用的富文字編輯器 kindeditor ueditor ckeditor 在頁面中新增js 用於初始化kindeditor allowfilemanager 是否允許瀏覽伺服器已上...