Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

IMG button

edited January 2012 in Vanilla 2.0 - 2.8

hello!

when i press the img button i get

!()

instead of

![]()

thus images do not display, any clue on how to fix this

Tagged:

Best Answer

  • sahotataransahotataran ✭✭✭
    Answer ✓

    look for

    PerformMarkdown: function(TextArea, Operation) {

    in your

    buttonbar/js/buttonbar.js

    and check for

    case 'image':
                   var thisOpts = $.extend(markdownOpts, {

    to be like

     case 'image':
                   var thisOpts = $.extend(markdownOpts, {
                      prefix:'',
                      opentag:'![](',
                      closetag:')',
                      opener:'',
                      closer:''
                   });

    There was an error rendering this rich post.

Answers

  • sahotataransahotataran ✭✭✭
    Answer ✓

    look for

    PerformMarkdown: function(TextArea, Operation) {

    in your

    buttonbar/js/buttonbar.js

    and check for

    case 'image':
                   var thisOpts = $.extend(markdownOpts, {

    to be like

     case 'image':
                   var thisOpts = $.extend(markdownOpts, {
                      prefix:'',
                      opentag:'![](',
                      closetag:')',
                      opener:'',
                      closer:''
                   });

    There was an error rendering this rich post.

  • but did you download the latest button bar from the addons section? if yes then it might need to be updated.

    There was an error rendering this rich post.

  • edited January 2012

    yep, i just checked it, the code has that bug. Needs to be updated.

    Thanks for all the support @sahotataran

  • You are welcome @PHiLHXC

    @Todd @Tim you might have to update the buttonbar to the latest version in the addons section or please specify a GitHub location for Button Bar so that the users can download latest from there.

    Thanks

    There was an error rendering this rich post.

  • ToddTodd Vanilla Staff

    Will do...

Sign In or Register to comment.