var newwindow var XSbaseURL XSbaseURL = 'http://audioconnection.infomaxim.com/infomaxim' XSProfile = 'AudioConnection' // insert the ckEditor styles from file in config if exists function LoadEditor(editor_id,css_file,style_file,target,editor) { removeEditor(); if (css_file.length == 0) { css_file = 'content.css'; } if (editor=='ckEditorBasic') { if (CKEDITOR.instances[target]) { CKEDITOR.remove(CKEDITOR.instances[target]); } CKeditorInstance= CKEDITOR.appendTo(target, { toolbar : [ ['Bold', 'Italic', '-','Undo','Redo','-','Find','Replace','-','NumberedList', 'BulletedList','Outdent','Indent','-', 'Link','Unlink', '-', 'SpellChecker', 'Scayt'] ], removePlugins : 'elementspath', contentsCss : '/Infomaxim/Profiles/' + XSProfile + '/'+css_file } ); } else if (editor=='ckEditor') { if (CKEDITOR.instances[target]) { CKEDITOR.remove(CKEDITOR.instances[target]); } CKeditorInstance= CKEDITOR.appendTo(target, { toolbar : [ ['Source','-','NewPage'], ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'], ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'HiddenField'], '/', ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'], ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['Link','Unlink','Anchor'], ['Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'], '/', ['Styles','Format','Font','FontSize'], ['TextColor','BGColor'], ['Maximize', 'ShowBlocks','-','About'], ['infomaximLibrary','infomaximFile'] ], removePlugins : 'elementspath', contentsCss : '/Infomaxim/Profiles/' + XSProfile + '/'+css_file } ); } else { var XStandard ; XStandard = ''; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; if (String(style_file).length > 0){ XStandard += ' '; } else { XStandard += ' '; } XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; XStandard += ' '; //'aurora_html_editor'+editor_id document.getElementById(target).innerHTML = XStandard } } function xsButtonClicked(id, button, state) { //alert('Editor: ' + id + '; function: xsButtonClicked(); button: ' + button); if (button == 'wizard') { //open asset matrix in a pop-up window OpenEditorAssets(id); } } function xsContentChanged(id) { //alert('Editor: ' + id + '; function: xsContentChanged()'); } function xsModeChanged(id) { //alert('Editor: ' + id + '; function: xsModeChanged()'); } function xsContextMenuClicked(id, menu) { //alert('Editor: ' + id + '; function: xsContextMenuClicked(); menu: ' + menu); } function OpenWindow(url) { newwindow=window.open(url,'name','height=700,width=740,left=100,top=200,resizable=yes,scrollbars=yes,toolbar=no,status=yes'); } function removeEditor(target) { if (!CKeditorInstance) { return; } CKeditorInstance.destroy(target); CKeditorInstance= null; }