mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
add wrapper class for lightboxes
This commit is contained in:
@@ -147,6 +147,7 @@ class CookedPostProcessor
|
||||
def add_lightbox!(img, original_width, original_height, upload=nil)
|
||||
# first, create a div to hold our lightbox
|
||||
lightbox = Nokogiri::XML::Node.new("div", @doc)
|
||||
lightbox["class"] = "lightbox-wrapper"
|
||||
img.add_next_sibling(lightbox)
|
||||
lightbox.add_child(img)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user