npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tinymce-vartags

v1.1.2

Published

VarTags is a versatile plugin designed to simplify the management of customization variables within your text.

Downloads

5

Readme

TinyMCE VarTags

VarTags is a versatile plugin designed to simplify the management of customization variables within your text. This plugin streamlines the process of incorporating dynamic variables into your content, making it user-friendly and efficient for TinyMCE versions 5 and 6.

Features

  • Compatibility TinyMCE Version: 5.10.9 to Latest

  • Easy Integration: Seamlessly incorporate customization variables into your text content.

  • Versatility: Suitable for various applications, VarTags caters to the diverse needs of web developers and content creators.

    • VarTags can be inserted by either selecting them from a dropdown list when typing a specific prefix VarTags screen
    • or by selecting and inserting them from the menu button in the toolbar. VarTags screen

    Once a VarTag is inserted, the plugin encapsulates it with a non-editable variable.

How to Use

  1. Integration:

    • Include the VarTags plugin in your project.
    <script src="your/path/to/vartags/plugin.min.js"></script>
    • Or install.
    npm install tinymce-vartags
  2. Usage:

    • To incorporate the 'vartags' plugin in TinyMCE, follow the example below:
    // Example Usage
    window.tinymce.init({
      selector: 'your_selector',
      plugins: 'vartags',
      toolbar: 'vartagsbtn',
      vartags_prefix: '[*',
      vartags_suffix: '*]',
      vartags_items: []
    });
  3. Configuration Options

  • When using the VarTags plugin, you can customize its behavior with the following configuration options:

    • toolbar: 'vartagsbtn': Add the 'vartagsbtn' button to the toolbar, providing a convenient way for users to interact with VarTags.

    • vartags_prefix: '[*': Specify the prefix to identify the beginning of a variable tag. For example, if set to [* as shown in the example, a variable tag might look like [*variableName*] .

    • vartags_suffix: '*]': Define the suffix to identify the end of a variable tag. Using the example, a complete variable tag would be [*variableName*].

    • vartags_items: []: Populate this array with predefined variable items that users can select from when working with VarTags. Each item in the array should be an object with 'title' and 'value' properties. Additionally, you can include a menu property with an array of objects, each having 'title' and 'value' properties. This allows for nested menu structures. For example:

    vartags_items: [
      { title: 'User Name', value: 'userName' },
      { title: 'Ticket Number', value: 'ticketNumber' },
      {
        title: 'Ticket Menu',
        menu: [
          { title: 'Ticket Title', value: 'ticketTitle' },
          { title: 'Priority', value: 'priority' }
          // Add more items as needed
        ]
      }
      // Add more items as needed
    ];

Benefits

  • Enhanced User Experience: Improve the overall user experience by providing a straightforward solution for handling customization variables.

  • Time-Efficient: Save time and effort by utilizing VarTags to streamline the integration of dynamic variables.

Getting Started

  1. Installation:

    • Download the VarTags plugin and include it in your project..
  2. Configuration:

    • Integrate the plugin into your TinyMCE setup.
  3. Implementation:

    • Begin using VarTags to enhance your text content with dynamic customization variables.

Contributions

We welcome contributions from the community to enhance the functionality and features of VarTags. Feel free to submit bug reports, feature requests, or pull requests on our repository.

License

VarTags is released under the MIT License. Feel free to use, modify, and distribute this plugin according to the terms of the license.