Index: img_assist.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.js,v retrieving revision 1.4 diff -u -p -r1.4 img_assist.js --- img_assist.js 13 Feb 2007 22:48:31 -0000 1.4 +++ img_assist.js 3 Mar 2007 06:26:13 -0000 @@ -131,6 +131,12 @@ function insertImage() { return true; } else if (formObj['edit-insertmode'].value == 'html2') { // HTML step 2 (processed code, ready to be inserted) var content = getHTML(formObj); + } else if (formObj['edit-insertmode'].value == 'mediawiki') { + var content = getMediawikiFilterTag(formObj); + } else if (formObj['edit-insertmode'].value == 'dokuwiki') { + var content = getDokuwikiFilterTag(formObj); + } else if (formObj['edit-insertmode'].value == 'creole') { + var content = getCreoleFilterTag(formObj); } else { var content = getFilterTag(formObj); } Index: img_assist.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist.module,v retrieving revision 1.68.2.3 diff -u -p -r1.68.2.3 img_assist.module --- img_assist.module 23 Feb 2007 22:30:04 -0000 1.68.2.3 +++ img_assist.module 3 Mar 2007 06:26:14 -0000 @@ -315,7 +315,12 @@ function img_assist_admin_settings() { '#type' => 'select', '#title' => t('Default insert mode'), '#default_value' => variable_get('img_assist_default_insert_mode', 'none'), - '#options' => array('filtertag' => t('Filter Tag'), 'html' => t('HTML Code')), + '#options' => array( + 'filtertag' => t('Filter Tag'), + 'html' => t('HTML Code'), + 'mediawiki' => t('Mediawiki Tag'), + 'dokuwiki' => t('Dokuwiki Tag'), + 'creole' => t('Creole Tag')), '#description' => t('The link behavior can be overriden when inserting images by users with the proper permissions, but these defaults will still be used for everyone else.'), ); $form['properties']['img_assist_load_title'] = array( @@ -951,7 +956,12 @@ function img_assist_properties_form($nod '#type' => 'select', '#title' => t('Insert mode'), '#default_value' => variable_get('img_assist_default_insert_mode', 'filtertag'), - '#options' => array('filtertag' => t('Filter Tag'), 'html' => t('HTML Code')), + '#options' => array( + 'filtertag' => t('Filter Tag'), + 'html' => t('HTML Code'), + 'mediawiki' => t('Mediawiki Tag'), + 'dokuwiki' => t('Dokuwiki Tag'), + 'creole' => t('Creole Tag')), ); $form[] = array('#value' => "\n"); } else { Index: img_assist_textarea.js =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/Attic/img_assist_textarea.js,v retrieving revision 1.2 diff -u -p -r1.2 img_assist_textarea.js --- img_assist_textarea.js 13 Feb 2007 22:48:31 -0000 1.2 +++ img_assist_textarea.js 3 Mar 2007 06:26:14 -0000 @@ -76,6 +76,41 @@ function getFilterTag(formObj) { return content; } +function getDokuwikiFilterTag(formObj) { + var captionTitle = formObj['edit-title'].value; + var captionDesc = formObj['edit-desc'].value; + var width = formObj['edit-width'].value; + var height = formObj['edit-height'].value; + + // Create the image tag + var content = '{{wiki:' + captionTitle + '?' + width + 'x' + height + 'px' + '|' + captionDesc + '}}'; + + return content; +} + +function getCreoleFilterTag(formObj) { + var captionTitle = formObj['edit-title'].value; + var captionDesc = formObj['edit-desc'].value; + + // Create the image tag + var content = '{{' + captionTitle + '|' + captionDesc + '}}'; + + return content; +} +function getMediawikiFilterTag(formObj) { + var nid = formObj['edit-nid'].value; + var captionTitle = formObj['edit-title'].value; + var captionDesc = formObj['edit-desc'].value; + var align = formObj['edit-align'].value; + var width = formObj['edit-width'].value; + var height = formObj['edit-height'].value; + + // Create the image tag + var content = '[[Image:' + captionTitle + '|' + align + '|' + width + 'x' + height + 'px' + '|' + captionDesc + ']]'; + + return content; +} + function insertToEditor(content) { // Insert the image /* IE */