Sha256: 2c94e6ae595aeba09ee9e2acf905f6284e99c4dccb1d09ed9c05340925ef81a9

Contents?: true

Size: 981 Bytes

Versions: 20

Compression:

Stored size: 981 Bytes

Contents

# frozen_string_literal: true

module Alchemy
  module Tinymce
    mattr_accessor :languages, :plugins

    @@plugins = %w[alchemy_link anchor autoresize charmap code directionality fullscreen hr link lists paste tabfocus table]
    @@init = {
      skin: "alchemy",
      width: "auto",
      resize: true,
      autoresize_min_height: "105",
      autoresize_max_height: "480",
      menubar: false,
      statusbar: true,
      toolbar: [
        "bold italic underline | strikethrough subscript superscript | numlist bullist indent outdent | removeformat | fullscreen",
        "pastetext charmap hr | undo redo | alchemy_link unlink anchor | code"
      ],
      fix_list_elements: true,
      convert_urls: false,
      entity_encoding: "raw",
      paste_as_text: true,
      element_format: "html",
      branding: false
    }

    class << self
      def init=(settings)
        @@init.merge!(settings)
      end

      def init
        @@init
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
alchemy_cms-7.0.16 lib/alchemy/tinymce.rb
alchemy_cms-7.0.15 lib/alchemy/tinymce.rb
alchemy_cms-7.0.14 lib/alchemy/tinymce.rb
alchemy_cms-7.0.13 lib/alchemy/tinymce.rb
alchemy_cms-7.0.12 lib/alchemy/tinymce.rb
alchemy_cms-7.0.11 lib/alchemy/tinymce.rb
alchemy_cms-7.0.10 lib/alchemy/tinymce.rb
alchemy_cms-7.0.9 lib/alchemy/tinymce.rb
alchemy_cms-7.0.8 lib/alchemy/tinymce.rb
alchemy_cms-7.0.7 lib/alchemy/tinymce.rb
alchemy_cms-7.0.6 lib/alchemy/tinymce.rb
alchemy_cms-7.0.5 lib/alchemy/tinymce.rb
alchemy_cms-7.0.4 lib/alchemy/tinymce.rb
alchemy_cms-7.0.3 lib/alchemy/tinymce.rb
alchemy_cms-7.0.2 lib/alchemy/tinymce.rb
alchemy_cms-7.0.1 lib/alchemy/tinymce.rb
alchemy_cms-7.0.0 lib/alchemy/tinymce.rb
alchemy_cms-7.0.0.pre.rc1 lib/alchemy/tinymce.rb
alchemy_cms-7.0.0.pre.c lib/alchemy/tinymce.rb
alchemy_cms-7.0.0.pre.b lib/alchemy/tinymce.rb