Module: Alchemy::Tinymce
- Defined in:
- lib/alchemy/tinymce.rb
Constant Summary collapse
- DEFAULT_PLUGINS =
%w[anchor charmap code directionality fullscreen hr link lists paste tabfocus table]
- @@plugins =
DEFAULT_PLUGINS + %w[alchemy_link]
- @@init =
{ skin: "alchemy", width: "auto", resize: true, min_height: 220, 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 Method Summary collapse
Class Method Details
.init ⇒ Object
34 35 36 |
# File 'lib/alchemy/tinymce.rb', line 34 def init @@init end |
.init=(settings) ⇒ Object
30 31 32 |
# File 'lib/alchemy/tinymce.rb', line 30 def init=(settings) @@init.merge!(settings) end |
.preloadable_plugins ⇒ Object
38 39 40 |
# File 'lib/alchemy/tinymce.rb', line 38 def preloadable_plugins @@plugins - DEFAULT_PLUGINS end |