mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
에디터에 들여쓰기, 내쓰기 추가. 동작이 원활하지 않음. 차후 손봐야함
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2575 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
fab81b9cc3
commit
5057a6123e
2 changed files with 14 additions and 2 deletions
|
|
@ -71,7 +71,6 @@
|
|||
<!--<img src="./images/editor_btn_aj.gif" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />-->
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="buttonGroup">
|
||||
<img src="./images/editor_btn_od.gif" title="{$lang->edit->help_remove_indent}" alt="{$lang->edit->help_remove_indent}" id="component_{$editor_sequence}_outdent" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
||||
<img src="./images/editor_btn_id.gif" width="23" height="63" title="{$lang->edit->help_add_indent}" alt="{$lang->edit->help_add_indent}" id="component_{$editor_sequence}_indent" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
||||
|
|
@ -82,6 +81,7 @@
|
|||
<img src="./images/editor_btn_ul.gif" title="{$lang->edit->help_list_bullet}" alt="{$lang->edit->help_list_bullet}" id="component_{$editor_sequence}_insertunorderedlist" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="buttonGroup">
|
||||
<img src="./images/editor_btn_lh.gif" alt="Line hight" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -357,9 +357,21 @@ function editorKeyPress(evt) {
|
|||
if (xIE4Up && !e.ctrlKey && !e.shiftKey && e.keyCode == 13 && editor_mode[editor_sequence]!='html') {
|
||||
var iframe_obj = editorGetIFrame(editor_sequence);
|
||||
if(!iframe_obj) return;
|
||||
|
||||
var contentDocument = iframe_obj.contentWindow.document;
|
||||
|
||||
var obj = contentDocument.selection.createRange();
|
||||
obj.pasteHTML("<br />\n");
|
||||
|
||||
var pTag = obj.parentElement().tagName.toLowerCase();
|
||||
|
||||
switch(pTag) {
|
||||
case 'li' :
|
||||
return;
|
||||
break;
|
||||
default :
|
||||
obj.pasteHTML("<br />\n");
|
||||
break;
|
||||
}
|
||||
obj.select();
|
||||
evt.cancelBubble = true;
|
||||
evt.returnValue = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue