extjs 怎么整合百度编辑器(ueditor)
extjs吧
全部回复
仅看楼主
level 5
extjs 怎么整合百度编辑器啊
2013年06月28日 06点06分 1
level 5
{ cls: 'x-plain', title: '内容', height: 350, layout: 'fit', items: { xtype: 'htmleditor', name: 'uiinfo', fieldLabel: '内容', } }
2013年06月28日 07点06分 2
这个编辑器太简陋了,需要 http://ueditor.baidu.com/website/ 怎么整合?
2013年06月28日 07点06分
level 5
2013年06月29日 02点06分 3
level 1
我遇到同样的问题,楼主解决了没有啊
2014年02月12日 02点02分 4
level 3
哈哈,我干过。
2014年02月13日 16点02分 5
level 3
可以考虑在弹出的window里放一个页面,提交的时候在触发window的关闭
2014年02月13日 16点02分 6
level 1
同求
2014年02月15日 03点02分 7
level 1
不写其他的,就html:<div id='ueditor'></div>然后在ueditor中配置指定id是这个
2014年02月17日 14点02分 8
这样写应该是不行的,你加的div是没有办法按照要求正常整合进去的
2014年02月28日 11点02分
回复 ro1992613 :[委屈]我都是这样做了个项目了~你看看他官方的例子就是这样做的
2014年02月28日 14点02分
回复 superchair :例子里面不都是它自带的编辑器。而且它的整个页面一般都是js代码控制的?
2014年02月28日 15点02分
level 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>编辑</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" charset="utf-8" src="../../lib/ueditor1_4_3-utf8-php/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="../../lib/ueditor1_4_3-utf8-php/ueditor.all.min.js"> </script>
</head>
<?php
session_start();
if(isset($_REQUEST['id'])){
$id = $_REQUEST['id'];
}
else{
echo "ID 木有定义!";
exit;
}
include(dirname(__FILE__)."/../../config/connect.php");
if(isset($_REQUEST['cmd']) and $_REQUEST['cmd'] == 'submit'){
$myContent = htm
lsp
ecialchars($_REQUEST['myContent']);
$row_num = $db->query("
UPDATE
mall_goods_list
SET
html_content = '$myContent'
WHERE
id = '$id'
");
if(!$row_num){
echo "保存失败!<br><br>";
}
else{
echo "保存成功!<br><br>";
}
echo '<a href="mall_edit_goods.php?id='.$id.'" target="_self">返回上一页</a>';
}
else{
$html_content = $db->get_var("SELECT html_content FROM mall_goods_list WHERE id = '$id'");
$html_content = htmlspecialchars_decode($html_content);
echo '
<body>
<form method="post" action="mall_edit_goods.php?cmd=submit&id='.$id.'">
<span style="color:#ff0000;"><TEXTAREA id=myContent name="myContent">'.$html_content.'</TEXTAREA></span>
<span style="color:#ff0000;">
<SCRIPT type=text/javascript>
var editor = new UE.ui.Editor();
UE.getEditor("myContent");
UE.getEditor("myContent").addListener("selectionChange?cmd=",function(){
var editorValue = UE.getEditor("myContent").getContent();
window.parent.getEditorValue(editorValue);
});
</SCRIPT>
</span>
<button type="submit" value="提交">提交</button>
</form>
</body>
';
}
?>
2014年06月20日 23点06分 10
level 1
Ext.create('Ext.window.Window', {
id : 'win_goods_spec',
width : 790,
height : 400,
title : "编辑详情:" + goods_name,
html : '<iframe style="overfolw:auto;width:100%; height:100%;" src="mall_edit_goods.php?id='+goods_id+'" frameborder="0"></iframe>',
modal : true
}).show();
2014年06月20日 23点06分 11
1