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.1.01 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.29 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.28 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.27 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.24 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.23 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.22 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.21 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.20 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.19 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.18 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.17 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.16 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.15 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.14 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.13 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.12 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.10 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.8 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.1 lib/redmine_extensions/html_formatting/internals.rb