|
|
|
@ -12673,7 +12673,7 @@ UE.plugins['paragraph'] = function() {
|
|
|
|
|
} ); |
|
|
|
|
} |
|
|
|
|
tmpRange.setEndAfter( tmpNode ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
para = range.document.createElement( style ); |
|
|
|
|
if(attrs){ |
|
|
|
|
domUtils.setAttributes(para,attrs); |
|
|
|
@ -12685,7 +12685,7 @@ UE.plugins['paragraph'] = function() {
|
|
|
|
|
//需要内容占位
|
|
|
|
|
if(domUtils.isEmptyNode(para)){ |
|
|
|
|
domUtils.fillChar(range.document,para); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
tmpRange.insertNode( para ); |
|
|
|
@ -12809,7 +12809,7 @@ UE.plugins['paragraph'] = function() {
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
doDirectionality = function(range,editor,forward){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var bookmark, |
|
|
|
|
filterFn = function( node ) { |
|
|
|
|
return node.nodeType == 1 ? !domUtils.isBookmarkNode(node) : !domUtils.isWhitespace(node); |
|
|
|
@ -22731,7 +22731,7 @@ UE.plugins['formatmatch'] = function(){
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function addList(type,evt){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(browser.webkit){ |
|
|
|
|
var target = evt.target.tagName == 'IMG' ? evt.target : null; |
|
|
|
|
} |
|
|
|
@ -22797,7 +22797,7 @@ UE.plugins['formatmatch'] = function(){
|
|
|
|
|
|
|
|
|
|
me.commands['formatmatch'] = { |
|
|
|
|
execCommand : function( cmdName ) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(flag){ |
|
|
|
|
flag = 0; |
|
|
|
|
list = []; |
|
|
|
@ -22806,7 +22806,7 @@ UE.plugins['formatmatch'] = function(){
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var range = me.selection.getRange(); |
|
|
|
|
img = range.getClosedNode(); |
|
|
|
|
if(!img || img.tagName != 'IMG'){ |
|
|
|
@ -25082,10 +25082,11 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
} else { |
|
|
|
|
layer.style.position = 'fixed'; |
|
|
|
|
} |
|
|
|
|
layer.style.left = '0'; |
|
|
|
|
layer.style.left = '30'; |
|
|
|
|
layer.style.top = '0'; |
|
|
|
|
layer.style.width = '0'; |
|
|
|
|
layer.style.width = '50'; |
|
|
|
|
layer.style.height = '0'; |
|
|
|
|
layer.style.zIndex="5000!important;" |
|
|
|
|
} |
|
|
|
|
return layer; |
|
|
|
|
}, |
|
|
|
@ -25113,8 +25114,8 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
function updateFixedOffset(){ |
|
|
|
|
var layer = document.getElementById('edui_fixedlayer'); |
|
|
|
|
uiUtils.setViewportOffset(layer, { |
|
|
|
|
left: 0, |
|
|
|
|
top: 0 |
|
|
|
|
left: 666, |
|
|
|
|
top: 888 |
|
|
|
|
}); |
|
|
|
|
// layer.style.display = 'none';
|
|
|
|
|
// layer.style.display = 'block';
|
|
|
|
@ -25245,7 +25246,7 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
domUtils = baidu.editor.dom.domUtils, |
|
|
|
|
UIBase = baidu.editor.ui.UIBase, |
|
|
|
|
uiUtils = baidu.editor.ui.uiUtils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Mask = baidu.editor.ui.Mask = function (options){ |
|
|
|
|
this.initOptions(options); |
|
|
|
|
this.initUIBase(); |
|
|
|
@ -25541,7 +25542,7 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
utils.inherits(Popup, UIBase); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
domUtils.on( document, 'mousedown', function ( evt ) { |
|
|
|
|
var el = evt.target || evt.srcElement; |
|
|
|
|
closeAllPopup( evt,el ); |
|
|
|
@ -25637,7 +25638,7 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
var utils = baidu.editor.utils, |
|
|
|
|
uiUtils = baidu.editor.ui.uiUtils, |
|
|
|
|
UIBase = baidu.editor.ui.UIBase; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TablePicker = baidu.editor.ui.TablePicker = function (options){ |
|
|
|
|
this.initOptions(options); |
|
|
|
|
this.initTablePicker(); |
|
|
|
@ -25721,7 +25722,7 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
var browser = baidu.editor.browser, |
|
|
|
|
domUtils = baidu.editor.dom.domUtils, |
|
|
|
|
uiUtils = baidu.editor.ui.uiUtils; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var TPL_STATEFUL = 'onmousedown="$$.Stateful_onMouseDown(event, this);"' + |
|
|
|
|
' onmouseup="$$.Stateful_onMouseUp(event, this);"' + |
|
|
|
|
( browser.ie ? ( |
|
|
|
@ -25730,7 +25731,7 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
: ( |
|
|
|
|
' onmouseover="$$.Stateful_onMouseOver(event, this);"' + |
|
|
|
|
' onmouseout="$$.Stateful_onMouseOut(event, this);"' )); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baidu.editor.ui.Stateful = { |
|
|
|
|
alwalysHoverable: false, |
|
|
|
|
target:null,//目标元素和this指向dom不一样
|
|
|
|
@ -27355,7 +27356,7 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
setValue : function(value){ |
|
|
|
|
this._value = value; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
utils.inherits(MenuButton, SplitButton); |
|
|
|
|
})(); |
|
|
|
@ -28985,7 +28986,7 @@ UE.ui = baidu.editor.ui = {};
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(var key in UE._customizeUI){ |
|
|
|
|
var obj = UE._customizeUI[key] |
|
|
|
|
var itemUI,index; |
|
|
|
|