Kanka Lightbox Creator

Changes a standard image in a Kanka entry into a thumbnail-and-lightbox combo

作者
Salvatos
日安装量
0
总安装量
5
评分
0 0 0
版本
2
创建于
2022-04-03
更新于
2023-11-12
大小
3.8 KB
许可证
MIT
适用于

Creates a lightbox around a selected image tag in Kanka’s Summernote editor (code view only). This script is a companion to my Simple Lightbox theme on the Marketplace and includes no styling on its own. In other words, the lightbox’s appearance and behaviour are controlled by the theme; this script only makes it easier to produce the necessary markup. Just go into Code View, select the image tag you want to turn into a lightbox, and click the "stacked pictures" button in the toolbar.

  • The script automatically creates a unique ID (based on the current timestamp) for your image so you don’t have to keep track of them to avoid conflicting lightboxes on a given page.
  • If a title attribute is present on the highlighted image, the script will automatically copy it over to the lightbox to display as a caption under the image.


If my scripts are making your life easier, please consider tipping via Ko-fi (no account needed):

Support me on Ko-fi.com

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址