About CKEditor Link Files

Adds a menu to CKEditor to allow the quick insertion of links to files.

Category Admin Helpers
Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules).
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Authorrobin-s
Module Version0.1.5
Class NameCkeLinkFiles
Compatibility3.0
Date AddedJanuary 11, 2018
Last UpdatedApril 16, 2018
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/CkeLinkFiles/
How to install or uninstall modules

README

CKEditor Link Files

A module for ProcessWire CMS/CMF. Adds a menu to CKEditor to allow the quick insertion of links to files on the page being edited.

link-files

Features

  • Hover a menu item to see the "Description" of the corresponding file (if present).
  • Click a menu item to insert a link to the corresponding file at the current cursor position. The filename is used as the link text.
  • If you Alt-click a menu item the file description is used as the link text (with fallback to filename if no description entered).
  • If text is currently selected in the editor then the selected text is used as the link text.
  • Click "* Insert links to all files *" to insert an unordered list of links to all files on the page. Also works with the Alt-click option.
  • Menu is built via AJAX so newly uploaded files are included in the menu without the page needing to be saved. However, descriptions are not available for newly uploaded files until the page is saved.

Installation

Install the CKEditor Link Files module.

For any CKEditor field where you want the "Insert link to file" dropdown menu to appear in the CKEditor toolbar, visit the field settings and add "LinkFilesMenu" to the "CKEditor Toolbar" settings field.

Comments

  • Horst

    Horst 9 months ago 00

    Doesn't work with 3.0.90 or with UiKit

    • Robin S

      Robin S 9 months ago 00

      Please use the forum support thread or GitHub to raise issues.
      Working okay with 3.0.90 and Uikit for me - only thing I noticed was bullets in the dropdown which I'll override in an update today.

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.