diff --git a/Code/Module/Embedfiles.php b/Code/Module/Embedfiles.php index feb556bf2..8880cdd86 100644 --- a/Code/Module/Embedfiles.php +++ b/Code/Module/Embedfiles.php @@ -197,6 +197,16 @@ class Embedfiles extends Controller logger('unable to read svg data file: '.'store/'. $channel['channel_address'] .'/'. $_POST['os_path']); } break; + case "text/vnd.abc": + if (Addon::is_installed('abc')) { + $x = @file_get_contents('store/'. $channel['channel_address'] .'/'. $_POST['os_path']); + if ($x) { + $output .= "\n\n" . '[abc]' . $x . '[/abc]'; + } else { + logger('unable to read ABC data file: ' . 'store/' . $channel['channel_address'] . '/' . $_POST['os_path']); + } + } + break; default: return ''; } diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index a3d7bfe7d..40d13eefc 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -810,6 +810,10 @@ let postSaveTimer = null; let sendsvg_id = `embedFiles_${result.id}`; $( document ).ready(function() { document.getElementById(sendsvg_id).addEventListener("click", function() { setEmbedFiles2(result); }); }); return `
  • ${result.filename}

  • `; + case "text/vnd.abc": + let sendabc_id = `embedFiles_${result.id}`; + $( document ).ready(function() { document.getElementById(sendabc_id).addEventListener("click", function() { setEmbedFiles2(result); }); }); + return `
  • ${result.filename}

  • `; //case "text/html": //case "text/vnd.abc": {{* let sendabc = `[abc]/cloud/${address}/${result.display_path}[/abc]`;