Sha256: b24a6d6baed44a568f0284760c71a5831a7a3fd500c19ee5f8a6f18fcc268204
Contents?: true
Size: 1.64 KB
Versions: 12
Compression:
Stored size: 1.64 KB
Contents
# -*- encoding : utf-8 -*- class AddTinymceCards < Card::Migration TINYMCE_CONFIG = <<-JSON.strip_heredoc { "width":"100%", "auto_resize":true, "relative_urls":false, "theme":"advanced", "theme_advanced_buttons1":"formatselect,bold,italic,separator,blockquote,bullist,numlist,hr,separator,code,removeformat", "theme_advanced_buttons2":"", "theme_advanced_buttons3":"", "theme_advanced_path":false, "theme_advanced_toolbar_location":"top", "theme_advanced_toolbar_align":"left", "theme_advanced_resizing":true, "theme_advanced_resize_horizontal":false, "theme_advanced_statusbar_location":"bottom", "theme_advanced_blockformats":"p,h1,h2,pre", "extended_valid_elements":"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]" } JSON def up ensure_card name: "*TinyMCE", type_id: Card::PlainTextID, codename: "tiny_mce", content: TINYMCE_CONFIG create_or_update( name: "*TinyMCE+*self+*help", content: "Configure [[http://tinymce.com|TinyMCE]], Wagn's default "\ "[[http://en.wikipedia.org/wiki/Wysiwyg|wysiwyg]] editor. "\ "[[http://wagn.org/TinyMCE|more]]" ) ensure_card name: "script: tinymce", type_id: Card::JavaScriptID, codename: "script_tinymce" ensure_card name: "script: tinymce config", type_id: Card::CoffeeScriptID, codename: "script_tinymce_config" end end
Version data entries
12 entries across 12 versions & 1 rubygems