富文本編輯器功能示例
參數(shù)
dir [str] :富文本編輯器上傳文件路徑
host [str]: 默認(rèn)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="utf-8">
<title>Ueditor 編輯器調(diào)用示例</title><!-- 注意 dir 參數(shù)為 "upload/" 下面的一個(gè)目錄名 -->
<script src="{{ kg['server']['HTTP_HOST'] }}/tools/ueditor/ueditor.config.js?dir=other&host={{ kg['server']['HTTP_HOST'] }}"></script>
<script src="{{ kg['server']['HTTP_HOST'] }}/tools/ueditor/ueditor.all.js"></script>
</head>
<body>
<form action="environ" method="post" target="_blank">
<textarea id="KgcmsEditor" name="KgcmsEditor" style="width:{{ kg['globals']['editor_size'][0] }}px; height:{{ kg['globals']['editor_size'][1] }}px;">{{ data['content'] }}</textarea>
<script>
UE.getEditor('KgcmsEditor')
</script>
<br />
<input type="submit" value="提交數(shù)據(jù)" style="padding:5px 15px;" />
</form>
</body>
</html>
適應(yīng)版本
v1.0.1