From 937a0572fd281fd14039d23fd4cf91d3437f4fb8 Mon Sep 17 00:00:00 2001 From: Miguel Santirso Date: Wed, 7 May 2014 15:37:32 +0200 Subject: [PATCH] Remove unsupported options from BBCode tag Remove unsuported options `alt` and `title`. These options prevent Vanilla from properly rendering the image. Fix #1 --- js/imageupload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/imageupload.js b/js/imageupload.js index 5ee3bf9..ab15d20 100644 --- a/js/imageupload.js +++ b/js/imageupload.js @@ -36,7 +36,7 @@ $(function(){ imageCode = ''+filename+'\r\n'; break; case 'BBCode': - imageCode = '[img alt="'+filename+'" title="'+filename+'"]'+url+'[/img]\r\n'; + imageCode = '[img]'+url+'[/img]\r\n'; break; case 'Markdown': imageCode = '!['+filename+']('+url+' "'+filename+'")\r\n'; @@ -69,4 +69,4 @@ $(function(){ if (format == 'Raw' || format == 'Wysiwyg') format = 'Html'; return format; } -}); \ No newline at end of file +});