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.18 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.17 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.16 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.15 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.14 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.38 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.13 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.37 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.11 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.10 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.36 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.34 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.09 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.07 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.06 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.05 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.04 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.03 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.0.33 lib/redmine_extensions/html_formatting/internals.rb
redmine_extensions-0.1.02 lib/redmine_extensions/html_formatting/internals.rb