smart_editor 0.0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/javascripts/smart_editor/application.js +15 -0
  5. data/app/assets/javascripts/smart_editor/editor_images.js +1 -0
  6. data/app/assets/stylesheets/smart_editor/application.css +13 -0
  7. data/app/assets/stylesheets/smart_editor/editor_images.css +4 -0
  8. data/app/controllers/smart_editor/application_controller.rb +4 -0
  9. data/app/controllers/smart_editor/editor_images_controller.rb +41 -0
  10. data/app/helpers/smart_editor/application_helper.rb +4 -0
  11. data/app/helpers/smart_editor/editor_images_helper.rb +4 -0
  12. data/app/models/smart_editor/editor_image.rb +7 -0
  13. data/app/uploaders/file_uploader.rb +55 -0
  14. data/app/views/layouts/smart_editor/application.html.erb +14 -0
  15. data/app/views/smart_editor/editor_images/index.html.erb +4 -0
  16. data/config/routes.rb +7 -0
  17. data/db/migrate/20130101074444_create_smart_editor_editor_images.rb +10 -0
  18. data/lib/generators/smart_editor/smart_editor_generator.rb +18 -0
  19. data/lib/generators/smart_editor/templates/public/smart_editor/SmartEditor2Skin.html +635 -0
  20. data/lib/generators/smart_editor/templates/public/smart_editor/popup/quick_photo/FileUploader.php +22 -0
  21. data/lib/generators/smart_editor/templates/public/smart_editor/popup/quick_photo/FileUploader_html5.php +25 -0
  22. data/lib/generators/smart_editor/templates/public/smart_editor/popup/quick_photo/Photo_Quick_UploadPopup.html +100 -0
  23. data/lib/generators/smart_editor/templates/public/smart_editor/popup/quick_photo/QuickPhotoPopup.js +675 -0
  24. data/lib/generators/smart_editor/templates/public/smart_editor/popup/quick_photo/callback.html +32 -0
  25. data/lib/generators/smart_editor/templates/public/smart_editor/popup/quick_photo/jindo.min.js +12686 -0
  26. data/lib/generators/smart_editor/templates/public/smart_editor/popup/quick_photo/jindo_fileUpload.js +390 -0
  27. data/lib/generators/smart_editor/templates/public/smart_editor/smart_editor2_inputarea.html +9 -0
  28. data/lib/generators/smart_editor/templates/public/smart_editor/smart_editor2_inputarea_ie8.html +10 -0
  29. data/lib/smart_editor/class_methods.rb +10 -0
  30. data/lib/smart_editor/engine.rb +5 -0
  31. data/lib/smart_editor/form_builder.rb +11 -0
  32. data/lib/smart_editor/version.rb +3 -0
  33. data/lib/smart_editor.rb +18 -0
  34. data/lib/tasks/smart_editor_tasks.rake +4 -0
  35. data/test/dummy/README.rdoc +261 -0
  36. data/test/dummy/Rakefile +7 -0
  37. data/test/dummy/app/assets/javascripts/application.js +16 -0
  38. data/test/dummy/app/assets/javascripts/posts.js +2 -0
  39. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  40. data/test/dummy/app/assets/stylesheets/posts.css +4 -0
  41. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  42. data/test/dummy/app/controllers/application_controller.rb +3 -0
  43. data/test/dummy/app/controllers/posts_controller.rb +85 -0
  44. data/test/dummy/app/helpers/application_helper.rb +2 -0
  45. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  46. data/test/dummy/app/models/post.rb +4 -0
  47. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  48. data/test/dummy/app/views/posts/_form.html.erb +30 -0
  49. data/test/dummy/app/views/posts/edit.html.erb +6 -0
  50. data/test/dummy/app/views/posts/index.html.erb +27 -0
  51. data/test/dummy/app/views/posts/new.html.erb +5 -0
  52. data/test/dummy/app/views/posts/show.html.erb +20 -0
  53. data/test/dummy/config/application.rb +59 -0
  54. data/test/dummy/config/boot.rb +10 -0
  55. data/test/dummy/config/database.yml +25 -0
  56. data/test/dummy/config/environment.rb +5 -0
  57. data/test/dummy/config/environments/development.rb +37 -0
  58. data/test/dummy/config/environments/production.rb +67 -0
  59. data/test/dummy/config/environments/test.rb +37 -0
  60. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  61. data/test/dummy/config/initializers/inflections.rb +15 -0
  62. data/test/dummy/config/initializers/mime_types.rb +5 -0
  63. data/test/dummy/config/initializers/secret_token.rb +7 -0
  64. data/test/dummy/config/initializers/session_store.rb +8 -0
  65. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  66. data/test/dummy/config/locales/en.yml +5 -0
  67. data/test/dummy/config/routes.rb +7 -0
  68. data/test/dummy/config.ru +4 -0
  69. data/test/dummy/db/development.sqlite3 +0 -0
  70. data/test/dummy/db/migrate/20130103085542_create_posts.rb +11 -0
  71. data/test/dummy/db/migrate/20130103090021_create_smart_editor_editor_images.smart_editor.rb +11 -0
  72. data/test/dummy/db/schema.rb +32 -0
  73. data/test/dummy/log/development.log +713 -0
  74. data/test/dummy/public/404.html +26 -0
  75. data/test/dummy/public/422.html +26 -0
  76. data/test/dummy/public/500.html +25 -0
  77. data/test/dummy/public/favicon.ico +0 -0
  78. data/test/dummy/public/smart_editor/SmartEditor2Skin.html +635 -0
  79. data/test/dummy/public/smart_editor/popup/quick_photo/FileUploader.php +22 -0
  80. data/test/dummy/public/smart_editor/popup/quick_photo/FileUploader_html5.php +25 -0
  81. data/test/dummy/public/smart_editor/popup/quick_photo/Photo_Quick_UploadPopup.html +100 -0
  82. data/test/dummy/public/smart_editor/popup/quick_photo/QuickPhotoPopup.js +675 -0
  83. data/test/dummy/public/smart_editor/popup/quick_photo/callback.html +32 -0
  84. data/test/dummy/public/smart_editor/popup/quick_photo/jindo.min.js +12686 -0
  85. data/test/dummy/public/smart_editor/popup/quick_photo/jindo_fileUpload.js +390 -0
  86. data/test/dummy/public/smart_editor/smart_editor2_inputarea.html +9 -0
  87. data/test/dummy/public/smart_editor/smart_editor2_inputarea_ie8.html +10 -0
  88. data/test/dummy/script/rails +6 -0
  89. data/test/dummy/test/fixtures/posts.yml +11 -0
  90. data/test/dummy/test/functional/posts_controller_test.rb +49 -0
  91. data/test/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
  92. data/test/dummy/test/unit/post_test.rb +7 -0
  93. data/test/dummy/tmp/cache/assets/C39/A20/sprockets%2Fd75302feb7958c52568020a888775667 +0 -0
  94. data/test/dummy/tmp/cache/assets/C8B/9F0/sprockets%2F42090f88c5061f72460d7c83a9bc8990 +0 -0
  95. data/test/dummy/tmp/cache/assets/C8E/A60/sprockets%2F74b1945f4d4a322ab567f73798c32838 +0 -0
  96. data/test/dummy/tmp/cache/assets/CD4/040/sprockets%2F7c241e3470f7210ab843c109c9d68a4b +0 -0
  97. data/test/dummy/tmp/cache/assets/CE3/740/sprockets%2F200278c67b4dde839345d7b018fed561 +0 -0
  98. data/test/dummy/tmp/cache/assets/CEE/680/sprockets%2F6d653ad72aed952816dd79e63c761417 +0 -0
  99. data/test/dummy/tmp/cache/assets/D12/CA0/sprockets%2Fcd507925f6bb1f62170d028ca668ad98 +0 -0
  100. data/test/dummy/tmp/cache/assets/D13/8A0/sprockets%2Fec89fa303e9609b18f50b6de2831433e +0 -0
  101. data/test/dummy/tmp/cache/assets/D6F/A80/sprockets%2F8893ca0d5d16eb3d85c0964bdbbe3381 +0 -0
  102. data/test/dummy/tmp/cache/assets/D86/AF0/sprockets%2Fcfa5f1244012fcd263cee551afe412b2 +0 -0
  103. data/test/dummy/tmp/cache/assets/D92/5A0/sprockets%2Fb0e45a13b900ecbf7011b78bdff2595e +0 -0
  104. data/test/dummy/tmp/cache/assets/D9D/950/sprockets%2F65093fff17b1aa3bed7e0dda53563b79 +0 -0
  105. data/test/dummy/tmp/cache/assets/DF9/8C0/sprockets%2Fc27a71cbee6a5dffdc2534b267b2fa66 +0 -0
  106. data/test/dummy/tmp/cache/assets/E54/F60/sprockets%2Ff1bba5cc065ebbb83addfbba59f82059 +0 -0
  107. data/test/fixtures/smart_editor/editor_images.yml +11 -0
  108. data/test/functional/smart_editor/editor_images_controller_test.rb +9 -0
  109. data/test/integration/navigation_test.rb +10 -0
  110. data/test/smart_editor_test.rb +7 -0
  111. data/test/test_helper.rb +15 -0
  112. data/test/unit/helpers/smart_editor/editor_images_helper_test.rb +6 -0
  113. data/test/unit/smart_editor/editor_image_test.rb +9 -0
  114. data/vendor/assets/images/smart_editor/bg_b1.png +0 -0
  115. data/vendor/assets/images/smart_editor/bg_find_h3.gif +0 -0
  116. data/vendor/assets/images/smart_editor/bg_line1.gif +0 -0
  117. data/vendor/assets/images/smart_editor/bg_quote2.gif +0 -0
  118. data/vendor/assets/images/smart_editor/bg_set.gif +0 -0
  119. data/vendor/assets/images/smart_editor/bg_tool2.gif +0 -0
  120. data/vendor/assets/images/smart_editor/btn_set.png +0 -0
  121. data/vendor/assets/images/smart_editor/bx_set_110302.gif +0 -0
  122. data/vendor/assets/images/smart_editor/editor_guideline_698.gif +0 -0
  123. data/vendor/assets/images/smart_editor/editor_guideline_890.gif +0 -0
  124. data/vendor/assets/images/smart_editor/icon_set.gif +0 -0
  125. data/vendor/assets/images/smart_editor/photoQuickPopup/bg_drag_image.png +0 -0
  126. data/vendor/assets/images/smart_editor/photoQuickPopup/btn_cancel.png +0 -0
  127. data/vendor/assets/images/smart_editor/photoQuickPopup/btn_confirm.png +0 -0
  128. data/vendor/assets/images/smart_editor/photoQuickPopup/btn_confirm2.png +0 -0
  129. data/vendor/assets/images/smart_editor/photoQuickPopup/btn_del.png +0 -0
  130. data/vendor/assets/images/smart_editor/photoQuickPopup/btn_find.png +0 -0
  131. data/vendor/assets/images/smart_editor/text_tool_set.png +0 -0
  132. data/vendor/assets/images/smart_editor/text_tool_set2.png +0 -0
  133. data/vendor/assets/javascripts/smart_editor/HuskyEZCreator.js +133 -0
  134. data/vendor/assets/javascripts/smart_editor/SE2B_Configuration.js +77 -0
  135. data/vendor/assets/javascripts/smart_editor/SE2BasicCreator.js +85 -0
  136. data/vendor/assets/javascripts/smart_editor/hp_SE2M_AttachQuickPhoto.js +106 -0
  137. data/vendor/assets/javascripts/smart_editor/jindo.min.js +12699 -0
  138. data/vendor/assets/javascripts/smart_editor/jindo_component.js +279 -0
  139. data/vendor/assets/javascripts/smart_editor/loader-min.js +120 -0
  140. data/vendor/assets/javascripts/smart_editor.js +21 -0
  141. data/vendor/assets/stylesheets/smart_editor/smart_editor2.css +262 -0
  142. data/vendor/assets/stylesheets/smart_editor/smart_editor2_in.css +20 -0
  143. data/vendor/assets/stylesheets/smart_editor/smart_editor2_items.css +454 -0
  144. data/vendor/assets/stylesheets/smart_editor/smart_editor2_out.css +24 -0
  145. metadata +331 -0
