Se añaden componentes a CKEditor para escribir bloques de código desde el editor

This commit is contained in:
Manuel Cillero 2018-02-06 20:52:40 +01:00
parent ef5521e0a2
commit 37f4666893
264 changed files with 18652 additions and 0 deletions

View file

@ -138,6 +138,7 @@ module RedmineCkeditor
end
end
require 'redmine_ckeditor/hooks/views_layouts_hook'
require 'redmine_ckeditor/hooks/journal_listener'
require 'redmine_ckeditor/pdf_patch'
require 'redmine_ckeditor/tempfile_patch'

View file

@ -0,0 +1,11 @@
module RedmineCkeditor
module Hooks
class ViewsLayoutsHook < Redmine::Hook::ViewListener
def view_layouts_base_html_head(context={})
return stylesheet_link_tag('/plugin_assets/redmine_ckeditor/ckeditor-contrib/plugins/codesnippet/lib/highlight/styles/default.css', :media => 'all') +
javascript_include_tag('/plugin_assets/redmine_ckeditor/ckeditor-contrib/plugins/codesnippet/lib/highlight/highlight.pack.js') +
javascript_include_tag('inithighlight', :plugin => 'redmine_ckeditor')
end
end
end
end