Coder Social home page Coder Social logo

yorkshire-pudding / insert Goto Github PK

View Code? Open in Web Editor NEW

This project forked from backdrop-contrib/insert

0.0 0.0 0.0 64 KB

A Backdrop CMS port of drupal.org/project/insert, a utility that makes inserting images and links to files into text areas or WYSIWYGs much easier.

License: GNU General Public License v2.0

PHP 53.98% JavaScript 46.02%

insert's Introduction

Insert

Insert is a utility that makes inserting images and links to files into textareas or WYSIWYGs much easier. It adds a simple JavaScript-based button to File and Image fields. Images may be inserted into textareas with a specific image style.

Installation

  1. Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules.

  2. If planning to use Insert with Images, make sure the core Image module is enabled.

  3. Add or configure a File or Image field under Administer > Structure > Content types > [TYPE] > Manage fields (admin/structure/types/manage/[type]/fields). When configuring a field, there is a new section in the Field options for "Insert". You can then configure the field to include an Insert button and choose what templates you would like to have.

  4. Create a piece of content with the configured field. After uploading a file, an "Insert" button will appear. Click this button to send the file or image into the Body field.

    Insert should work on multiple fields (the last field that was active will receive the file), and with most popular WYSIWYG editors.

Theming

Insert can be configured to work with non-HTML filters like BBCode or Markdown. To do this, copy the template file you would like to change from the "templates" directory to your active theme's directory. Then clear your caches.

The Image templates may also be used per Image style. You can copy the image-insert-image.tpl.php file to your theme directory and then rename it to image-insert-image--[style-name].tpl.php, where [style-name] is the name of the Image style. Change underscores to hyphens in the style name.

Issues

Bugs and Feature requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/insert/issues.

Current Maintainers

Peter Anderson (https://github.com/BWPanda)

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

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.