@@ -0,0 +1,21 @@
1
+ //= require smart_editor/HuskyEZCreator
2
+ //
3
+
4
+ var oEditors = [];
5
+ $(document).ready(function(event){
6
+ if($(".smart-editor-text-area").length > 0){
7
+ var $smartEditorTextArea = $(".smart-editor-text-area")
8
+ var textAreaId = $smartEditorTextArea.attr("id");
9
+ var $submitButton = $(".smart-editor-text-area").parents("form").find("input[type='submit']")
10
+ nhn.husky.EZCreator.createInIFrame({
11
+ oAppRef: oEditors,
12
+ elPlaceHolder: textAreaId,
13
+ sSkinURI: "/smart_editor/SmartEditor2Skin.html",
14
+ fCreator: "createSEditor2"
15
+ });
16
+ $smartEditorTextArea.append("<input type='hidden' class='image_ids' value='[]'>")
17
+ $submitButton.click(function(event){
18
+ oEditors[0].exec("UPDATE_CONTENTS_FIELD", []);
19
+ });
20
+ }
21
+ });
@@ -0,0 +1,262 @@
1
+ @charset "utf-8";
2
+ /* NHN WebStandard 2Team (http://html.nhndesign.com/) HHJ 090226 KJM */
3
+
4
+ /* Common */
5
+ body,#smart_editor2,#smart_editor2 p,#smart_editor2 h1,#smart_editor2 h2,#smart_editor2 h3,#smart_editor2 h4,#smart_editor2 h5,#smart_editor2 h6,#smart_editor2 ul,#smart_editor2 ol,#smart_editor2 li,#smart_editor2 dl,#smart_editor2 dt,#smart_editor2 dd,#smart_editor2 table,#smart_editor2 th,#smart_editor2 td,#smart_editor2 form,#smart_editor2 fieldset,#smart_editor2 legend,#smart_editor2 input,#smart_editor2 textarea,#smart_editor2 button,#smart_editor2 select{margin:0;padding:0}
6
+ body,#smart_editor2,#smart_editor2 h1,#smart_editor2 h2,#smart_editor2 h3,#smart_editor2 h4,#smart_editor2 h5,#smart_editor2 h6,#smart_editor2 input,#smart_editor2 textarea,#smart_editor2 select,#smart_editor2 table,#smart_editor2 button{font-family:'돋움',Dotum,Helvetica,sans-serif;font-size:12px;color:#666}
7
+ #smart_editor2 span,#smart_editor2 em{font-size:12px}
8
+ #smart_editor2 em,#smart_editor2 address{font-style:normal}
9
+ #smart_editor2 img,#smart_editor2 fieldset{border:0}
10
+ #smart_editor2 hr{display:none}
11
+ #smart_editor2 h3{display:block}
12
+ #smart_editor2 ol,#smart_editor2 ul{list-style:none}
13
+ #smart_editor2 button{margin:0;padding:0;border:0;background:none;font-size:11px;vertical-align:top;overflow:hidden;cursor:pointer}
14
+ #smart_editor2 button span,#smart_editor2 button em{visibility:hidden;overflow:hidden;font-size:0;line-height:0}
15
+ #smart_editor2 legend,#smart_editor2 .blind{visibility:hidden;overflow:hidden;position:absolute;width:0;height:0;font-size:0;line-height:0}
16
+ #smart_editor2 .input_ty1{height:14px;margin:0;padding:4px 2px 0 4px;border:1px solid #c7c7c7;font-size:11px;color:#666}
17
+ #smart_editor2 a:link,#smart_editor2 a:visited,#smart_editor2 a:active,#smart_editor2 a:focus{color:#666;text-decoration:none}
18
+ #smart_editor2 a:hover{color:#666;text-decoration:underline}
19
+ /* Layout */
20
+ #smart_editor2 .se2_header{margin:10px 0 29px 0}
21
+ #smart_editor2 .se2_bi{float:left;width:93px;height:20px;margin:0;padding:0;background:url(/assets/smart_editor/btn_set.png) -343px -358px no-repeat;font-size:0;line-height:0;text-indent:-10000px;vertical-align:middle}
22
+ #smart_editor2 .se2_allhelp{display:inline-block;width:18px;height:18px;padding:0;background:url(/assets/smart_editor/btn_set.png) -437px -358px no-repeat;font-size:0;line-height:0;text-indent:-10000px;vertical-align:middle}
23
+ #smart_editor2 #smart_editor2_content{border:1px solid #b5b5b5}
24
+ /* icon tool */
25
+ #smart_editor2 .se2_tool{overflow:visible;position:relative;z-index:20;height:30px;background:#fbfcfc url(/assets/smart_editor/bg_tool2.gif) repeat-x;*zoom:1}
26
+ #smart_editor2 .se2_icon_tool{z-index:60;position:absolute;right:0;top:0;width:auto;height:34px;white-space:nowrap}
27
+ #smart_editor2 .se2_itool1{float:left;border-left:1px solid #e0dedf;white-space:nowrap}
28
+ #smart_editor2 .se2_itool2,#smart_editor2 .se2_itool3{float:left;border-left:1px solid #e0dedf;white-space:nowrap}
29
+ #smart_editor2 .se2_itool4{float:left;position:absolute;top:0;right:0;margin:0;padding:0}
30
+ #smart_editor2 .se2_itool4 .se2_mn{border-left:1px solid #e0dedf}
31
+ #smart_editor2 .se2_icon_tool li{float:left;position:relative;z-index:60}
32
+ #smart_editor2 .se2_icon_tool .se2_mn.hover{background:#e0dedf}
33
+ #smart_editor2 .se2_icon_tool .se2_itool3 .se2_mn.active{background:#d5d5d5}
34
+ /* icon tool : txt */
35
+ #smart_editor2 .se2_mntxt{display:inline-block;visibility:visible;position:static;width:auto;height:29px;font-weight:normal;font-size:11px;line-height:29px;*line-height:28px;_line-height:29px;color:#444;letter-spacing:-1px;vertical-align:middle}
36
+ #smart_editor2 .se2_more .se2_mntxt,#smart_editor2 .se2_more2 .se2_mntxt{visibility:hidden;overflow:hidden;font-size:0;line-height:0}
37
+ /* icon tool : btn */
38
+ #smart_editor2 .se2_wty2,#smart_editor2 .se2_wty3,#smart_editor2 .se2_wty4,#smart_editor2 .se2_wty2_ic,#smart_editor2 .se2_wty3_ic,#smart_editor2 .se2_wty4_ic,#smart_editor2 .se2_wty7{height:29px;margin:0 0;background:url(/assets/smart_editor/btn_set.png) -187px -463px no-repeat;text-align:center}
39
+ #smart_editor2 .se2_attach_db{margin:0}
40
+ #smart_editor2 .se2_wreview{margin:0}
41
+ #smart_editor2 .se2_mfirst{margin:0 1px 0 0}
42
+ #smart_editor2 .se2_mlast{margin:0 0 0 1px}
43
+ /* icon tool : btn size */
44
+ #smart_editor2 .se2_wty2{width:36px}
45
+ #smart_editor2 .se2_wty3{width:40px}
46
+ #smart_editor2 .se2_wty4{width:58px}
47
+ #smart_editor2 .se2_wty2_ic{width:47px}
48
+ #smart_editor2 .se2_wty3_ic{width:60px}
49
+ #smart_editor2 .se2_wty4_ic{width:69px}
50
+ #smart_editor2 .se2_wty7{width:76px}
51
+ #smart_editor2 .se2_more{width:11px;height:32px;background:url(/assets/smart_editor/btn_set.png) 0 -463px no-repeat}
52
+ #smart_editor2 .se2_more2{width:14px;height:32px;background:url(/assets/smart_editor/btn_set.png) -305px -463px no-repeat}
53
+ /* icon tool : hover */
54
+ #smart_editor2 .hover .se2_wty2,#smart_editor2 .hover .se2_wty3,#smart_editor2 .hover .se2_wty4,#smart_editor2 .hover .se2_wty2_ic,#smart_editor2 .hover .se2_wty3_ic,#smart_editor2 .hover .se2_wty4_ic,#smart_editor2 .hover .se2_wty7{background:#e8e8e8}
55
+ #smart_editor2 .hover .se2_attach_db,#smart_editor2 .hover .se2_wreview{background:#f1f1f1}
56
+ #smart_editor2 .hover .hover .se2_attach_db,#smart_editor2 .hover .hover .se2_wreview{background:#e8e8e8}
57
+ #smart_editor2 .hover .se2_more{background-position:-12px -463px}
58
+ #smart_editor2 .hover .se2_more2{background-position:-320px -463px}
59
+ /* icon tool : active */
60
+ #smart_editor2 .active .se2_item{background:url(/assets/smart_editor/btn_set.png) -48px -463px no-repeat}
61
+ #smart_editor2 span.active .se2_wty7{background:url(/assets/smart_editor/btn_set.png) -109px -463px no-repeat}
62
+ #smart_editor2 .active .se2_more{background-position:0px -463px}
63
+ #smart_editor2 .active .se2_more2{background-position:-335px -463px}
64
+ #smart_editor2 .active .active .se2_more{background-position:-24px -463px}
65
+ /* icon tool : off */
66
+ #smart_editor2 .off .se2_wty2,#smart_editor2 .off .se2_wty3,#smart_editor2 .off .se2_wty4,#smart_editor2 .off .se2_wty2_ic,#smart_editor2 .off .se2_wty3_ic,#smart_editor2 .off .se2_wty4_ic,#smart_editor2 .off .se2_wty7,#smart_editor2 .se2_itool4 .off .se2_more,#smart_editor2 .se2_itool4 .off .se2_more2,#smart_editor2 .off .se2_font_family,#smart_editor2 .off .se2_font_size,#smart_editor2 .off .se2_bold,#smart_editor2 .off .se2_underline,#smart_editor2 .off .se2_italic,#smart_editor2 .off .se2_tdel,#smart_editor2 .off .se2_fcolor,#smart_editor2 .off .se2_fcolor_more,#smart_editor2 .off .se2_bgcolor,#smart_editor2 .off .se2_bgcolor_more,#smart_editor2 .off .se2_left,#smart_editor2 .off .se2_center,#smart_editor2 .off .se2_right,#smart_editor2 .off .se2_justify,#smart_editor2 .off .se2_ol,#smart_editor2 .off .se2_ul,#smart_editor2 .off .se2_indent,#smart_editor2 .off .se2_outdent,#smart_editor2 .off .se2_lineheight,#smart_editor2 .off .se2_del_style,#smart_editor2 .off .se2_sup, #smart_editor2 .off .se2_sub,#smart_editor2 .off .se2_blockquote,#smart_editor2 .off .se2_url,#smart_editor2 .off .se2_character,#smart_editor2 .off .se2_table,#smart_editor2 .off .se2_find,#smart_editor2 .off .se2_spelling,#smart_editor2 .off .se2_text_tool_more,#smart_editor2 .off .se2_new{-ms-filter:alpha(opacity=50);opacity:.5;cursor:default;filter:alpha(opacity=50)}
67
+ /* icon set */
68
+ #smart_editor2 .se2_icon_tool .se2_new{display:block;visibility:visible;position:absolute;top:4px;right:2px;width:8px;height:8px;background:url(/assets/smart_editor/icon_set.gif) 0 -669px no-repeat}
69
+ #smart_editor2 .se2_hide_itool .se2_new{top:6px;right:3px}
70
+ #smart_editor2 .se2_icon_tool .se2_itool4 .se2_new{right:12px}
71
+ #smart_editor2 .se2_icon_tool .se2_icon{display:inline-block;visibility:visible;overflow:visible;position:static;width:15px;height:29px;margin:-3px 3px 3px 0;background:url(/assets/smart_editor/icon_set.gif) no-repeat;line-height:29px;vertical-align:middle}
72
+ #smart_editor2 .se2_photo .se2_icon{background-position:0 -965px}
73
+ #smart_editor2 .se2_file .se2_icon{background-position:-18px -1000px}
74
+ /* icon tool : collapse */
75
+ #smart_editor2 .se2_hide_itool{display:none;z-index:70;width:64px;border:1px solid #fff;background:#fafafa}
76
+ #smart_editor2 .se2_hide_itool li{float:none}
77
+ #smart_editor2 .active .se2_hide_itool{display:block}
78
+ #smart_editor2 .se2_hide_itool .se2_mntxt{height:20px;margin:0 0 0 7px;line-height:20px;color:#333;letter-spacing:-1px}
79
+ #smart_editor2 .se2_hide_itool .se2_mn.hover{background:#ebebeb}
80
+ #smart_editor2 .se2_hide_itool .se2_wty2,#smart_editor2 .se2_hide_itool .se2_wty3,#smart_editor2 .se2_hide_itool .se2_wty4,#smart_editor2 .se2_hide_itool .se2_wty2_ic,#smart_editor2 .se2_hide_itool .se2_wty3_ic,#smart_editor2 .se2_hide_itool .se2_wty4_ic{display:block;width:99%;height:21px;margin:0;background:none;text-align:left}
81
+ /* text tool */
82
+ #smart_editor2 .se2_text_tool{clear:both;z-index:30;height:26px;padding:4px 0 0 3px}
83
+ #smart_editor2 .se2_font_type,#smart_editor2 .se2_font_style,#smart_editor2 .se2_paragraph,#smart_editor2 .se2_etc{_display:inline;float:left;margin:0 3px 0 0;padding:0;white-space:nowrap}
84
+ #smart_editor2 .se2_text_tool li{_display:inline;float:left;position:relative;z-index:30}
85
+ #smart_editor2 .se2_text_tool button{width:21px;height:21px;margin:0;padding:0;background:url(/assets/smart_editor/text_tool_set2.png) no-repeat;vertical-align:top}
86
+ #smart_editor2 .se2_text_tool button span{visibility:hidden;overflow:hidden;position:absolute;top:0;left:0;width:0;height:0}
87
+ /* text tool : 폰트명 */
88
+ #smart_editor2 .se2_text_tool .se2_font_type li{margin-left:3px}
89
+ #smart_editor2 .se2_text_tool .se2_font_family{width:70px;height:21px;margin:0;padding:0;background-position:0 0;text-align:left}
90
+ #smart_editor2 .se2_text_tool .se2_font_family span,#smart_editor2 .se2_text_tool .se2_font_size span{display:inline-block;visibility:visible;overflow:hidden;position:static;width:52px;height:20px;padding:0 0 0 6px;font-size:12px;line-height:20px;*line-height:22px;color:#333;*zoom:1}
91
+ #smart_editor2 .se2_text_tool .hover .se2_font_family{background-position:0 -42px}
92
+ #smart_editor2 .se2_text_tool .active .se2_font_family{background-position:0 -63px}
93
+ /* text tool : 크기 */
94
+ #smart_editor2 .se2_text_tool .se2_font_size{width:45px;height:21px;margin:0;padding:0;background-position:-70px 0;text-align:left}
95
+ #smart_editor2 .se2_text_tool .se2_font_size span{width:30px}
96
+ #smart_editor2 .se2_text_tool .hover .se2_font_size{background-position:-70px -42px}
97
+ #smart_editor2 .se2_text_tool .active .se2_font_size{background-position:-70px -63px}
98
+ /* text tool : 스타일 */
99
+ #smart_editor2 .se2_text_tool .se2_font_style{width:189px}
100
+ #smart_editor2 .se2_text_tool .se2_bold{width:22px;background-position:-115px 0}
101
+ #smart_editor2 .se2_text_tool .se2_underline{background-position:-137px 0}
102
+ #smart_editor2 .se2_text_tool .se2_italic{background-position:-158px 0}
103
+ #smart_editor2 .se2_text_tool .se2_tdel{background-position:-179px 0}
104
+ #smart_editor2 .se2_text_tool .se2_fcolor{width:20px;background-position:-200px 0}
105
+ #smart_editor2 .se2_text_tool .se2_fcolor_more{width:11px;background-position:-220px 0}
106
+ #smart_editor2 .se2_text_tool .se2_bgcolor{width:20px;background-position:-231px 0}
107
+ #smart_editor2 .se2_text_tool .se2_bgcolor_more{width:11px;background-position:-251px 0}
108
+ #smart_editor2 .se2_text_tool .se2_font_style .se2_pair.active{z-index:50}
109
+ #smart_editor2 .se2_text_tool .se2_sup{background-position:-686px 0}
110
+ #smart_editor2 .se2_text_tool .se2_sub{background-position:-707px 0}
111
+ /* text tool : 스타일 hover */
112
+ #smart_editor2 .se2_text_tool .hover .se2_bold{background-position:-115px -42px}
113
+ #smart_editor2 .se2_text_tool .hover .se2_underline{background-position:-137px -42px}
114
+ #smart_editor2 .se2_text_tool .hover .se2_italic{background-position:-158px -42px}
115
+ #smart_editor2 .se2_text_tool .hover .se2_tdel{background-position:-179px -42px}
116
+ #smart_editor2 .se2_text_tool .hover .se2_fcolor{width:20px;background-position:-200px -21px}
117
+ #smart_editor2 .se2_text_tool .hover .se2_fcolor_more{width:11px;background-position:-220px -21px}
118
+ #smart_editor2 .se2_text_tool .hover .se2_bgcolor{width:20px;background-position:-231px -21px}
119
+ #smart_editor2 .se2_text_tool .hover .se2_bgcolor_more{width:11px;background-position:-251px -21px}
120
+ #smart_editor2 .se2_text_tool .hover .se2_sup{background-position:-686px -42px}
121
+ #smart_editor2 .se2_text_tool .hover .se2_sub{background-position:-707px -42px}
122
+ /* text tool : 스타일 active */
123
+ #smart_editor2 .se2_text_tool .active .se2_bold{background-position:-115px -63px}
124
+ #smart_editor2 .se2_text_tool .active .se2_underline{background-position:-137px -63px}
125
+ #smart_editor2 .se2_text_tool .active .se2_italic{background-position:-158px -63px}
126
+ #smart_editor2 .se2_text_tool .active .se2_tdel{background-position:-179px -63px}
127
+ #smart_editor2 .se2_text_tool .active .se2_sup{background-position:-686px -63px}
128
+ #smart_editor2 .se2_text_tool .active .se2_sub{background-position:-707px -63px}
129
+ /* text tool : 컬러 1st hover */
130
+ #smart_editor2 .se2_pair .hover .se2_fcolor{width:20px;background-position:-200px -42px}
131
+ #smart_editor2 .se2_pair .hover .se2_fcolor_more{width:11px;background-position:-220px -42px}
132
+ #smart_editor2 .se2_pair .hover .se2_bgcolor{width:20px;background-position:-231px -42px}
133
+ #smart_editor2 .se2_pair .hover .se2_bgcolor_more{width:11px;background-position:-251px -42px}
134
+ /* text tool : 컬러 2nd hover */
135
+ #smart_editor2 .se2_text_tool .active .se2_fcolor{width:20px;background-position:-200px -21px}
136
+ #smart_editor2 .se2_text_tool .active .se2_fcolor_more{width:11px;background-position:-220px -21px}
137
+ #smart_editor2 .se2_text_tool .active .se2_bgcolor{width:20px;background-position:-231px -21px}
138
+ #smart_editor2 .se2_text_tool .active .se2_bgcolor_more{width:11px;background-position:-251px -21px}
139
+ /* text tool : 컬러 active */
140
+ #smart_editor2 .se2_text_tool .se2_pair .active .se2_fcolor{width:20px;background-position:-200px -63px}
141
+ #smart_editor2 .se2_text_tool .se2_pair .active .se2_fcolor_more{width:11px;background-position:-220px -63px}
142
+ #smart_editor2 .se2_text_tool .se2_pair .active .se2_bgcolor{width:20px;background-position:-231px -63px}
143
+ #smart_editor2 .se2_text_tool .se2_pair .active .se2_bgcolor_more{width:11px;background-position:-251px -63px}
144
+ /* text tool : paragraph */
145
+ #smart_editor2 .se2_text_tool .se2_paragraph{width:106px}
146
+ #smart_editor2 .se2_text_tool .se2_left{width:22px;background-position:-262px 0}
147
+ #smart_editor2 .se2_text_tool .se2_center{background-position:-284px 0}
148
+ #smart_editor2 .se2_text_tool .se2_right{background-position:-305px 0}
149
+ #smart_editor2 .se2_text_tool .se2_justify{background-position:-326px 0}
150
+ #smart_editor2 .se2_text_tool .se2_ol{width:22px;background-position:-368px 0}
151
+ #smart_editor2 .se2_text_tool .se2_ul{background-position:-390px 0}
152
+ #smart_editor2 .se2_text_tool .se2_indent{background-position:-411px 0}
153
+ #smart_editor2 .se2_text_tool .se2_outdent{background-position:-432px 0}
154
+ #smart_editor2 .se2_text_tool .se2_lineheight{background-position:-347px 0}
155
+ /* text tool : paragraph hover */
156
+ #smart_editor2 .se2_text_tool .hover .se2_left{background-position:-262px -42px}
157
+ #smart_editor2 .se2_text_tool .hover .se2_center{background-position:-284px -42px}
158
+ #smart_editor2 .se2_text_tool .hover .se2_right{background-position:-305px -42px}
159
+ #smart_editor2 .se2_text_tool .hover .se2_justify{background-position:-326px -42px}
160
+ #smart_editor2 .se2_text_tool .active .hover .se2_ol{background-position:-368px -42px}
161
+ #smart_editor2 .se2_text_tool .active .hover .se2_ul{background-position:-390px -42px}
162
+ #smart_editor2 .se2_text_tool .active .hover .se2_indent{background-position:-411px -42px}
163
+ #smart_editor2 .se2_text_tool .active .hover .se2_outdent{background-position:-432px -42px}
164
+ #smart_editor2 .se2_text_tool .hover .se2_lineheight{background-position:-347px -42px}
165
+ /* text tool : paragraph active */
166
+ #smart_editor2 .se2_text_tool .active .se2_left{background-position:-262px -63px}
167
+ #smart_editor2 .se2_text_tool .active .se2_center{background-position:-284px -63px}
168
+ #smart_editor2 .se2_text_tool .active .se2_right{background-position:-305px -63px}
169
+ #smart_editor2 .se2_text_tool .active .se2_justify{background-position:-326px -63px}
170
+ #smart_editor2 .se2_text_tool .active .active .se2_ol{background-position:-368px -63px}
171
+ #smart_editor2 .se2_text_tool .active .active .se2_ul{background-position:-390px -63px}
172
+ #smart_editor2 .se2_text_tool .active .active .se2_indent{background-position:-411px -63px}
173
+ #smart_editor2 .se2_text_tool .active .active .se2_outdent{background-position:-432px -63px}
174
+ #smart_editor2 .se2_text_tool .active .se2_lineheight{background-position:-347px -63px}
175
+ /* text tool : etc */
176
+ #smart_editor2 .se2_text_tool .se2_etc_text_2{width:43px}
177
+ #smart_editor2 .se2_text_tool .se2_etc_text_3{width:127px}
178
+ #smart_editor2 .se2_text_tool .se2_blockquote{width:22px;background-position:-495px 0}
179
+ #smart_editor2 .se2_text_tool .se2_url{width:22px;background-position:-538px 0}
180
+ #smart_editor2 .se2_text_tool .se2_character{background-position:-581px 0}
181
+ #smart_editor2 .se2_text_tool .se2_table{background-position:-602px 0}
182
+ #smart_editor2 .se2_text_tool .se2_find{background-position:-623px 0}
183
+ /* text tool : etc hover */
184
+ #smart_editor2 .se2_text_tool .hover .se2_blockquote{width:22px;background-position:-495px -42px}
185
+ #smart_editor2 .se2_text_tool .hover .se2_url{width:22px;background-position:-538px -42px}
186
+ #smart_editor2 .se2_text_tool .hover .se2_character{background-position:-581px -42px}
187
+ #smart_editor2 .se2_text_tool .hover .se2_table{background-position:-602px -42px}
188
+ #smart_editor2 .se2_text_tool .hover .se2_find{background-position:-623px -42px}
189
+ #smart_editor2 .se2_text_tool .hover .se2_spelling{background-position:-644px -42px}
190
+ /* text tool : etc active */
191
+ #smart_editor2 .se2_text_tool .active .se2_blockquote{width:22px;background-position:-495px -63px}
192
+ #smart_editor2 .se2_text_tool .active .se2_url{width:22px;background-position:-538px -63px}
193
+ #smart_editor2 .se2_text_tool .active .se2_character{background-position:-581px -63px}
194
+ #smart_editor2 .se2_text_tool .active .se2_table{background-position:-602px -63px}
195
+ #smart_editor2 .se2_text_tool .active .se2_find{background-position:-623px -63px}
196
+ #smart_editor2 .se2_text_tool .active .se2_spelling{background-position:-644px -63px}
197
+ /* text tool : 접힘메뉴 */
198
+ #smart_editor2 .se2_text_tool_view_more .se2_text_tool_more{width:13px;height:21px;background-position:0px -21px}
199
+ #smart_editor2 .hover .se2_text_tool_more{width:13px;height:21px;background-position:-13px -21px}
200
+ #smart_editor2 .active .se2_text_tool_more{width:13px;height:21px;background-position:-26px -21px}
201
+ #smart_editor2 .se2_sub_text_tool{display:none;position:absolute;top:20px;left:0;z-index:40;width:auto;height:29px;padding:0 4px 0 0;border:1px solid #b5b5b5;border-top:1px solid #9a9a9a;background:#f4f4f4}
202
+ #smart_editor2 .active .se2_sub_text_tool{display:block}
203
+ #smart_editor2 .se2_sub_text_tool .se2_etc{float:left;height:25px;margin:0;padding:4px 0 0 4px}
204
+ /* text tool : 접힘규칙 */
205
+ #smart_editor2 .se2_sub_step1{width:90px}
206
+ #smart_editor2 .se2_sub_step2{width:199px}
207
+ /* text tool : 접힘규칙 no요약글 */
208
+ #smart_editor2 .se2_sub_step2_1{width:178px}
209
+ /* text tool : 접힘 */
210
+ #smart_editor2 .se2_sub_text_tool .se2_del_style{width:22px;background-position:-473px 0 !important}
211
+ #smart_editor2 .se2_sub_text_tool .se2_blockquote{width:22px;background-position:-495px 0 !important}
212
+ #smart_editor2 .se2_sub_text_tool .se2_url{width:22px;background-position:-538px 0 !important}
213
+ #smart_editor2 .se2_sub_text_tool .se2_character{background-position:-581px 0 !important}
214
+ #smart_editor2 .se2_sub_text_tool .se2_table{background-position:-602px 0 !important}
215
+ #smart_editor2 .se2_sub_text_tool .se2_find{background-position:-623px 0 !important}
216
+ #smart_editor2 .se2_sub_text_tool .se2_spelling{background-position:-644px 0 !important}
217
+ #smart_editor2 .se2_sub_text_tool .hover .se2_blockquote{width:22px;background-position:-495px -42px !important}
218
+ #smart_editor2 .se2_sub_text_tool .hover .se2_url{width:22px;background-position:-538px -42px !important}
219
+ #smart_editor2 .se2_sub_text_tool .hover .se2_character{background-position:-581px -42px !important}
220
+ #smart_editor2 .se2_sub_text_tool .hover .se2_table{background-position:-602px -42px !important}
221
+ #smart_editor2 .se2_sub_text_tool .hover .se2_find{background-position:-623px -42px !important}
222
+ #smart_editor2 .se2_sub_text_tool .hover .se2_spelling{background-position:-644px -42px !important}
223
+ #smart_editor2 .se2_sub_text_tool .active .se2_blockquote{width:22px;background-position:-495px -63px !important}
224
+ #smart_editor2 .se2_sub_text_tool .active .se2_url{width:22px;background-position:-538px -63px !important}
225
+ #smart_editor2 .se2_sub_text_tool .active .se2_character{background-position:-581px -63px !important}
226
+ #smart_editor2 .se2_sub_text_tool .active .se2_table{background-position:-602px -63px !important}
227
+ #smart_editor2 .se2_sub_text_tool .active .se2_find{background-position:-623px -63px !important}
228
+ #smart_editor2 .se2_sub_text_tool .active .se2_spelling{background-position:-644px -63px !important}
229
+ /* 편집영역 */
230
+ #smart_editor2 .se2_input_area{position:relative;z-index:15;height:400px;margin:0;padding:0;*zoom:1}
231
+ #smart_editor2 .se2_input_wysiwyg,#smart_editor2 .se2_input_syntax{display:block;overflow:auto;width:100%;height:100%;margin:0;border:0}
232
+ #smart_editor2 .se2_input_syntax{*margin-top:-1px}
233
+
234
+ /* 모드전환 */
235
+ #smart_editor2 .se2_conversion_mode{position:relative;z-index:10;height:15px;padding-top:1px;border-top:1px solid #b5b5b5;background:url(/assets/smart_editor/icon_set.gif) 0 -896px repeat-x}
236
+ #smart_editor2 .se2_inputarea_controller{display:block;clear:both;position:relative;width:100%;height:15px;background:url(/assets/smart_editor/icon_set.gif) center -47px no-repeat;text-align:center;cursor:n-resize}
237
+ #smart_editor2 .se2_inputarea_controller span{display:block;visibility:visible;height:15px;font-size:0;line-height:0;color:#fff;white-space:nowrap}
238
+ #smart_editor2 .se2_converter{float:left;position:absolute;top:-1px;right:3px;z-index:20}
239
+ #smart_editor2 .se2_converter li{float:left}
240
+ #smart_editor2 .se2_converter .se2_to_editor{width:59px;height:15px;background:url(/assets/smart_editor/btn_set.png) 0 -714px no-repeat;vertical-align:top}
241
+ #smart_editor2 .se2_converter .se2_to_text{width:59px;height:15px;background:url(/assets/smart_editor/btn_set.png) -60px -714px no-repeat;vertical-align:top}
242
+ #smart_editor2 .se2_converter .se2_to_html{width:60px;height:15px;background:url(/assets/smart_editor/btn_set.png) -118px -714px no-repeat;vertical-align:top}
243
+ #smart_editor2 .se2_converter .active .se2_to_editor{width:59px;height:15px;background:url(/assets/smart_editor/btn_set.png) 0 -729px no-repeat;vertical-align:top}
244
+ #smart_editor2 .se2_converter .active .se2_to_text{width:59px;height:15px;background:url(/assets/smart_editor/btn_set.png) -60px -729px no-repeat;vertical-align:top}
245
+ #smart_editor2 .se2_converter .active .se2_to_html{width:60px;height:15px;background:url(/assets/smart_editor/btn_set.png) -118px -729px no-repeat;vertical-align:top}
246
+
247
+ /* layer */
248
+ #smart_editor2 .se2_icon_tool .se2_layer{display:none;position:absolute;top:29px;right:-1px;margin:0;padding:0;border:1px solid #bcbbbb;background:#fafafa}
249
+ #smart_editor2 .se2_icon_tool .se2_itool4 .se2_layer{right:-1px;_right:-2px}
250
+ #smart_editor2 .se2_icon_tool .active{z-index:70}
251
+ #smart_editor2 .se2_icon_tool .active .se2_layer{display:block;z-index:70}
252
+ #smart_editor2 .se2_icon_tool .se2_close{position:absolute;top:3px;right:6px;width:25px;height:25px;background:url(/assets/smart_editor/btn_set.png) -149px 2px no-repeat}
253
+ #smart_editor2 .se2_text_tool .se2_layer{display:none;float:left;position:absolute;top:20px;left:0;z-index:50;margin:0;padding:0;border:1px solid #bcbbbb;background:#fafafa}
254
+ #smart_editor2 .se2_text_tool li.active{z-index:50}
255
+ #smart_editor2 .se2_text_tool .active .se2_layer{display:block}
256
+ #smart_editor2 .se2_text_tool .active li .se2_layer{display:none}
257
+ #smart_editor2 .se2_text_tool .active .active .se2_layer{display:block}
258
+ #smart_editor2 .se2_text_tool .se2_layer .se2_in_layer{float:left;margin:0;padding:0;border:1px solid #fff;background:#fafafa}
259
+ /* 에디터영역 꺽쇠 */
260
+ #smart_editor2 .se2_editor_mark{position:absolute;left:0;top:20px;margin-left:64px}
261
+ #smart_editor2 .se2_editor_mark .lt{position:absolute;left:-12px;bottom:2px;width:9px;height:9px;border-right:1px solid #bfbfbf;border-bottom:1px solid #bfbfbf;font-size:0;line-height:0}
262
+ #smart_editor2 .se2_editor_mark .rt{position:absolute;right:-12px;bottom:2px;width:9px;height:9px;border-left:1px solid #bfbfbf;border-bottom:1px solid #bfbfbf;font-size:0;line-height:0}
@@ -0,0 +1,20 @@
1
+ @charset "utf-8";
2
+ /* NHN Web Standardization Team (http://html.nhndesign.com/) HHJ 090226 */
3
+
4
+ body,.se2_inputarea,.se2_inputarea th,.se2_inputarea td{margin:0;padding:0;font-family:'돋움',Dotum,Helvetica,Sans-serif;font-size:12px;line-height:1.5;color:#666}
5
+ .se2_inputarea p,.se2_inputarea br{margin:0;padding:0}
6
+ /* size */
7
+ .se2_inputarea{margin:15px;word-wrap:break-word}
8
+ .se2_inputarea_890{width:743px;margin:20px 64px 10px;background:url(/assets/smart_editor/editor_guideline_890.gif) 55px 11px no-repeat;}
9
+ .se2_inputarea_698{width:550px;margin:20px 65px 10px 64px;background:url(/assets/smart_editor/editor_guideline_698.gif) 55px 11px no-repeat;}
10
+ /* 인용구 */
11
+ .se2_quote1{margin:0 0 30px 20px;padding:0 8px;border-left:2px solid #ccc;color:#888}
12
+ .se2_quote2{margin:0 0 30px 13px;padding:0 8px 0 16px;background:url(/assets/smart_editor/bg_quote2.gif) 0 3px no-repeat;color:#888}
13
+ .se2_quote3{margin:0 0 30px;padding:12px 10px 11px;border:1px dashed #ccc;color:#888}
14
+ .se2_quote4{margin:0 0 30px;padding:12px 10px 11px;border:1px dashed #66b246;color:#888}
15
+ .se2_quote5{margin:0 0 30px;padding:12px 10px 11px;border:1px dashed #ccc;background:#fafafa;color:#888}
16
+ .se2_quote6{margin:0 0 30px;padding:12px 10px 11px;border:1px solid #e5e5e5;color:#888}
17
+ .se2_quote7{margin:0 0 30px;padding:12px 10px 11px;border:1px solid #66b246;color:#888}
18
+ .se2_quote8{margin:0 0 30px;padding:12px 10px 11px;border:1px solid #e5e5e5;background:#fafafa;color:#888}
19
+ .se2_quote9{margin:0 0 30px;padding:12px 10px 11px;border:2px solid #e5e5e5;color:#888}
20
+ .se2_quote10{margin:0 0 30px;padding:12px 10px 11px;border:2px solid #e5e5e5;background:#fafafa;color:#888}