Please upgrade here. These earlier versions are no longer being updated and have security issues.

IMG button

This discussion is related to the Button Bar addon.
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 Developer, Bay Area - CA ✭✭✭
    Accepted 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:''
                   });

Answers

Sign In or Register to comment.