Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding support for tiny_mce plugins, which add plugins after tiny_mce…

… is setup
  • Loading branch information...
commit 16ab9054888ea39eead897226d72b3eaf6c20578 1 parent 26b4eb8
Kieran Pilkington authored

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. +11 0 lib/tiny_mce.rb
11 lib/tiny_mce.rb
@@ -72,6 +72,17 @@ def self.install_or_update_tinymce
72 72 module Base
73 73 include TinyMCE::SpellChecker
74 74 end
  75 +
  76 + # Plugin Support
  77 + class Plugin
  78 + cattr_accessor :assets_path
  79 + def self.install
  80 + return unless File.directory?(self.assets_path)
  81 + require 'fileutils'
  82 + puts "Installing #{self.name} plugin assets from #{self.assets_path}"
  83 + FileUtils.cp_r "#{self.assets_path}/.", File.join(Rails.root.to_s, 'public', 'javascripts', 'tiny_mce')
  84 + end
  85 + end
75 86 end
76 87
77 88 # Finally, lets include the TinyMCE base and helpers where

0 comments on commit 16ab905

Please sign in to comment.
Something went wrong with that request. Please try again.