Module: Card::Set::Type::Css::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod019-card-mod-style/type/css.rb,
card/tmpsets/set/mod020-card-mod-style/type/css.rb

Instance Method Summary collapse

Instance Method Details

#ace_modeObject



64
65
66
# File 'card/tmpsets/set/mod019-card-mod-style/type/css.rb', line 64

def ace_mode
  :css
end

#content_changes(action, diff_type, hide_diff = false) ⇒ Object



79
80
81
# File 'card/tmpsets/set/mod019-card-mod-style/type/css.rb', line 79

def content_changes action, diff_type, hide_diff=false
  wrap_with(:pre) { super }
end

#default_nest_viewObject



68
69
70
# File 'card/tmpsets/set/mod019-card-mod-style/type/css.rb', line 68

def default_nest_view
  :closed
end

#input_typeObject



60
61
62
# File 'card/tmpsets/set/mod019-card-mod-style/type/css.rb', line 60

def input_type
  :ace_editor
end

#view: coreObject



72
73
74
75
76
77
# File 'card/tmpsets/set/mod019-card-mod-style/type/css.rb', line 72

view :core do
  # FIXME: scan must happen before process for inclusion interactions to
  # work, but this will likely cause
  # problems with including other css?
  process_content ::CodeRay.scan(_render_raw, :css).div, size: :icon
end