Se añaden componentes a CKEditor para escribir bloques de código desde el editor
This commit is contained in:
parent
ef5521e0a2
commit
37f4666893
264 changed files with 18652 additions and 0 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue