Giter Site home page Giter Site logo

jossim / bcms_kcfinder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from browsermedia/bcms_kcfinder

0.0 2.0 0.0 512 KB

A BrowserCMS module that adds file upload/browsing capability to CKEditor using the KCFinder project.

License: GNU Lesser General Public License v3.0

Ruby 66.54% JavaScript 29.09% CSS 4.37%

bcms_kcfinder's Introduction

KCFinder Module

This project is a BrowserCMS which integrates the KCFinder module with BrowserCMS. KCFinder enhances CKEditor to allow users to browse the server to find files, images and links to pages. KCFinder is an open source alternative to the commercial CKFinder module.

This module replaces the existing KCFinder PHP code for handling uploads and uses Rails to handle all server side code. This is not a general purpose Rails module, as the upload structure is designed to store files using BrowserCMS's Content API.

Features

  • Users can browse for links which will show Pages, Files and Images in a single Sitemap tree.
  • Users can select a section and see all assets
  • Can browse sections in sitemap
  • Users can select a page or file and link to it.
  • Users can browse for images and add them.
  • Icons work for most common types.
  • Can upload and link to files
  • Can upload and link to images

Installation

$ rails g cms:install bcms_kcfinder

When you start your server, you should see 'Browse Server' links when linking or placing images.

Third Party Software

This project integrates the KCFinder project (http://kcfinder.sunhater.com/) which is released under the GPL/LGPL license. See vendor/assets/javascript/kcfinder/doc/README for more details.

For the purposes of integration, all PHP code has been removed leaving only client code, specifically the following directories:

  • doc
  • js
  • themes

Troubleshooting

If you have issues after installing this gem (i.e. the browse button doesn't appear), take the following steps.

$ rake tmp:clear

This will clear the local asset pipeline cache, which is necessary if you had cached/generated JS configuration files that used the stock ckeditor config.

Jquery versions

This has been updated to work with JQuery 1.9.1 and later, which removed several features this module was depending on. The fix was to add jquery-migrate-rails. This may cause issues if you are using an earlier version of jquery.

TODO

Things remaining to be implemented:

  • Unknown extensions return 404s (i.e. CSV, etc)
  • Removed all UI i18n since it was implemented in PHP and the CMS itself isn't i18n yet.

bcms_kcfinder's People

Contributors

peakpg avatar jossim avatar

Watchers

 avatar James Cloos avatar

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.