Commit 2dd49709 authored by Curtis Adam's avatar Curtis Adam

Add support to enable a border on markdeep images

parent f47e8e75
......@@ -543,6 +543,7 @@ $themes: (
$markdeep_blockquote_text: map-get($map, "markdeep_blockquote_text");
$markdeep_blockquote_author: map-get($map, "markdeep_blockquote_author");
$markdeep_blockquote_quotes: map-get($map, "markdeep_blockquote_quotes");
$markdeep_image_border: map-get($map, "markdeep_image_border");
//transcript bonus colors
$transcript_bonus_info_text: map-get($map, "transcript_bonus_info_text");
//markdeep editor colors
......@@ -3013,6 +3014,9 @@ $themes: (
}
}
img {
border-color: $markdeep_image_border !important;
}
}
//transcript bonus colors
.transcript-info-text {
......
......@@ -585,6 +585,7 @@
"markdeep_blockquote_text": $thm_gray,
"markdeep_blockquote_author": $thm_gray,
"markdeep_blockquote_quotes": $thm_orange,
"markdeep_image_border": $thm_gray,
//transcript bonus colors
"transcript_bonus_info_text": $thm_orange,
//markdeep editor colors
......
......@@ -23,6 +23,7 @@ export let MarkdeepContent = class MarkdeepContent {
imageUrl = imageUrl.replace("http://", "https://");
$(this).attr('src', imageUrl);
$(this).attr('data-type', 'cardImage');
$(this).css('border', $(this).attr('border') + "px solid");
let wrapped = $(this).wrap('<div class="lightbox-container"><a href="' + imageUrl + '" class="lightbox-img" title="' + imageTitle + '" target="_blank" data-lightbox="' + item_id + '"></a></div>').parent().prop('outerHTML');
$(this).text(wrapped);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment