Sha256: a26ccd6d8ee12ef5d0e89446f9bb9bbd1714f19ad3255e64ec6b04c58d1b7a6e

Contents?: true

Size: 751 Bytes

Versions: 80

Compression:

Stored size: 751 Bytes

Contents

module EasyCKEditor

  def self.syntaxt_higlight_default_template
    @syntaxt_higlight_default_template ||= 'github'
  end

  def self.syntaxt_higlight_templates
    @syntaxt_higlight_templates ||= ['github', 'googlecode', 'idea', 'monokai', 'monokai_sublime', 'railscasts']
  end

  def self.syntaxt_higlight_template
    EasySetting.value('ckeditor_syntax_highlight_theme') || syntaxt_higlight_default_template
  end

  def self.syntaxt_higlight_css
    "/plugin_assets/ckeditor/javascripts/ckeditor/plugins/codesnippet/lib/highlight/styles/#{syntaxt_higlight_template}"
  end

  def self.syntaxt_higlight_js
    @syntaxt_higlight_js ||= "/plugin_assets/ckeditor/javascripts/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"
  end

end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
redmine_extensions-0.4.5 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.4.4 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.4.3 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.4.1 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.4.0 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.4.0.beta lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.11 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.10 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.9 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.8 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.7 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.6 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.4 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.3 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.2 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.3.00 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.2.16 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.2.14 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.2.13 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.2.12 lib/redmine_extensions/html_formatting/internals.rb