Install this module using the official Backdrop CMS instructions at https://backdropcms.org/guide/modules.
If planning to use Insert with Images, make sure the core Image module is enabled.
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.
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.
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
[style-name] is the name of
the Image style. Change underscores to hyphens in the style name.
Bugs and Feature requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/insert/issues.
Peter Anderson (https://github.com/BWPanda)
- Ported to Backdrop by Herb v/d Dool (https://github.com/herbdool).
- Originally written for Drupal by Nate Haug (https://github.com/quicksketch).
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.