Module: Alchemy::Tinymce

Defined in:
lib/alchemy/tinymce.rb

Constant Summary

@@plugins =
%w(alchemy_link anchor autoresize charmap code directionality fullscreen hr link paste tabfocus table)
@@languages =
['en', 'de']
@@init =
{
  skin: 'alchemy',
  width: '100%',
  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'
}

Class Method Summary collapse

Class Method Details

.custom_config_contents(page) ⇒ Object



35
36
37
# File 'lib/alchemy/tinymce.rb', line 35

def custom_config_contents(page)
  content_definitions_from_elements(page.descendent_element_definitions)
end

.initObject



31
32
33
# File 'lib/alchemy/tinymce.rb', line 31

def init
  @@init
end

.init=(settings) ⇒ Object



27
28
29
# File 'lib/alchemy/tinymce.rb', line 27

def init=(settings)
  @@init.merge!(settings)
end