Kanka Editor Toolkit

Adds toolbar buttons to Summernote to quickly insert custom HTML elements or classes.

These are versions of this script where the code was updated. Show all versions.

  • v14 2023-11-12
    • Domain matching updated to app.kanka.io
    • Renamed the script and reworded the description and button tooltips to put less emphasis on the Marketplace, since you can also use it for your own HTML and classes, and Kanka’s built-in classes.
    • Since the Spoiler block HTML inserter was added in the last version, I am merging in my unpublished Spoiler State Saver script. By default, Summernote does not save the open/closed state of spoilers if you toggle them and make no other changes before saving. That won’t be an issue when you are running this extension :)
    • Changed the Summernote event watcher to detect more instances, such as the map marker form. There is a chance this broke the script for other pages that used to work, so please let me know if you find any.
  • v13 2023-08-02

    Spoiler block (details/summary) added to the HTML inserter by default to make up for that button’s removal in Kanka 1.44. No flag is necessary to activate it.

  • v12.2 2023-06-21

    Minor update to an over-aggressive CSS rule affecting buttons outside this script's scope.

  • v12 2023-06-20
    • Clicking an option or a modal button should no longer scroll to the top of the page.
    • Removed a few out-of-the-box Bootstrap classes that have been removed from Kanka.
    • Removed the "ExT Empty Link" HTML inserter option, since that code is not necessary anymore.
    • CSS updated for Kanka 1.43 compatibility.
  • v11 2023-02-04
    • Updated modal header styling to match Kanka updates
    • Fixed accidental deletion of selected content when opening the ExT helper
    • Added support and a helper for Easy Tabs by Salvatos
    • Minor CSS and code cleanup
  • v10 2022-11-22
    • You can now create your own HTML shortcuts for quick access to frequently used blocks of HTML. Those are set using CSS custom properties, like custom class names. See updated script description for instructions.
  • v9 2022-11-13
    • Added "no-transclusion" and "transclusion-only" to Context-Aware Classes to manage content transcluded using field:entry mentions.
  • v8 2022-09-11
    • You may now add your own classes to the plugin’s class injector via a custom property, on a per-campaign basis.
  • v7 2022-07-11
    • Updated the Extraordinary Tooltips helper to match Beta 2 (new wrapper class and entry mention class), and fixed the inserter checking the wrong flag to determine whether the plugin was installed.
    • Added "no-ExT" and "ExT-only" to Context-Aware Classes for Extraordinary Tooltips.
    • Added "no-tooltip" to Context-Aware Classes now that Kanka allows some HTML/CSS in tooltips. This will only work on HTML elements that are allowed in tooltips.
    • Added "clear" to Bootstrap classes (though this one is actually from Kanka) */
  • v6 2021-12-12
    • A new "Extraordinary Tooltips Helper" option was added to the HTML inserter dropdown instead of preset code samples for this plugin. Choosing that option will open a modal where you can quickly choose settings and get the right markup for each use case. A visual example is provided in real time.
    • Dropdowns have been realigned to avoid running past the right edge of the screen in some scenarios.
  • v5 2021-12-12
    • Added support for Extraordinary Tooltips by Salvatos.
  • v4 2021-12-05
    • Added new print and editor classes in Context-Aware Classes by Salvatos.
    • Added text-center to Bootstrap classes.
    • Removed temporary bypasses for initial release (only themes that are explicitly supported by their author are now included).
    • Adjusted CSS to try and integrate with various themes. All official themes should look fine; let me know if anything looks odd using a different theme.
  • v3 2021-08-10

    Fixed the class injector not inserting anything.

  • v2 2021-08-02
    • Code snippets that are more appropriate (and flexible) as class toggles have been moved to the class injector.
    • Figure Box and Simple Tooltips now have both a single default code snippet that can be injected and a list of optional classes that can be toggled in the respective dropdowns.
    • Removed filter bypass for themes that have proper support (by Salvatos and Ornstein). 5 themes are currently supported and must be enabled in the campaign, and 3 are included forcefully for the time being.
    • Fixed a bug that inserted non-existing classes when clicking documentation links in the class list.
    • Minor adjustments to the class list's appearance.
    • Internal clean-up to make future maintenance easier.
  • v1 2021-08-01