Kanka Summernote Marketplace theme HTML inserter

Adds a button to Summernote that inserts HTML snippets required by Marketplace themes.

2021-07-27 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ئاپتورى
Salvatos
باھا نومۇرى
0 0 0
نەشرى
1
قۇرۇلغان ۋاقتى
2021-07-27
يېڭىلانغان ۋاقتى
2021-07-27
Size
6.0 KB
ئىجازەتنامىسى
يوق
قوللايدىغىنى

Adds a dropdown button to Kanka’s Summernote editor toolbar that can be used to insert HTML snippets from various Marketplace themes with a simple click. No need to memorize or look up the code, nor to type it all in or copy-paste it into the editor. Just the select the plugin (and variant, if applicable) and edit its snippet as needed. This is compatible with both the visual and code editors.

In version 1, the snippet is added at the end of the editor. Future releases may be able to insert snippets at the cursor position.

To appear in the dropdown, a theme must be:

  • officially supported by the theme’s creator and this userscript’s maintainer;
  • installed and enabled on the campaign.

(For the initial release, Simple Tooltip and Tip Box are enabled by default whether or not you have installed them. This will be cleaned up as plugin makers start to officially support this script.)

Theme makers looking to add your plugins to this tool:

For your theme to be considered for addition, it will need:

  • to rely on adding HTML elements to the entry (themes that rely on adding classes to existing elements are not suitable for this script);
  • to contain a CSS custom property on the root element, which will act as a flag to let this script know that the plugin is enabled on a campaign. This flag will look like :root { --summernote-insert-<plugin-name>: enabled; }.

Please contact me (@Salvatos) via Kanka’s Discord (#marketplace channel) to get your theme added to the script. While not mandatory, I would also appreciate if your plugin’s description mentioned and linked to this script.