diff --git a/app/Gdoo/StiReport/Controllers/StiReportController.php b/app/Gdoo/StiReport/Controllers/StiReportController.php index 7479cf33..144afbfd 100644 --- a/app/Gdoo/StiReport/Controllers/StiReportController.php +++ b/app/Gdoo/StiReport/Controllers/StiReportController.php @@ -29,11 +29,6 @@ class StiReportController extends DefaultController return $this->render(); } - public function render() - { - return $this->render(); - } - public function saveReport() { $gets = Request::all(); diff --git a/app/Gdoo/System/views/media/qrcode.blade.php b/app/Gdoo/System/views/media/qrcode.blade.php index 487e9804..b276314d 100644 --- a/app/Gdoo/System/views/media/qrcode.blade.php +++ b/app/Gdoo/System/views/media/qrcode.blade.php @@ -4,7 +4,8 @@ {{$setting['title']}} - + + - - - - - - - - - -
编辑层叠样式表   不需要填写<style>标签
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/data_fetch.html b/public/assets/vendor/ueditor/dialogs/workflow/data_fetch.html deleted file mode 100644 index 71848421..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/data_fetch.html +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - -
控件名称 * 数据来源
- - - -
添加映射关系
- -

- - - - - - - - - - - - -
数据库字段 字段名称 映射控件名称 操作
- -
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/data_select.html b/public/assets/vendor/ueditor/dialogs/workflow/data_select.html deleted file mode 100644 index b52adfab..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/data_select.html +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
控件名称 * 数据来源 数据选取方式
- - - - - - -
添加映射关系
- -

- - - - - - - - - - - - - -
数据库字段 字段名称 映射控件名称 作为查询字段 操作
- -
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc1.jpg b/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc1.jpg deleted file mode 100644 index 63ffa2ff..00000000 Binary files a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc1.jpg and /dev/null differ diff --git a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc2.jpg b/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc2.jpg deleted file mode 100644 index 7a486532..00000000 Binary files a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc2.jpg and /dev/null differ diff --git a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc3.jpg b/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc3.jpg deleted file mode 100644 index 2431b493..00000000 Binary files a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc3.jpg and /dev/null differ diff --git a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc4.jpg b/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc4.jpg deleted file mode 100644 index deefc465..00000000 Binary files a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc4.jpg and /dev/null differ diff --git a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc5.jpg b/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc5.jpg deleted file mode 100644 index 893798ce..00000000 Binary files a/public/assets/vendor/ueditor/dialogs/workflow/helper/calc/calc5.jpg and /dev/null differ diff --git a/public/assets/vendor/ueditor/dialogs/workflow/helper/calendar/calendar.jpg b/public/assets/vendor/ueditor/dialogs/workflow/helper/calendar/calendar.jpg deleted file mode 100644 index 966ec1a6..00000000 Binary files a/public/assets/vendor/ueditor/dialogs/workflow/helper/calendar/calendar.jpg and /dev/null differ diff --git a/public/assets/vendor/ueditor/dialogs/workflow/helper/listview/control_attr.jpg b/public/assets/vendor/ueditor/dialogs/workflow/helper/listview/control_attr.jpg deleted file mode 100644 index 7d51c48c..00000000 Binary files a/public/assets/vendor/ueditor/dialogs/workflow/helper/listview/control_attr.jpg and /dev/null differ diff --git a/public/assets/vendor/ueditor/dialogs/workflow/imgupload.html b/public/assets/vendor/ueditor/dialogs/workflow/imgupload.html deleted file mode 100644 index 7da2ef92..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/imgupload.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - 图片上传控件 - - - - - - - -
- -
- -
- - -
- -
- - -
- -
-
-
- -
px
-
-
- -
-
-
- -
px
-
-
- -
-
- -
-
- - - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/jsext.html b/public/assets/vendor/ueditor/dialogs/workflow/jsext.html deleted file mode 100644 index 438b6bd5..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/jsext.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - -
编辑Javascript代码   不需要填写<script>标签
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/listmenu.html b/public/assets/vendor/ueditor/dialogs/workflow/listmenu.html deleted file mode 100644 index 60e8b0ca..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/listmenu.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - 下拉菜单属性 - - - - - - - - -
- -
- -
- - -
- -
- -
-
-
-
- -
px
-
-
-
-
-
- -
-
-
-
-
- -
- -
-
- -
- - -
- - - -
-
- - - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/listmenu.js b/public/assets/vendor/ueditor/dialogs/workflow/listmenu.js deleted file mode 100644 index b3c7a255..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/listmenu.js +++ /dev/null @@ -1,130 +0,0 @@ - -function fnSelect(combo) { - var iIndex = combo.selectedIndex ; - oListText.selectedIndex = iIndex ; - var olistText = document.getElementById( "listText" ) ; - olistText.value = oListText.value ; -} - -function fnAdd() { - var olistText = document.getElementById( "listText" ) ; - fnAddComboOption( oListText, olistText.value, olistText.value ) ; - oListText.selectedIndex = oListText.options.length - 1 ; - olistText.value = '' ; - olistText.focus() ; -} - -function fnModify() { - var iIndex = oListText.selectedIndex ; - if ( iIndex < 0 ) return ; - var olistText = document.getElementById( "listText" ) ; - oListText.options[ iIndex ].innerHTML = fnHTMLEncode( olistText.value ) ; - oListText.options[ iIndex ].value = olistText.value ; - olistText.value = '' ; - olistText.focus() ; -} - -function fnMove(steps) { - fnChangeOptionPosition(oListText,steps); -} - -function fnDelete() { - fnRemoveSelectedOptions(oListText); -} - -function fnSetSelectedValue() { - var iIndex = oListText.selectedIndex; - if (iIndex < 0) return; - var olistText = document.getElementById("listSelValue"); - olistText.innerHTML = oListText.options[iIndex].value; -} - -// Moves the selected option by a number of steps (also negative) -function fnChangeOptionPosition(combo, steps) { - var iActualIndex = combo.selectedIndex; - if (iActualIndex < 0) { - return ; - } - var iFinalIndex = iActualIndex + steps; - if (iFinalIndex < 0) { - iFinalIndex = 0; - } - if (iFinalIndex > (combo.options.length - 1)) { - iFinalIndex = combo.options.length - 1; - } - if (iActualIndex == iFinalIndex) { - return ; - } - var oOption = combo.options[ iActualIndex]; - if(oOption.value=="") { - var sText = fnHTMLDecode(oOption.value); - } else { - var sText = fnHTMLDecode(oOption.innerHTML); - } - combo.remove(iActualIndex); - oOption = fnAddComboOption(combo, sText, sText, null, iFinalIndex); - oOption.selected = true ; -} - -// Remove all selected options from a SELECT object -function fnRemoveSelectedOptions(combo) { - // Save the selected index - var iSelectedIndex = combo.selectedIndex ; - var oOptions = combo.options ; - // Remove all selected options - for (var i = oOptions.length - 1; i >= 0; i--) { - if (oOptions[i].selected) combo.remove(i) ; - } - - // Reset the selection based on the original selected index - if (combo.options.length > 0) { - if (iSelectedIndex >= combo.options.length) iSelectedIndex = combo.options.length - 1; - combo.selectedIndex = iSelectedIndex; - } -} - -// Add a new option to a SELECT object (combo or list) -function fnAddComboOption(combo, optionText, optionValue, documentObject, index) { - var oOption; - if (documentObject) { - oOption = documentObject.createElement("option"); - } else { - oOption = document.createElement("option"); - } - if (index != null) { - combo.options.add(oOption, index); - } else { - combo.options.add(oOption); - } - oOption.innerHTML = optionText.length > 0 ? fnHTMLEncode(optionText) : ' '; - oOption.value = optionValue; - return oOption ; -} - -function fnHTMLEncode(text) { - if (!text) { - return ''; - } - text = text.replace(/&/g, '&'); - text = text.replace(//g, '>'); - return text ; -} - -function fnHTMLDecode(text) { - if (!text) { - return '' ; - } - text = text.replace(/>/g, '>'); - text = text.replace(/</g, '<'); - text = text.replace(/&/g, '&'); - return text ; -} - -function fnSetAttribute(element, attName, attValue) { - if (attValue == null || attValue.length == 0) { - element.removeAttribute(attName, 0); - } else { - element.setAttribute(attName, attValue, 0); - }// 0 : Case Insensitive -} diff --git a/public/assets/vendor/ueditor/dialogs/workflow/listview.html b/public/assets/vendor/ueditor/dialogs/workflow/listview.html deleted file mode 100644 index 7a2a7021..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/listview.html +++ /dev/null @@ -1,760 +0,0 @@ - - - - - - - - - - - - -
-
- -
-
-
- - -
-
- -
-
- - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
序号表头宽度合计 数据类型
1 - - - -
2 - -
3 - -
4 - -
5 - -
6 - -
7 - -
8 - -
9 - -
10 - -
11 - -
12 - -
13 - -
14 - -
15 - -
- -
- -
- - - -
- - - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/macro.html b/public/assets/vendor/ueditor/dialogs/workflow/macro.html deleted file mode 100644 index e5429188..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/macro.html +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
宏标记及说明操作
#[表单] -
#[文号] -
#[文号计数器] -
#[时间] -
#[流水号] -
-
-
- #[会签意见 ] - -
-
-
-
-
-
- #[附件] -
-
-
-
-
-
- #[超时] -
-
-
-
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/progressbar.html b/public/assets/vendor/ueditor/dialogs/workflow/progressbar.html deleted file mode 100644 index 6db7d564..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/progressbar.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - 进度条属性 - - - - - - - - - - - - - - - - - - - - - -
控件名称*跨度
- - - % -
进度条样式
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -

进度条使用CSS3渐变/过渡/动画以实现所有效果。IE7到IE9,以及某些老版本的Firefox还不能完全支持这些特性。目前,Opera和IE还不支持动画效果。

-
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/qrcode.html b/public/assets/vendor/ueditor/dialogs/workflow/qrcode.html deleted file mode 100644 index dbd2fa51..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/qrcode.html +++ /dev/null @@ -1,439 +0,0 @@ - - - - - 二维码控件 - - - - - - - - - -
- -
- -
- - -
- -
- -
- - - - - -
- -
- -
- -

推荐140字以内,手机摄像头更容易辨识。

-
-
- -
- - -
- -
- -
- -
-
- -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-
- - -
-
- -
-
- - -
-
- - -
-
- - -
-
- -
- -
- -
- -
-
-
- -

二维码尺寸

-
-
-
-
-
-
二维码尺寸
- - - -
-
-
-
- - - - - - - - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/radio.html b/public/assets/vendor/ueditor/dialogs/workflow/radio.html deleted file mode 100644 index 6eb67d84..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/radio.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - 单选框属性 - - - - - - - -
- -
- -
- - -
- -
- -
-
- -
- - -
- -
- - 新增 - 修改 - - 上移 - 下移 - 默认 - 删除 -
- -
-
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/radio.js b/public/assets/vendor/ueditor/dialogs/workflow/radio.js deleted file mode 100644 index 1b2badf2..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/radio.js +++ /dev/null @@ -1,135 +0,0 @@ - -function fnSelect( combo ) { - var iIndex = combo.selectedIndex ; - oListText.selectedIndex = iIndex ; - var oTxtText = document.getElementById( "txtText" ) ; - oTxtText.value = oListText.value ; -} - -function fnAdd() { - var oTxtText = document.getElementById( "txtText" ) ; - if( oTxtText.value!=""){ - fnAddComboOption( oListText, oTxtText.value, oTxtText.value ) ; - } - oListText.selectedIndex = oListText.options.length - 1 ; - oTxtText.value = '' ; - oTxtText.focus() ; -} - -function fnModify() { - var iIndex = oListText.selectedIndex ; - if ( iIndex < 0 ) return ; - var oTxtText = document.getElementById( "txtText" ) ; - oListText.options[ iIndex ].innerHTML = fnHTMLEncode( oTxtText.value ) ; - oListText.options[ iIndex ].value = oTxtText.value ; - oTxtText.value = '' ; - oTxtText.focus() ; -} - -function fnMove( steps ) { - fnChangeOptionPosition( oListText, steps ) ; -} - -function fnDelete() { - fnRemoveSelectedOptions( oListText ) ; -} - -function fnSetSelectedValue() { - var iIndex = oListText.selectedIndex ; - if ( iIndex < 0 ) return ; - var oTxtText = document.getElementById( "txtSelValue" ) ; - oTxtText.innerHTML = oListText.options[ iIndex ].value ; -} - -// Moves the selected option by a number of steps (also negative) -function ChangeOptionPosition( combo, steps ) { - var iActualIndex = combo.selectedIndex ; - if ( iActualIndex < 0 ){ - return ; - } - var iFinalIndex = iActualIndex + steps ; - if ( iFinalIndex < 0 ) { - iFinalIndex = 0 ; - } - - if ( iFinalIndex > ( combo.options.length - 1 ) ) { - iFinalIndex = combo.options.length - 1 ; - } - - if ( iActualIndex == iFinalIndex ) { - return ; - } - - var oOption = combo.options[ iActualIndex ] ; - var sText = fnHTMLDecode( oOption.innerHTML ) ; - - combo.remove( iActualIndex ) ; - - oOption = fnAddComboOption( combo, sText, sText, null, iFinalIndex ) ; - - oOption.selected = true ; -} - -// Remove all selected options from a SELECT object -function fnRemoveSelectedOptions(combo) { - // Save the selected index - var iSelectedIndex = combo.selectedIndex ; - - var oOptions = combo.options ; - - // Remove all selected options - for ( var i = oOptions.length - 1 ; i >= 0 ; i-- ) { - if (oOptions[i].selected) combo.remove(i) ; - } - - // Reset the selection based on the original selected index - if ( combo.options.length > 0 ) { - if ( iSelectedIndex >= combo.options.length ) iSelectedIndex = combo.options.length - 1 ; - combo.selectedIndex = iSelectedIndex ; - } -} - -// Add a new option to a SELECT object (combo or list) -function fnAddComboOption( combo, optionText, optionValue, documentObject, index ) { - var oOption ; - - if ( documentObject ) { - oOption = documentObject.createElement("option") ; - } else { - oOption = document.createElement("option") ; - } - - if ( index != null ) { - combo.options.add( oOption, index ) ; - } else { - combo.options.add( oOption ) ; - } - - oOption.innerHTML = optionText.length > 0 ? fnHTMLEncode( optionText ) : ' ' ; - oOption.value = optionValue ; - - return oOption ; -} - -function fnHTMLEncode( text ) { - if ( !text ) { - return '' ; - } - text = text.replace( /&/g, '&' ) ; - text = text.replace( //g, '>' ) ; - - return text ; -} - - -function fnHTMLDecode( text ) { - if ( !text ) { - return '' ; - } - text = text.replace( />/g, '>' ) ; - text = text.replace( /</g, '<' ) ; - text = text.replace( /&/g, '&' ) ; - - return text ; -} diff --git a/public/assets/vendor/ueditor/dialogs/workflow/sign.html b/public/assets/vendor/ueditor/dialogs/workflow/sign.html deleted file mode 100644 index 7c29f467..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/sign.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - 签章控件 - - - - - - - - - - - - - - - - - - - - - - - -
控件名称*控件类型*
- - - - -
验证锁定字段 (用,号分隔)手写颜色
- - - -
- - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/text.html b/public/assets/vendor/ueditor/dialogs/workflow/text.html deleted file mode 100644 index 1917ee08..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/text.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - 插入单行文本框 - - - - - - - -
- -
- -
- - -
- -
- - -
- -
- - -
- -
-
-
- -
px
-
-
- -
-
-
字体
- -
px
-
-
- -
-
- -
- -
- -
-
- - - - \ No newline at end of file diff --git a/public/assets/vendor/ueditor/dialogs/workflow/textarea.html b/public/assets/vendor/ueditor/dialogs/workflow/textarea.html deleted file mode 100644 index 9da7d58a..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/textarea.html +++ /dev/null @@ -1,184 +0,0 @@ - - - - - 插入多行文本框 - - - - - - - -
- -
- -
- - -
- -
- -
-
-
-
- -
px
-
-
-
-
-
- -
-
-
-
-
-
字体
- -
px
-
-
-
-
- -
- - -
- -
- -
- -
-
- - - - diff --git a/public/assets/vendor/ueditor/dialogs/workflow/user.html b/public/assets/vendor/ueditor/dialogs/workflow/user.html deleted file mode 100644 index f98002a2..00000000 --- a/public/assets/vendor/ueditor/dialogs/workflow/user.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - 部门人员控件属性 - - - - - - -
- -
- -
- - -
- -
- - -
- -
- -
-
- -
px
-
-
- -
- -
- -
-
- - - - diff --git a/public/assets/vendor/ueditor/ueditor.model.config.js b/public/assets/vendor/ueditor/ueditor.model.config.js deleted file mode 100644 index 17d561c6..00000000 --- a/public/assets/vendor/ueditor/ueditor.model.config.js +++ /dev/null @@ -1,215 +0,0 @@ -(function () { - - var URL = window.UEDITOR_HOME_URL; - - window.UEDITOR_CONFIG = { - - UEDITOR_HOME_URL:URL - //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义 - ,toolbars:[["source","undo","redo","unlink","link","insertunorderedlist","insertorderedlist","spechars","template","bold","italic","underline","strikethrough","forecolor","backcolor","justifyleft","justifycenter","justifyright","justifyjustify","pasteplain","formatmatch","removeformat","rowspacingbottom","rowspacingtop","fontsize","fontfamily","inserttable","deletetable","mergeright","mergedown","splittorows","splittocols","splittocells","mergecells","insertcol","insertrow","deletecol","deleterow","insertparagraphbeforetable","imagecenter","imageright","imageleft","imagenone"]] - //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准 - ,labelMap:{ - 'anchor':'','undo':'' - } - // 禁止将div转换p - ,allowDivTransToP:false - // 允许表格嵌套 - ,disabledTableInTable:false - - //webAppKey - //百度应用的APIkey,每个站长必须首先去百度官网注册一个key后方能正常使用app功能 - ,webAppKey:"" - - - //语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件: - //lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase() - //,lang:'zh-cn' - - //,langPath:URL +"lang/" - - //主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件: - //现有如下皮肤:default,modern,gorgeous - //,theme:'default' - //,themePath:URL +"themes/" - - //若实例化编辑器的页面手动修改的domain,此处需要设置为true - //,customDomain:false - - //针对getAllHtml方法,会在对应的head标签中增加该编码设置。 - //,charset:"utf-8" - - //常用配置项目 - //,isShow : true //默认显示编辑器 - - ,initialContent:'' //初始化编辑器的内容,也可以通过textarea/script给值,看官网例子 - - //,initialFrameWidth:1000 //初始化编辑器宽度,默认1000 - //,initialFrameHeight:320 //初始化编辑器高度,默认320 - - //,autoClearinitialContent:true //是否自动清除编辑器初始内容,注意:如果focus属性设置为true,这个也为真,那么编辑器一上来就会触发导致初始化的内容看不到了 - ,iframeCssUrl:URL + '../../../assets/css/app.min.css' - //,iframeCssUrl:URL + 'themes/app.css' //给编辑器内部引入一个css文件 - //,textarea:'editorValue' // 提交表单时,服务器获取编辑器提交内容的所用的参数,多实例时可以给容器name属性,会将name给定的值最为每个实例的键值,不用每次实例化的时候都设置这个值 - //,focus:true //初始化时,是否让编辑器获得焦点true或false - - //,autoClearEmptyNode : true //getContent时,是否删除空的inlineElement节点(包括嵌套的情况) - - //,fullscreen : false //是否开启初始化时即全屏,默认关闭 - - //,readonly : false /编辑器初始化结束后,编辑区域是否是只读的,默认是false - - //,zIndex : 900 //编辑器层级的基数,默认是900 - - //,imagePopup:true //图片操作的浮层开关,默认打开 - - //,initialStyle:'body{font-size:18px}' //编辑器内部样式,可以用来改变字体等 - - //,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹 - - //,pasteplain:false //是否纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴 - - //,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串 - //iframeUrlMap - //dialog内容的路径 ~会被替换成URL,垓属性一旦打开,将覆盖所有的dialog的默认路径 - //,iframeUrlMap:{ - // 'anchor':'~/dialogs/anchor/anchor.html', - // } - //insertorderedlist - //有序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准 -// ,'insertorderedlist':{ -// 'decimal' : '' , //'1,2,3...' -// 'lower-alpha' : '' , // 'a,b,c...' -// 'lower-roman' : '' , //'i,ii,iii...' -// 'upper-alpha' : '' , lang //'A,B,C' -// 'upper-roman' : '' //'I,II,III...' -// } - //insertunorderedlist - //无序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准 - //,insertunorderedlist : { - // 'circle' : '', // '○ 小圆圈' - // 'disc' : '', // '● 小圆点' - // 'square' : '' //'■ 小方块' - //} - //fontfamily - //字体设置 label留空支持多语言自动切换,若配置,则以配置值为准 - //,'fontfamily':[ - // { label:'',name:'songti',val:'宋体,SimSun'}, - // { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'}, - // { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'}, - // { label:'',name:'heiti',val:'黑体, SimHei'}, - // { label:'',name:'lishu',val:'隶书, SimLi'}, - // { label:'',name:'STZhongsong',val:'华文中宋, STZhongsong'}, - // { label:'',name:'andaleMono',val:'andale mono'}, - // { label:'',name:'arial',val:'arial, helvetica,sans-serif'}, - // { label:'',name:'arialBlack',val:'arial black,avant garde'}, - // { label:'',name:'comicSansMs',val:'comic sans ms'}, - // { label:'',name:'impact',val:'impact,chicago'}, - // { label:'',name:'timesNewRoman',val:'times new roman'} - //] - //fontsize - //字号 - //,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36] - //paragraph - //段落格式 值留空时支持多语言自动识别,若配置,则以配置值为准 - //,'paragraph':{'p':'', 'h1':'', 'h2':'', 'h3':'', 'h4':'', 'h5':'', 'h6':''} - //rowspacingtop - //段间距 值和显示的名字相同 - //,'rowspacingtop':['5', '10', '15', '20', '25'] - //rowspacingBottom - //段间距 值和显示的名字相同 - //,'rowspacingbottom':['5', '10', '15', '20', '25'] - //lineheight - //行内间距 值和显示的名字相同 - //,'lineheight':['1', '1.5','1.75','2', '3', '4', '5'] - - //customstyle - //自定义样式,不支持国际化,此处配置值即可最后显示值 - //block的元素是依据设置段落的逻辑设置的,inline的元素依据BIU的逻辑设置 - //尽量使用一些常用的标签 - //参数说明 - //tag 使用的标签名字 - //label 显示的名字也是用来标识不同类型的标识符,注意这个值每个要不同, - //style 添加的样式 - //每一个对象就是一个自定义的样式 - //,'customstyle':[ - // {tag:'h1', name:'tc', label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;text-align:center;margin:0 0 20px 0;'}, - // {tag:'h1', name:'tl',label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;margin:0 0 10px 0;'}, - // {tag:'span',name:'im', label:'', style:'font-style:italic;font-weight:bold'}, - // {tag:'span',name:'hi', label:'', style:'font-style:italic;font-weight:bold;color:rgb(51, 153, 204)'} - // ] - - //右键菜单的内容,可以参考plugins/contextmenu.js里边的默认菜单的例子,label留空支持国际化,否则以此配置为准 -// ,contextMenu:[ -// { -// label:'', //显示的名称 -// cmdName:'selectall',//执行的command命令,当点击这个右键菜单时 -// //exec可选,有了exec就会在点击时执行这个function,优先级高于cmdName -// exec:function () { -// //this是当前编辑器的实例 -// //this.ui._dialogs['inserttableDialog'].open(); -// } -// } -// ] - //wordCount - //,wordCount:1 //是否开启字数统计 - //,maximumWords:10000 //允许的最大字符数 - //字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示 - //,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符 - //超出字数限制提示 留空支持多语言自动切换,否则按此配置显示 - //,wordOverFlowMsg:'' //你输入的字符个数已经超出最大允许值,服务器可能会拒绝保存! - - //highlightcode - // 代码高亮时需要加载的第三方插件的路径 - // ,highlightJsUrl:URL + "third-party/SyntaxHighlighter/shCore.js" - // ,highlightCssUrl:URL + "third-party/SyntaxHighlighter/shCoreDefault.css" - //elementPathEnabled - //是否启用元素路径,默认是显示 - //,elementPathEnabled : true - //removeFormat - //清除格式时可以删除的标签和属性 - //removeForamtTags标签 - //,removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' - //removeFormatAttributes属性 - //,removeFormatAttributes:'class,style,lang,width,height,align,hspace,valign' - //undo - //可以最多回退的次数,默认20 - //,maxUndoCount:20 - //当输入的字符数超过该值时,保存一次现场 - //,maxInputCount:1 - //autoHeightEnabled - // 是否自动长高,默认true - //,autoHeightEnabled:true - //,minFrameWidth:800 //编辑器拖动时最小宽度,默认800 - //,minFrameHeight:220 //编辑器拖动时最小高度,默认220 - //autoFloatEnabled - //是否保持toolbar的位置不动,默认true - ,autoFloatEnabled:false - //浮动时工具栏距离浏览器顶部的高度,用于某些具有固定头部的页面 - //,topOffset:30 - //indentValue - //首行缩进距离,默认是2em - //,indentValue:'2em' - //pageBreakTag - //分页标识符,默认是_baidu_page_break_tag_ - //,pageBreakTag:'_baidu_page_break_tag_' - - //autotypeset - // //自动排版参数 - // ,autotypeset:{ - // mergeEmptyline : true, //合并空行 - // removeClass : true, //去掉冗余的class - // removeEmptyline : false, //去掉空行 - // textAlign : "left" , //段落的排版方式,可以是 left,right,center,justify 去掉这个属性表示不执行排版 - // imageBlockLine : 'center', //图片的浮动方式,独占一行剧中,左右浮动,默认: center,left,right,none 去掉这个属性表示不执行排版 - // pasteFilter : false, //根据规则过滤没事粘贴进来的内容 - // clearFontSize : false, //去掉所有的内嵌字号,使用编辑器默认的字号 - // clearFontFamily : false, //去掉所有的内嵌字体,使用编辑器默认的字体 - // removeEmptyNode : false , // 去掉空节点 - // //可以去掉的标签 - // removeTagNames : {标签名字:1}, - // indent : false, // 行首缩进 - // indentValue : '2em' //行首缩进的大小 - // } - - }; -})(); diff --git a/public/assets/vendor/ueditor/ueditor.model.js b/public/assets/vendor/ueditor/ueditor.model.js deleted file mode 100644 index 2cf384b8..00000000 --- a/public/assets/vendor/ueditor/ueditor.model.js +++ /dev/null @@ -1,1227 +0,0 @@ -UE.plugins["model-field"] = function() { - var me = this; - me.commands['model-field'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() - { - var dialog = UE.ui.Dialog({ - iframeUrl: app.url('model/template/field'), - editor:editor, - className:'edui-for-text', - title:'单行输入框', - buttons:[{ - className:'edui-okbutton', - label:'确认', - onclick: function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['model-Dialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content:'', - className:'edui-bubble', - _edittext:function() { - baidu.editor.plugins['model-field'].editdom = popup.anchorEl; - me.execCommand('model-field'); - this.hide(); - }, - _delete:function() { - if(window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - }); - - popup.render(); - me.addListener('mouseover',function(cmd, evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - - if (el.getAttribute('data-toggle') == 'model-field') { - var html = popup.formatHtml('字段操作: 编辑 删除'); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - }); -}; - -/* -UE.plugins["text"] = function() { - var me = this; - me.commands['text'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() - { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/text.html?_=' + Math.random(); - var dialog = UE.ui.Dialog({ - iframeUrl:sUrl, - editor:editor, - className:'edui-for-text', - title:'单行输入框', - buttons:[{ - className:'edui-okbutton', - label:'确认', - onclick: function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['textDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content:'', - className:'edui-bubble', - _edittext:function() { - baidu.editor.plugins['text'].editdom = popup.anchorEl; - me.execCommand('text'); - this.hide(); - }, - _delete:function() { - if(window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(cmd, evt) - { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'text') { - var html = popup.formatHtml('单行输入框: 编辑 删除'); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - }); -}; - -UE.plugins["textarea"] = function() { - var me = this; - me.commands['textarea'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/textarea.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl:sUrl, - editor:editor, - className:'edui-for-textarea', - title:'多行输入框', - buttons:[{ - className:'edui-okbutton', - label:'确认', - onclick:function() { - dialog.close(true); - } - }, { - className:'edui-cancelbutton', - label:'取消', - onclick:function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['textareaDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content:'', - className:'edui-bubble', - _edittext:function() { - baidu.editor.plugins['textarea'].editdom = popup.anchorEl; - me.execCommand('textarea'); - this.hide(); - }, - _delete:function() { - if(window.confirm('确认删除该控件吗?')) - { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - }); - popup.render(); - me.addListener('mouseover',function(t, evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'textarea') - { - var html = popup.formatHtml('多行输入框: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - }); -}; - -UE.plugins["listmenu"] = function() { - var me = this; - me.commands['listmenu'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/listmenu.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor:editor, - className:'edui-for-listmenu', - title:'下拉菜单', - buttons:[{ - className: 'edui-okbutton', - label:'确认', - onclick:function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['listmenuDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function() { - baidu.editor.plugins['listmenu'].editdom = popup.anchorEl; - me.execCommand('listmenu'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'select') { - var html = popup.formatHtml('下拉菜单: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -}; -UE.plugins["radio"] = function() { - var me = this; - me.commands['radio'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/radio.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-radio', - title: '单选框', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['radioDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['radio'].editdom = popup.anchorEl; - me.execCommand('radio'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'radio') { - var html = popup.formatHtml( - '单选框: 编辑 删除' ); - if ( html ) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -}; -UE.plugins["checkbox"] = function() { - var me = this; - me.commands['checkbox'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/checkbox.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-checkbox', - title: '复选框', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['checkboxDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['checkbox'].editdom = popup.anchorEl; - me.execCommand('checkbox'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function( t,evt ) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'checkbox') { - var html = popup.formatHtml( - '复选框: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -}; -UE.plugins["listview"] = function() { - var me = this; - me.commands['listview'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function () { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/listview.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-listview', - title: '列表控件', - buttons: [{ - className: 'edui-helpbutton', - label: '控件说明', - onclick: function (){ - return dialog.onhelp(); - } - },{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['listviewDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['listview'].editdom = popup.anchorEl; - me.execCommand('listview'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'listview') { - var html = popup.formatHtml( - '列表控件: 编辑 删除' ); - if ( html ) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -}; -UE.plugins["auto"] = function() { - var me = this; - me.commands['auto'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/auto.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-auto', - title: '宏控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['autoDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['auto'].editdom = popup.anchorEl; - me.execCommand('auto'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'auto') { - var html = popup.formatHtml('宏控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - }else { - popup.hide(); - } - } - } ); -}; -UE.plugins["calendar"] = function() { - var me = this; - me.commands['calendar'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/calendar.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-calendar', - title: '日历控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['calendarDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['calendar'].editdom = popup.anchorEl; - me.execCommand('calendar'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'date') { - var html = popup.formatHtml('日历控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -} -UE.plugins["calc"] = function() { - var me = this; - me.commands['calc'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/calc.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-calc', - title: '计算控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['calcDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['calc'].editdom = popup.anchorEl; - me.execCommand('calc'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'calc') { - var html = popup.formatHtml('计算控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -} -UE.plugins["user"] = function() { - var me = this; - me.commands['user'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/user.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-user', - title: '部门人员控件', - buttons:[{ - className:'edui-okbutton', - label:'确认', - onclick:function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['userDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['user'].editdom = popup.anchorEl; - me.execCommand('user'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'user') { - var html = popup.formatHtml('部门人员控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -} -UE.plugins["sign"] = function() { - var me = this; - me.commands['sign'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/sign.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-sign', - title: '签章控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['signDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['sign'].editdom = popup.anchorEl; - me.execCommand('sign'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'sign') { - var html = popup.formatHtml('签章控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["data_select"] = function() { - var me = this; - me.commands['data_select'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/data_select.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-data-select', - title: '数据选择控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['dataselectDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['data_select'].editdom = popup.anchorEl; - me.execCommand('data_select'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'data') { - var html = popup.formatHtml( - '数据选择控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["data_fetch"] = function() { - var me = this; - me.commands['data_fetch'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/data_fetch.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-data-select', - title: '表单数据控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['datafetchDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['data_fetch'].editdom = popup.anchorEl; - me.execCommand('data_fetch'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'fetch') { - var html = popup.formatHtml('表单数据控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["progressbar"] = function() { - var me = this; - me.commands['progressbar'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/progressbar.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-progressbar', - title: '进度条控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['progressbarDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['progressbar'].editdom = popup.anchorEl; - me.execCommand('progressbar'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function( t,evt ) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'progressbar') { - var html = popup.formatHtml( - '进度条控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["imgupload"] = function() { - var me = this; - me.commands['imgupload'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/imgupload.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-imgupload', - title: '图片上传控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['imguploadDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['imgupload'].editdom = popup.anchorEl; - me.execCommand('imgupload'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function( t,evt ) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'imgupload') { - var html = popup.formatHtml( - '图片上传控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} - -UE.plugins["qrcode"] = function() { - var me = this; - me.commands['qrcode'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/qrcode.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-qrcode', - title: '二维码控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['qrcodeDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['qrcode'].editdom = popup.anchorEl; - me.execCommand('qrcode'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function( t,evt ) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'qrcode') { - var html = popup.formatHtml( - '二维码控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} - - -UE.plugins["jsext"] = function() { - var me = this; - me.commands['jsext'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/jsext.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-ext', - title: 'JS脚本扩展', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick:function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['jsextDialog'] = dialog; - dialog.open(); - } - } -} - -UE.plugins['cssext'] = function() { - var me = this; - me.commands['cssext'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/cssext.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-ext', - title: 'CSS样式扩展', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['cssextDialog'] = dialog; - dialog.open(); - } - } -}; - -UE.plugins['macro'] = function() { - var me = this; - me.commands['macro'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/macro.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-ext', - title: '宏标记', - buttons: [{ - className: 'edui-cancelbutton', - label: '取消', - onclick: function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['macroDialog'] = dialog; - dialog.open(); - } - } -}; -*/ \ No newline at end of file diff --git a/public/assets/vendor/ueditor/ueditor.workflow.config.js b/public/assets/vendor/ueditor/ueditor.workflow.config.js deleted file mode 100644 index 30c77bc3..00000000 --- a/public/assets/vendor/ueditor/ueditor.workflow.config.js +++ /dev/null @@ -1,220 +0,0 @@ -(function () { - - var URL = window.UEDITOR_HOME_URL; - var initialStyle = "html.view {background:url(/assets/images/wf_canvas_bg.png)} body.view {background:#fff;padding:10px; width:820px;margin:0 auto; font:12px/18px '微软雅黑',tahoma,Arial,Verdana,Helvetica,sans-serif;color:#333;border:1px solid #ddd;}" + - 'body.view > table {width:800px;}' + - 'body.view > table td,body.view > table th {border-bottom: 1px solid #ddd;border-left:1px solid #ddd;padding:6px;}' + - 'body.view > table th {color:#333;}' + - 'body.view > table thead th {background:#eee;color:#666;}'; - - window.UEDITOR_CONFIG = { - - UEDITOR_HOME_URL:URL - //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义 - ,toolbars:[["source","undo","redo","unlink","link","insertunorderedlist","insertorderedlist","spechars","template","bold","italic","underline","strikethrough","forecolor","backcolor","justifyleft","justifycenter","justifyright","justifyjustify","pasteplain","formatmatch","removeformat","rowspacingbottom","rowspacingtop","fontsize","fontfamily","inserttable","deletetable","mergeright","mergedown","splittorows","splittocols","splittocells","mergecells","insertcol","insertrow","deletecol","deleterow","insertparagraphbeforetable","imagecenter","imageright","imageleft","imagenone"]] - //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准 - ,labelMap:{ - 'anchor':'','undo':'' - } - // 禁止将div转换p - ,allowDivTransToP:false - // 允许表格嵌套 - ,disabledTableInTable:false - - //webAppKey - //百度应用的APIkey,每个站长必须首先去百度官网注册一个key后方能正常使用app功能 - ,webAppKey:"" - - - //语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件: - //lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase() - //,lang:'zh-cn' - - //,langPath:URL +"lang/" - - //主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件: - //现有如下皮肤:default,modern,gorgeous - //,theme:'default' - //,themePath:URL +"themes/" - - //若实例化编辑器的页面手动修改的domain,此处需要设置为true - //,customDomain:false - - //针对getAllHtml方法,会在对应的head标签中增加该编码设置。 - //,charset:"utf-8" - - //常用配置项目 - //,isShow : true //默认显示编辑器 - - ,initialContent:'' //初始化编辑器的内容,也可以通过textarea/script给值,看官网例子 - - //,initialFrameWidth:1000 //初始化编辑器宽度,默认1000 - //,initialFrameHeight:320 //初始化编辑器高度,默认320 - - //,autoClearinitialContent:true //是否自动清除编辑器初始内容,注意:如果focus属性设置为true,这个也为真,那么编辑器一上来就会触发导致初始化的内容看不到了 - ,iframeCssUrl:URL + '../../../assets/dist/app.min.css' - //,iframeCssUrl:URL + 'themes/app.css' //给编辑器内部引入一个css文件 - //,textarea:'editorValue' // 提交表单时,服务器获取编辑器提交内容的所用的参数,多实例时可以给容器name属性,会将name给定的值最为每个实例的键值,不用每次实例化的时候都设置这个值 - //,focus:true //初始化时,是否让编辑器获得焦点true或false - - //,autoClearEmptyNode : true //getContent时,是否删除空的inlineElement节点(包括嵌套的情况) - - //,fullscreen : false //是否开启初始化时即全屏,默认关闭 - - //,readonly : false /编辑器初始化结束后,编辑区域是否是只读的,默认是false - - //,zIndex : 900 //编辑器层级的基数,默认是900 - - //,imagePopup:true //图片操作的浮层开关,默认打开 - - ,initialStyle:initialStyle //编辑器内部样式,可以用来改变字体等 - - //,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹 - - //,pasteplain:false //是否纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴 - - //,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串 - //iframeUrlMap - //dialog内容的路径 ~会被替换成URL,垓属性一旦打开,将覆盖所有的dialog的默认路径 - //,iframeUrlMap:{ - // 'anchor':'~/dialogs/anchor/anchor.html', - // } - //insertorderedlist - //有序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准 -// ,'insertorderedlist':{ -// 'decimal' : '' , //'1,2,3...' -// 'lower-alpha' : '' , // 'a,b,c...' -// 'lower-roman' : '' , //'i,ii,iii...' -// 'upper-alpha' : '' , lang //'A,B,C' -// 'upper-roman' : '' //'I,II,III...' -// } - //insertunorderedlist - //无序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准 - //,insertunorderedlist : { - // 'circle' : '', // '○ 小圆圈' - // 'disc' : '', // '● 小圆点' - // 'square' : '' //'■ 小方块' - //} - //fontfamily - //字体设置 label留空支持多语言自动切换,若配置,则以配置值为准 - //,'fontfamily':[ - // { label:'',name:'songti',val:'宋体,SimSun'}, - // { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'}, - // { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'}, - // { label:'',name:'heiti',val:'黑体, SimHei'}, - // { label:'',name:'lishu',val:'隶书, SimLi'}, - // { label:'',name:'STZhongsong',val:'华文中宋, STZhongsong'}, - // { label:'',name:'andaleMono',val:'andale mono'}, - // { label:'',name:'arial',val:'arial, helvetica,sans-serif'}, - // { label:'',name:'arialBlack',val:'arial black,avant garde'}, - // { label:'',name:'comicSansMs',val:'comic sans ms'}, - // { label:'',name:'impact',val:'impact,chicago'}, - // { label:'',name:'timesNewRoman',val:'times new roman'} - //] - //fontsize - //字号 - //,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36] - //paragraph - //段落格式 值留空时支持多语言自动识别,若配置,则以配置值为准 - //,'paragraph':{'p':'', 'h1':'', 'h2':'', 'h3':'', 'h4':'', 'h5':'', 'h6':''} - //rowspacingtop - //段间距 值和显示的名字相同 - //,'rowspacingtop':['5', '10', '15', '20', '25'] - //rowspacingBottom - //段间距 值和显示的名字相同 - //,'rowspacingbottom':['5', '10', '15', '20', '25'] - //lineheight - //行内间距 值和显示的名字相同 - //,'lineheight':['1', '1.5','1.75','2', '3', '4', '5'] - - //customstyle - //自定义样式,不支持国际化,此处配置值即可最后显示值 - //block的元素是依据设置段落的逻辑设置的,inline的元素依据BIU的逻辑设置 - //尽量使用一些常用的标签 - //参数说明 - //tag 使用的标签名字 - //label 显示的名字也是用来标识不同类型的标识符,注意这个值每个要不同, - //style 添加的样式 - //每一个对象就是一个自定义的样式 - //,'customstyle':[ - // {tag:'h1', name:'tc', label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;text-align:center;margin:0 0 20px 0;'}, - // {tag:'h1', name:'tl',label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;margin:0 0 10px 0;'}, - // {tag:'span',name:'im', label:'', style:'font-style:italic;font-weight:bold'}, - // {tag:'span',name:'hi', label:'', style:'font-style:italic;font-weight:bold;color:rgb(51, 153, 204)'} - // ] - - //右键菜单的内容,可以参考plugins/contextmenu.js里边的默认菜单的例子,label留空支持国际化,否则以此配置为准 -// ,contextMenu:[ -// { -// label:'', //显示的名称 -// cmdName:'selectall',//执行的command命令,当点击这个右键菜单时 -// //exec可选,有了exec就会在点击时执行这个function,优先级高于cmdName -// exec:function () { -// //this是当前编辑器的实例 -// //this.ui._dialogs['inserttableDialog'].open(); -// } -// } -// ] - //wordCount - //,wordCount:1 //是否开启字数统计 - //,maximumWords:10000 //允许的最大字符数 - //字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示 - //,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符 - //超出字数限制提示 留空支持多语言自动切换,否则按此配置显示 - //,wordOverFlowMsg:'' //你输入的字符个数已经超出最大允许值,服务器可能会拒绝保存! - - //highlightcode - // 代码高亮时需要加载的第三方插件的路径 - // ,highlightJsUrl:URL + "third-party/SyntaxHighlighter/shCore.js" - // ,highlightCssUrl:URL + "third-party/SyntaxHighlighter/shCoreDefault.css" - //elementPathEnabled - //是否启用元素路径,默认是显示 - //,elementPathEnabled : true - //removeFormat - //清除格式时可以删除的标签和属性 - //removeForamtTags标签 - //,removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var' - //removeFormatAttributes属性 - //,removeFormatAttributes:'class,style,lang,width,height,align,hspace,valign' - //undo - //可以最多回退的次数,默认20 - //,maxUndoCount:20 - //当输入的字符数超过该值时,保存一次现场 - //,maxInputCount:1 - //autoHeightEnabled - // 是否自动长高,默认true - //,autoHeightEnabled:true - //,minFrameWidth:800 //编辑器拖动时最小宽度,默认800 - //,minFrameHeight:220 //编辑器拖动时最小高度,默认220 - //autoFloatEnabled - //是否保持toolbar的位置不动,默认true - ,autoFloatEnabled:false - //浮动时工具栏距离浏览器顶部的高度,用于某些具有固定头部的页面 - //,topOffset:30 - //indentValue - //首行缩进距离,默认是2em - //,indentValue:'2em' - //pageBreakTag - //分页标识符,默认是_baidu_page_break_tag_ - //,pageBreakTag:'_baidu_page_break_tag_' - - //autotypeset - // //自动排版参数 - // ,autotypeset:{ - // mergeEmptyline : true, //合并空行 - // removeClass : true, //去掉冗余的class - // removeEmptyline : false, //去掉空行 - // textAlign : "left" , //段落的排版方式,可以是 left,right,center,justify 去掉这个属性表示不执行排版 - // imageBlockLine : 'center', //图片的浮动方式,独占一行剧中,左右浮动,默认: center,left,right,none 去掉这个属性表示不执行排版 - // pasteFilter : false, //根据规则过滤没事粘贴进来的内容 - // clearFontSize : false, //去掉所有的内嵌字号,使用编辑器默认的字号 - // clearFontFamily : false, //去掉所有的内嵌字体,使用编辑器默认的字体 - // removeEmptyNode : false , // 去掉空节点 - // //可以去掉的标签 - // removeTagNames : {标签名字:1}, - // indent : false, // 行首缩进 - // indentValue : '2em' //行首缩进的大小 - // } - - }; -})(); diff --git a/public/assets/vendor/ueditor/ueditor.workflow.js b/public/assets/vendor/ueditor/ueditor.workflow.js deleted file mode 100644 index ef7f390d..00000000 --- a/public/assets/vendor/ueditor/ueditor.workflow.js +++ /dev/null @@ -1,1157 +0,0 @@ -UE.plugins["text"] = function() { - var me = this; - me.commands['text'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() - { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/text.html?_=' + Math.random(); - var dialog = UE.ui.Dialog({ - iframeUrl:sUrl, - editor:editor, - className:'edui-for-text', - title:'单行输入框', - buttons:[{ - className:'edui-okbutton', - label:'确认', - onclick: function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['textDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content:'', - className:'edui-bubble', - _edittext:function() { - baidu.editor.plugins['text'].editdom = popup.anchorEl; - me.execCommand('text'); - this.hide(); - }, - _delete:function() { - if(window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(cmd, evt) - { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'text') { - var html = popup.formatHtml('单行输入框: 编辑 删除'); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - }); -}; - -UE.plugins["textarea"] = function() { - var me = this; - me.commands['textarea'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/textarea.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl:sUrl, - editor:editor, - className:'edui-for-textarea', - title:'多行输入框', - buttons:[{ - className:'edui-okbutton', - label:'确认', - onclick:function() { - dialog.close(true); - } - }, { - className:'edui-cancelbutton', - label:'取消', - onclick:function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['textareaDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content:'', - className:'edui-bubble', - _edittext:function() { - baidu.editor.plugins['textarea'].editdom = popup.anchorEl; - me.execCommand('textarea'); - this.hide(); - }, - _delete:function() { - if(window.confirm('确认删除该控件吗?')) - { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - }); - popup.render(); - me.addListener('mouseover',function(t, evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'textarea') - { - var html = popup.formatHtml('多行输入框: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - }); -}; - -UE.plugins["listmenu"] = function() { - var me = this; - me.commands['listmenu'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/listmenu.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor:editor, - className:'edui-for-listmenu', - title:'下拉菜单', - buttons:[{ - className: 'edui-okbutton', - label:'确认', - onclick:function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['listmenuDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function() { - baidu.editor.plugins['listmenu'].editdom = popup.anchorEl; - me.execCommand('listmenu'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'select') { - var html = popup.formatHtml('下拉菜单: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -}; -UE.plugins["radio"] = function() { - var me = this; - me.commands['radio'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/radio.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-radio', - title: '单选框', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['radioDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['radio'].editdom = popup.anchorEl; - me.execCommand('radio'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'radio') { - var html = popup.formatHtml( - '单选框: 编辑 删除' ); - if ( html ) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -}; -UE.plugins["checkbox"] = function() { - var me = this; - me.commands['checkbox'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/checkbox.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-checkbox', - title: '复选框', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function () { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['checkboxDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['checkbox'].editdom = popup.anchorEl; - me.execCommand('checkbox'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover', function(t, evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'checkbox' || el.getAttribute('class') == 'checkbox-inline') { - var html = popup.formatHtml( - '复选框: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -}; -UE.plugins["listview"] = function() { - var me = this; - me.commands['listview'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function () { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/listview.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-listview', - title: '列表控件', - buttons: [{ - className: 'edui-helpbutton', - label: '控件说明', - onclick: function (){ - return dialog.onhelp(); - } - },{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['listviewDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['listview'].editdom = popup.anchorEl; - me.execCommand('listview'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'listview') { - var html = popup.formatHtml( - '列表控件: 编辑 删除' ); - if ( html ) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -}; -UE.plugins["auto"] = function() { - var me = this; - me.commands['auto'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/auto.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-auto', - title: '宏控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['autoDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['auto'].editdom = popup.anchorEl; - me.execCommand('auto'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'auto') { - var html = popup.formatHtml('宏控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - }else { - popup.hide(); - } - } - } ); -}; -UE.plugins["calendar"] = function() { - var me = this; - me.commands['calendar'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/calendar.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-calendar', - title: '日历控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['calendarDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['calendar'].editdom = popup.anchorEl; - me.execCommand('calendar'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'date') { - var html = popup.formatHtml('日历控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -} -UE.plugins["calc"] = function() { - var me = this; - me.commands['calc'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/calc.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-calc', - title: '计算控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['calcDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['calc'].editdom = popup.anchorEl; - me.execCommand('calc'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'calc') { - var html = popup.formatHtml('计算控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -} -UE.plugins["user"] = function() { - var me = this; - me.commands['user'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/user.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-user', - title: '部门人员控件', - buttons:[{ - className:'edui-okbutton', - label:'确认', - onclick:function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['userDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup({ - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['user'].editdom = popup.anchorEl; - me.execCommand('user'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'user') { - var html = popup.formatHtml('部门人员控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - }else { - popup.hide(); - } - } - } ); -} -UE.plugins["sign"] = function() { - var me = this; - me.commands['sign'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/sign.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-sign', - title: '签章控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['signDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['sign'].editdom = popup.anchorEl; - me.execCommand('sign'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?')) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener('mouseover',function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'sign') { - var html = popup.formatHtml('签章控件: 编辑 删除' ); - if (html) { - popup.getDom('content').innerHTML = html; - popup.anchorEl = el; - popup.showAnchor(popup.anchorEl); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["data_select"] = function() { - var me = this; - me.commands['data_select'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/data_select.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-data-select', - title: '数据选择控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['dataselectDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['data_select'].editdom = popup.anchorEl; - me.execCommand('data_select'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'data') { - var html = popup.formatHtml( - '数据选择控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["data_fetch"] = function() { - var me = this; - me.commands['data_fetch'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/data_fetch.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-data-select', - title: '表单数据控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['datafetchDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['data_fetch'].editdom = popup.anchorEl; - me.execCommand('data_fetch'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function(t,evt) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'fetch') { - var html = popup.formatHtml('表单数据控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["progressbar"] = function() { - var me = this; - me.commands['progressbar'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/progressbar.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-progressbar', - title: '进度条控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['progressbarDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['progressbar'].editdom = popup.anchorEl; - me.execCommand('progressbar'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function( t,evt ) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'progressbar') { - var html = popup.formatHtml( - '进度条控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} -UE.plugins["imgupload"] = function() { - var me = this; - me.commands['imgupload'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/imgupload.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-imgupload', - title: '图片上传控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['imguploadDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['imgupload'].editdom = popup.anchorEl; - me.execCommand('imgupload'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function( t,evt ) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'imgupload') { - var html = popup.formatHtml( - '图片上传控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} - -UE.plugins["qrcode"] = function() { - var me = this; - me.commands['qrcode'] = { - queryCommandState:function () { - return 0; - }, - execCommand:function ( ) { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/qrcode.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-qrcode', - title: '二维码控件', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['qrcodeDialog'] = dialog; - dialog.open(); - } - } - - var popup = new baidu.editor.ui.Popup( { - editor:editor, - content: '', - className: 'edui-bubble', - _edittext: function () { - baidu.editor.plugins['qrcode'].editdom = popup.anchorEl; - me.execCommand('qrcode'); - this.hide(); - }, - _delete:function(){ - if( window.confirm('确认删除该控件吗?') ) { - baidu.editor.dom.domUtils.remove(this.anchorEl,false); - } - this.hide(); - } - } ); - popup.render(); - me.addListener( 'mouseover', function( t,evt ) { - evt = evt || window.event; - var el = evt.target || evt.srcElement; - if (el.getAttribute('class') == 'qrcode') { - var html = popup.formatHtml( - '二维码控件: 编辑 删除' ); - if ( html ) { - popup.getDom( 'content' ).innerHTML = html; - popup.anchorEl = el; - popup.showAnchor( popup.anchorEl ); - } else { - popup.hide(); - } - } - } ); -} - - -UE.plugins["jsext"] = function() { - var me = this; - me.commands['jsext'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/jsext.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-ext', - title: 'JS脚本扩展', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick:function() { - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['jsextDialog'] = dialog; - dialog.open(); - } - } -} - -UE.plugins['cssext'] = function() { - var me = this; - me.commands['cssext'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/cssext.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-ext', - title: 'CSS样式扩展', - buttons: [{ - className: 'edui-okbutton', - label: '确认', - onclick: function (){ - dialog.close(true); - } - }, { - className: 'edui-cancelbutton', - label: '取消', - onclick: function (){ - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['cssextDialog'] = dialog; - dialog.open(); - } - } -}; - -UE.plugins['macro'] = function() { - var me = this; - me.commands['macro'] = { - queryCommandState:function() { - return 0; - }, - execCommand:function() { - var sUrl = this.options.UEDITOR_HOME_URL + 'dialogs/workflow/macro.html?_=' + Math.random(); - var dialog = new baidu.editor.ui.Dialog({ - iframeUrl: sUrl, - editor: editor, - className: 'edui-for-ext', - title: '宏标记', - buttons: [{ - className: 'edui-cancelbutton', - label: '取消', - onclick: function() { - dialog.close(false); - } - }] - }); - dialog.render(); - editor.ui._dialogs['macroDialog'] = dialog; - dialog.open(); - } - } -}; \ No newline at end of file diff --git a/public/data/editor/image/20210320/1616189422115871.png b/public/data/editor/image/20210320/1616189422115871.png new file mode 100644 index 00000000..16c80197 Binary files /dev/null and b/public/data/editor/image/20210320/1616189422115871.png differ diff --git a/resources/views/attachment/qrcode.blade.php b/resources/views/attachment/qrcode.blade.php index 97b9e2ba..7cb066b2 100644 --- a/resources/views/attachment/qrcode.blade.php +++ b/resources/views/attachment/qrcode.blade.php @@ -4,7 +4,8 @@ {{$setting['title']}} - + +