update ckeditor paste From Word clean up
This commit is contained in:
parent
51d8577774
commit
cc82387efb
2
Gemfile
2
Gemfile
|
@ -109,7 +109,7 @@ group :test, :development do
|
||||||
gem "spork"
|
gem "spork"
|
||||||
gem "capybara"
|
gem "capybara"
|
||||||
#gem 'rack-mini-profiler'
|
#gem 'rack-mini-profiler'
|
||||||
gem "better_errors"
|
gem "better_errors", "1.1.0"
|
||||||
# gem 'yard'
|
# gem 'yard'
|
||||||
# gem "bluecloth"
|
# gem "bluecloth"
|
||||||
end
|
end
|
||||||
|
|
|
@ -28,6 +28,8 @@ CKEDITOR.editorConfig = function( config ) {
|
||||||
{ name: 'about' }
|
{ name: 'about' }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
config.allowedContent = true;
|
||||||
|
|
||||||
config.skin = 'moono';
|
config.skin = 'moono';
|
||||||
|
|
||||||
config.filebrowserBrowseUrl = "<%= Rails.application.routes.url_helpers.admin_assets_path(:module_app_id=>ModuleApp.where(:key=>'asset').first.id) %>";
|
config.filebrowserBrowseUrl = "<%= Rails.application.routes.url_helpers.admin_assets_path(:module_app_id=>ModuleApp.where(:key=>'asset').first.id) %>";
|
||||||
|
@ -35,6 +37,10 @@ CKEDITOR.editorConfig = function( config ) {
|
||||||
|
|
||||||
//Font Config
|
//Font Config
|
||||||
config.font_names = 'Arial;Comic Sans MS;Courier New;Georgia;Helvetica;Lucida Sans Unicode;Tahoma;Times New Roman;Trebuchet MS;Verdana;微軟正黑體';
|
config.font_names = 'Arial;Comic Sans MS;Courier New;Georgia;Helvetica;Lucida Sans Unicode;Tahoma;Times New Roman;Trebuchet MS;Verdana;微軟正黑體';
|
||||||
|
|
||||||
|
config.enterMode = CKEDITOR.ENTER_BR;
|
||||||
|
config.shiftEnterMode = CKEDITOR.ENTER_BR;
|
||||||
|
config.pasteFromWordPromptCleanup = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
CKEDITOR.on('instanceReady',function(){
|
CKEDITOR.on('instanceReady',function(){
|
||||||
|
|
|
@ -56,6 +56,7 @@ module Orbit
|
||||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||||
# config.i18n.default_locale = :de
|
# config.i18n.default_locale = :de
|
||||||
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', 'modules', '*.{rb,yml}').to_s]
|
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', 'modules', '*.{rb,yml}').to_s]
|
||||||
|
config.i18n.enforce_available_locales = false
|
||||||
config.i18n.default_locale = :zh_tw
|
config.i18n.default_locale = :zh_tw
|
||||||
|
|
||||||
# JavaScript files you want as :defaults (application.js is always included).
|
# JavaScript files you want as :defaults (application.js is always included).
|
||||||
|
|
Loading…
Reference in New Issue