diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ac8f968 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Compiled source # +################### +*.com +*.class +*.dll +*.exe +*.o +*.so +*.pyc + +# Logs and databases # +###################### +*.log + +# OS generated files # +###################### +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db diff --git a/lib/yui_editor.rb b/lib/yui_editor.rb index 3f042f4..8c135e9 100644 --- a/lib/yui_editor.rb +++ b/lib/yui_editor.rb @@ -15,7 +15,7 @@ def uses_yui_editor(options = {}) def self.included(base) if YuiEditor.default_options.nil? config_file = File.join(RAILS_ROOT, 'config', 'yui_editor.yml') - YuiEditor.default_options = File.readable?(config_file) ? YAML.load_file(config_file).symbolize_keys : {} + YuiEditor.default_options = File.readable?(config_file) ? YAML.load_file(config_file).symbolize_keys : {} end base.extend(ClassMethods) @@ -42,7 +42,7 @@ def yui_editor_init result = '' result << stylesheet_link_tag("#{base_uri}/#{version}/build/assets/skins/sam/skin.css") + "\n" if body_class == 'yui-skin-sam' - + result << javascript_include_tag("#{base_uri}/#{version}/build/yahoo-dom-event/yahoo-dom-event.js") + "\n" yui_scripts = %w{element/element container/container_core} yui_scripts += %w{menu/menu button/button} unless editor_class == 'SimpleEditor' @@ -58,7 +58,7 @@ def yui_editor_init js = <