Code Monkey home page Code Monkey logo

redactor-clips's Introduction

Redactor Clips for Craft CMS

This plugin Adds Redactor’s “Clips” plugin to Rich Text fields in Craft, which lets you insert predefined code snippets.

Requirements

This plugin requires Craft CMS 3.0.0-beta.26 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require craftcms/redactor-clips
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Redactor Clips.

  4. Open your craft/config/redactor/ folder, and add the clips plugin in whichever Redactor configs you want it to be enabled in:

"plugins": ["clips" /* , ... */ ]
  1. Any Redactor fields using those configs will have a “Clips” menu button with your custom defined clips in it.

redactor-clips's People

Contributors

angrybrad avatar brandonkelly avatar erikreagan avatar makeilalundy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

redactor-clips's Issues

Searching for Clips :)

Installed Clips, Created clips > but cant see them on any Redactor Tooolbar

Did i missed anything?

Uncaught TypeError

I'm getting an error after installing and including clips on a toolbar.

Uncaught TypeError: this.modal.createCancelButton is not a function

It's pointing to line 44 in clips.js

this.modal.createCancelButton();

Craft Pro 2.5.2759

Clips not being saved in the database

After I installed the plugin I went to the Plugin settings to add a new Clip. I click '+ Add a row' and type in the name and HTML for the clip. After I add the clip and click 'Save' I get the message 'Plugin Settings saved' but when I go back to the plugin the clip I added there is not displayed. Also, it's not showing in the Redactor itself.

Parse Twig Blocks?

Would usually use matrix but have a very specific need to pump out some craft globals data in various redactor fields.

Any plans to allow clips to parse twig template code?
Is it even possible to add?

Classes stripped off UL

Everything in okay html wise except if I try it with an unordered list. If there is a class on the UL the class gets stripped. I have turned off the clean html etc for the rich text editor so it doesn't strip styles.

Does not seem to work with latest release of Redactor

Fresh install of Craft 3 v3.0.6 and Redactor v2.0.1.

My Standard.json looks like this:

{
  "buttons": ["formatting", "bold", "italic", "unorderedlist", "orderedlist", "link", "image", "video","html"],
  "plugins": ["fullscreen", "video", "clips", "table"],
  "toolbarFixed": true
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.