mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 14:19:58 +09:00
textarea 에디터 미리보기에서 오류가 발생되는 문제 수정
This commit is contained in:
parent
77418672bb
commit
56d62a816f
5 changed files with 61 additions and 12 deletions
16
modules/editor/skins/textarea/js/interface.js
Normal file
16
modules/editor/skins/textarea/js/interface.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
function _getTextareaInstance(editor_sequence) {
|
||||
return jQuery('#textarea_instance_' + editor_sequence);
|
||||
}
|
||||
|
||||
function editorGetContent(editor_sequence) {
|
||||
return _getTextareaInstance(editor_sequence).val().escape();
|
||||
}
|
||||
|
||||
function editorReplaceHTML(iframe_obj, content) {
|
||||
var editor_sequence = parseInt(iframe_obj.id.replace(/^.*_/, ''), 10);
|
||||
_getTextareaInstance(editor_sequence).val(String(content).stripTags());
|
||||
}
|
||||
|
||||
function editorGetIFrame(editor_sequence) {
|
||||
return _getTextareaInstance(editor_sequence).get(0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue