<commit_before>= TinymceFilemanager (v0.2)

TinyMCE wrapper, that takes care of managing media files (images, videos) and links within your application.

== Installation

This plugin require "RMagic" to work. RMagick is used to create thumbnails of images.

If you want, you can also manage multimedia files (ie. videos), but then you will need to have ffmpeg installed on your machine (thumb generation).

1. Install plugin using console:

    rails plugin install git://github.com/galdomedia/tinymce_filemanager.git

2. Run generators:

    rails generate tinymce_filemanager:installation
    rails generate tinymce_filemanager:icons_installation

3. Add include line in controller that will manage images ( controller Pages for example )

    include TinymceFilemanager

4. In layout (best in page <head> section) add:

    <%= tinymce_managed_javascript_tag "pages" %>

  where "pages" is name of controller from last step

5. Add tag in form:
	
    <%= tinymce_managed_tag "some_field_name", "some field content" %>
    
    or use builder method:
    
    <%= f.tinymce_managed :some_field_name %>

== Basic Usage

controller "pages":

  class PagesController < ApplicationController
    include TinymceFilemanager
    def index
    ...
  end

application layout:
 
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
      <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
      ...
      <%= tinymce_managed_javascript_tag "pages" %>
      ...<commit_msg>Rdoc Again<commit_after>= TinymceFilemanager (v0.2)

TinyMCE wrapper, that takes care of managing media files (images, videos) and links within your application.

== Installation

This plugin require "RMagic" to work. RMagick is used to create thumbnails of images.

If you want, you can also manage multimedia files (ie. videos), but then you will need to have ffmpeg installed on your machine (thumb generation).

1. Install plugin using console:

    rails plugin install git://github.com/galdomedia/tinymce_filemanager.git

2. Run generators:

    rails generate tinymce_filemanager:installation
    rails generate tinymce_filemanager:icons_installation

3. Add include line in controller that will manage images ( controller Pages for example )

    include TinymceFilemanager

4. In layout (best in page <head> section) add:

    <%= tinymce_managed_javascript_tag "pages" %>

where "pages" is name of controller from last step

5. Add tag in form:
	
    <%= tinymce_managed_tag "some_field_name", "some field content" %>
    
or use builder method:
    
    <%= f.tinymce_managed :some_field_name %>

== Basic Usage

controller "pages":

  class PagesController < ApplicationController
    include TinymceFilemanager
    def index
    ...
  end

application layout:
 
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
      <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
      ...
      <%= tinymce_managed_javascript_tag "pages" %>
      ...
{'fraction_non_alphanumeric': 0.09935602575896964, 'fraction_numerical': 0.011652867218644588, 'mean_word_length': 3.727536231884058, 'pattern_counts': {'":': 2, '<': 23, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1240879', 'n_tokens_mistral': 1069, 'n_tokens_neox': 971, 'n_words': 323}