xquared 확장콤포넌트 사용가능하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3062 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2007-11-23 14:40:44 +00:00
parent 61c1c53634
commit cc46a20754
7 changed files with 260 additions and 226 deletions

View file

@ -30,6 +30,11 @@ function editorGetContent_xq(editor_sequence) {
function editorStart_xq(editor, element, editor_sequence, content_key, editor_height, primary_key) {
editor = new xq.Editor(element);
var additionalAttributes = ['editor_component', 'poll_srl','multimedia_src', 'auto_start', 'link_url', 'editor_sequence'];
var additionalTags = ['embed', 'param', 'object'];
additionalAttributes.each( function (item, index) {
editor.config.allowedAttributes.push(item); } );
additionalTags.each( function (item, index) { editor.config.allowedTags.push(item); } );
editorRelKeys[editor_sequence] = new Array();
editorRelKeys[editor_sequence]['editor'] = editor;
@ -62,8 +67,15 @@ function editorStart_xq(editor, element, editor_sequence, content_key, editor_he
editor.loadStylesheet(request_uri+editor_path+"/examples/css/xq_contents.css");
editor.getFrame().style.width = "100%";
editor.getFrame().parentNode.style.height = editor_height;
editor.getBody().setAttribute('editor_sequence', editor_sequence);
editor.addAutocompletions(getAdditionalAutocompletions());
// 위젯 감시를 위한 더블클릭 이벤트 걸기
try {
xAddEventListener(editor.getFrame().contentWindow.document,'dblclick',editorSearchComponent);
} catch(e) {
}
if(typeof(fo_obj._saved_doc_title)!="undefined" ) editorEnableAutoSave(fo_obj, editor_sequence);
}