Hi Craig,

You should check the `documentWillInsertTextForDroppedImageFile` document 
attachment point.

Manual page: 347/348

    on documentWillInsertTextForDroppedImageFile(theDocument, theImageFile, 
proposedText)
        tell application "Acorn" to open theImageFile
        return proposedText
    end documentWillInsertTextForDroppedImageFile.

HTH,

Jean Jourdain

On Friday, May 27, 2022 at 6:34:40 PM UTC+2 craigh wrote:

> I know that I can drag an image file into a BBEdit markdown document and 
> BBEdit will give me a markdown reference like so (image and markdown 
> document are in the same folder):
>
> ![<# alt text #>](diagram.png "diagram.png")
>
> I often have to adjust the size of an image in markdown documents so I end 
> up having to change the markdown references to HTML image tags something 
> like this:
>
> <img src="diagram.png" alt="my diagram" width="200" />
>
> Is there a way to change the default BBEdit behavior to get an HTML tag 
> instead of a markdown reference when dragging an image file into the 
> document?
>
> Thanks,
>
> Craig
>
>
> --
> Craig Heilman
> Bugaboo Software
>
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/9374b397-17ac-4ff1-bed4-2c236d632762n%40googlegroups.com.

Reply via email to