mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
에디터컴포넌트 더블클릭하여 수정시 생기는 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6271 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0581c5efa5
commit
82bf0f7c72
2 changed files with 10 additions and 7 deletions
|
|
@ -5459,6 +5459,10 @@ xe.XE_XHTMLFormatter = $.Class({
|
|||
|
||||
TO_IR : function(sContent) {
|
||||
var stack = [];
|
||||
|
||||
// remove xeHandled attrs
|
||||
sContent = sContent.replace(/xeHandled="YES"/ig,'');
|
||||
|
||||
|
||||
// remove all useless styles
|
||||
sContent = sContent.replace(regex_meanless_css1, function(m0,m1,m2,m3){
|
||||
|
|
@ -5665,25 +5669,22 @@ xe.XE_Extension = jQuery.Class({
|
|||
|
||||
var doc = this.oApp.getWYSIWYGDocument();
|
||||
var seq = this.seq;
|
||||
var prevComponent = null;
|
||||
var fn = function(){
|
||||
var obj = jQuery(this);
|
||||
var comp = obj.attr('editor_component');
|
||||
if(prevComponent == comp) return false;
|
||||
prevComponent = comp;
|
||||
|
||||
if (comp && jQuery.isFunction(openComponent)) {
|
||||
editorPrevNode = obj.get(0);
|
||||
openComponent(comp, seq);
|
||||
}
|
||||
|
||||
setTimeout(500, function() { prevComponent = null; });
|
||||
};
|
||||
|
||||
jQuery('img,div[editor_component]', doc).each(function(){
|
||||
var obj = jQuery(this);
|
||||
if(this.nodeName == 'IMG' && !obj.attr('editor_component')) obj.attr('editor_component','image_link')
|
||||
obj.dblclick(fn);
|
||||
if(!obj.attr('xeHandled')) {
|
||||
obj.attr('xeHandled','YES');
|
||||
obj.dblclick(fn);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
<div style="width:600px;">
|
||||
{$popup_content}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue