在jsp頁面使用富文字編輯器

2021-10-01 19:04:54 字數 682 閱讀 7068

工具:myeclipse

(1)

(2)

解壓縮檔案,並把資料夾名改為ueditor

ueditor\jsp\lib路徑下有commons-codec-1.9.jar、commons-fileupload-1.3.1.jar、commons-io-2.4.jar、json.jar、ueditor-1.1.2.jar五個jar包

(3)

把整個ueditor資料夾複製到工程webroot下;

把ueditor\jsp\lib資料夾下的五個jar包複製到webroot—>web-inf—>lib資料夾下

(4)

在jsp檔案中先引入ueditor.config.js、ueditor.all.js檔案

//配置檔案// 編輯器原始碼檔案
(5)

在jsp頁面下新增載入編輯器的容器

內容:

(6)

在jsp頁面中載入編輯器

//一定到新增在body閉合標籤之前

頁面富文字編輯器

頁面上引入 新增乙個script標籤 var ue ue.geteditor editor 清空 ue.geteditor editor setcontent false 獲取值 info.votecontent common.htmldecode ue.geteditor editor getco...

富文字編輯器

關於使用富文字編輯器的一些小坑 官網 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 是否允許瀏覽伺服器已上傳...