Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
spohlenz committed Mar 17, 2012
0 parents commit e260ab5
Show file tree
Hide file tree
Showing 1,270 changed files with 1,323 additions and 0 deletions.
18 changes: 18 additions & 0 deletions LICENSE
@@ -0,0 +1,18 @@
Copyright (C) 2012 by Sam Pohlenz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
17 changes: 17 additions & 0 deletions README.md
@@ -0,0 +1,17 @@
Language Packs for tinymce-rails
================================

The `tinymce-rails-langs` gem adds language packs for [TinyMCE](http://www.tinymce.com/) (with [tinymce-rails](https://github.com/spohlenz/tinymce-rails)).


Instructions
------------

**Add the `tinymce-rails-langs` gem to your Gemfile**

gem 'tinymce-rails'
gem 'tinymce-rails-langs'

Language files will then be available during development mode and will be copied across when the `assets:precompile` rake task is run.

See the [tinymce-rails project](https://github.com/spohlenz/tinymce-rails) for further integration instructions.
7 changes: 7 additions & 0 deletions lib/tasks/assets.rake
@@ -0,0 +1,7 @@
Rake::Task['assets:precompile:primary'].enhance do
assets = File.expand_path(File.dirname(__FILE__) + "/../../vendor/assets/javascripts/tinymce")
target = File.join(Rails.public_path, Rails.application.config.assets.prefix)

mkdir_p target
cp_r assets, target
end
2 changes: 2 additions & 0 deletions lib/tinymce-rails-langs.rb
@@ -0,0 +1,2 @@
require "tinymce/rails"
require "tinymce/rails/languages"
4 changes: 4 additions & 0 deletions lib/tinymce/rails/languages.rb
@@ -0,0 +1,4 @@
module TinyMCE::Rails
class Languages < ::Rails::Engine
end
end
11 changes: 11 additions & 0 deletions tinymce-rails-langs.gemspec
@@ -0,0 +1,11 @@
Gem::Specification.new do |s|
s.name = "tinymce-rails-langs"
s.version = "0.1"
s.summary = "Language packs for tinymce-rails."
s.description = "Seamlessly integrates TinyMCE into the Rails asset pipeline introduced in Rails 3.1."
s.files = Dir["README.md", "LICENSE", "lib/**/*", "vendor/**/*"]
s.authors = ["Sam Pohlenz"]
s.email = "sam@sampohlenz.com"

s.add_dependency "tinymce-rails"
end
1 change: 1 addition & 0 deletions vendor/assets/javascripts/tinymce/langs/ar.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions vendor/assets/javascripts/tinymce/langs/az.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/assets/javascripts/tinymce/langs/be.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions vendor/assets/javascripts/tinymce/langs/bg.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions vendor/assets/javascripts/tinymce/langs/bn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e260ab5

Please sign in to comment.