rails_kindeditor 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -0
  3. data/lib/generators/rails_kindeditor/install/templates/rails_kindeditor.rb +10 -0
  4. data/lib/rails_kindeditor.rb +9 -3
  5. data/lib/rails_kindeditor/helper.rb +3 -1
  6. data/lib/rails_kindeditor/version.rb +1 -1
  7. data/vendor/assets/javascripts/kindeditor/kindeditor.js +3950 -11
  8. data/vendor/assets/javascripts/kindeditor/lang/ar.js +9 -0
  9. data/vendor/assets/javascripts/kindeditor/lang/en.js +9 -0
  10. data/vendor/assets/javascripts/kindeditor/lang/ko.js +246 -237
  11. data/vendor/assets/javascripts/kindeditor/lang/ru.js +242 -0
  12. data/vendor/assets/javascripts/kindeditor/lang/{zh_CN.js → zh-CN.js} +3 -1
  13. data/vendor/assets/javascripts/kindeditor/lang/{zh_TW.js → zh-TW.js} +243 -235
  14. data/vendor/assets/javascripts/kindeditor/plugins/anchor/anchor.js +46 -46
  15. data/vendor/assets/javascripts/kindeditor/plugins/autoheight/autoheight.js +54 -54
  16. data/vendor/assets/javascripts/kindeditor/plugins/baidumap/baidumap.js +93 -93
  17. data/vendor/assets/javascripts/kindeditor/plugins/baidumap/index.html +82 -82
  18. data/vendor/assets/javascripts/kindeditor/plugins/baidumap/map.html +43 -43
  19. data/vendor/assets/javascripts/kindeditor/plugins/code/prettify.css +13 -13
  20. data/vendor/assets/javascripts/kindeditor/plugins/code/prettify.js +28 -28
  21. data/vendor/assets/javascripts/kindeditor/plugins/fixtoolbar/fixtoolbar.js +35 -0
  22. data/vendor/assets/javascripts/kindeditor/plugins/map/map.html +1 -1
  23. data/vendor/assets/javascripts/kindeditor/plugins/multiimage/images/{select-files-zh_CN.png → select-files-zh-CN.png} +0 -0
  24. data/vendor/assets/javascripts/kindeditor/plugins/multiimage/multiimage.js +1384 -1384
  25. data/vendor/assets/javascripts/kindeditor/plugins/template/html/1.html +13 -13
  26. data/vendor/assets/javascripts/kindeditor/plugins/template/html/2.html +41 -41
  27. data/vendor/assets/javascripts/kindeditor/plugins/template/html/3.html +35 -35
  28. data/vendor/assets/javascripts/kindeditor/themes/default/background.png +0 -0
  29. data/vendor/assets/javascripts/kindeditor/themes/default/default.css +1147 -1149
  30. data/vendor/assets/javascripts/kindeditor/themes/qq/qq.css +143 -143
  31. data/vendor/assets/javascripts/kindeditor/themes/simple/simple.css +100 -100
  32. metadata +15 -14
@@ -1,143 +1,143 @@
1
- /* container */
2
- .ke-container-qq {
3
- display: block;
4
- border: 1px solid #c3c3c3;
5
- background-color: #FFF;
6
- overflow: hidden;
7
- margin: 0;
8
- padding: 0;
9
- }
10
- /* toolbar */
11
- .ke-container-qq .ke-toolbar {
12
- border-bottom: 1px solid #c3c3c3;
13
- background-color: #FFFFFF;
14
- padding: 2px 5px;
15
- text-align: left;
16
- overflow: hidden;
17
- zoom: 1;
18
- }
19
- .ke-toolbar-icon-url {
20
- background-image: url(editor.gif);
21
- width:18px;
22
- *xwidth:20px;
23
- height:18px;
24
- *xheight:20px;
25
- }
26
- .ke-icon-checked{
27
- background-image: url(../default/default.png);
28
- width:16px;
29
- height:16px;
30
- }
31
- .ke-container-qq .ke-icon-bold{
32
- background-position: 4px 1px;
33
- }
34
- .ke-container-qq .ke-icon-italic{
35
- background-position: -27px 1px;
36
- }
37
- .ke-container-qq .ke-icon-italic{
38
- background-position: -28px 1px;
39
- }
40
- .ke-container-qq .ke-icon-underline{
41
- background-position: -60px 1px;
42
- }
43
- .ke-container-qq .ke-icon-fontname{
44
- background-position: -95px 1px;
45
- }
46
- .ke-container-qq .ke-icon-fontsize{
47
- background-position: -128px 1px;
48
- }
49
- .ke-container-qq .ke-icon-forecolor{
50
- background-position: -159px 1px;
51
- }
52
- .ke-container-qq .ke-icon-hilitecolor{
53
- background-position: -190px 1px;
54
- }
55
- .ke-container-qq .ke-icon-plug-align{
56
- background-position: -223px 1px;
57
- }
58
- .plug-align-justifyleft{
59
- background-position: -350px 1px;
60
- }
61
- .plug-align-justifycenter{
62
- background-position: -382px 1px;
63
- }
64
- .plug-align-justifyright{
65
- background-position: -414px 1px;
66
- }
67
- .plug-order-insertorderedlist{
68
- background-position: -446px 1px;
69
- }
70
- .plug-order-insertunorderedlist{
71
- background-position: -477px 1px;
72
- }
73
- .plug-indent-indent{
74
- background-position: -513px 1px;
75
- }
76
- .plug-indent-outdent{
77
- background-position: -545px 1px;
78
- }
79
- .ke-container-qq .ke-icon-plug-order{
80
- background-position: -255px 1px;
81
- }
82
- .ke-container-qq .ke-icon-plug-indent{
83
- background-position: -287px 1px;
84
- }
85
- .ke-container-qq .ke-icon-link{
86
- background-position: -319px 1px;
87
- }
88
-
89
- .ke-container-qq .ke-toolbar .ke-outline {
90
- cursor: default;
91
- padding:0px;
92
- border:1px solid #fff;
93
- }
94
- .ke-container-qq .ke-toolbar .ke-on {
95
- border-left:1px solid white;
96
- border-top:1px solid white;
97
- border-right:1px solid gray;
98
- border-bottom:1px solid gray;
99
- background-color: #FFFFFF;
100
- }
101
- .ke-container-qq .ke-toolbar .ke-selected {
102
- border-left:1px solid gray;
103
- border-top:1px solid gray;
104
- border-right:1px solid white;
105
- border-bottom:1px solid white;
106
- background-color: #FFFFFF;
107
- }
108
- .ke-container-qq .ke-toolbar .ke-disabled {
109
- cursor: default;
110
- }
111
-
112
- .ke-colorpicker-qq{
113
- background:#fff;
114
- }
115
- /* statusbar */
116
- .ke-container-qq .ke-statusbar {
117
- display:none;
118
- }
119
- /* menu */
120
- .ke-menu-qq {
121
- border:1px solid #a6a6a6;
122
- position:absolute;
123
- background:#fff;
124
- -moz-box-shadow:2px 2px 4px #DDDDDD;
125
- z-index:999;
126
- left:-400px;
127
- top:-386px;
128
- right:218px;
129
- width:130px;
130
- }
131
- .ke-menu-qq .ke-menu-item {
132
- padding:0px;
133
- background:#fff;
134
- }
135
- .ke-menu-qq .ke-menu-item-on {
136
- border:1px solid #000080;background:#FFEEC2;color:#036;
137
- }
138
- .ke-menu-qq .ke-toolbar .ke-selected {
139
- border:1px solid #9a9afb;
140
- }
141
- .ke-menu-qq .ke-menu-item-left{
142
- width:auto;
143
- }
1
+ /* container */
2
+ .ke-container-qq {
3
+ display: block;
4
+ border: 1px solid #c3c3c3;
5
+ background-color: #FFF;
6
+ overflow: hidden;
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+ /* toolbar */
11
+ .ke-container-qq .ke-toolbar {
12
+ border-bottom: 1px solid #c3c3c3;
13
+ background-color: #FFFFFF;
14
+ padding: 2px 5px;
15
+ text-align: left;
16
+ overflow: hidden;
17
+ zoom: 1;
18
+ }
19
+ .ke-toolbar-icon-url {
20
+ background-image: url(editor.gif);
21
+ width:18px;
22
+ *xwidth:20px;
23
+ height:18px;
24
+ *xheight:20px;
25
+ }
26
+ .ke-icon-checked{
27
+ background-image: url(../default/default.png);
28
+ width:16px;
29
+ height:16px;
30
+ }
31
+ .ke-container-qq .ke-icon-bold{
32
+ background-position: 4px 1px;
33
+ }
34
+ .ke-container-qq .ke-icon-italic{
35
+ background-position: -27px 1px;
36
+ }
37
+ .ke-container-qq .ke-icon-italic{
38
+ background-position: -28px 1px;
39
+ }
40
+ .ke-container-qq .ke-icon-underline{
41
+ background-position: -60px 1px;
42
+ }
43
+ .ke-container-qq .ke-icon-fontname{
44
+ background-position: -95px 1px;
45
+ }
46
+ .ke-container-qq .ke-icon-fontsize{
47
+ background-position: -128px 1px;
48
+ }
49
+ .ke-container-qq .ke-icon-forecolor{
50
+ background-position: -159px 1px;
51
+ }
52
+ .ke-container-qq .ke-icon-hilitecolor{
53
+ background-position: -190px 1px;
54
+ }
55
+ .ke-container-qq .ke-icon-plug-align{
56
+ background-position: -223px 1px;
57
+ }
58
+ .plug-align-justifyleft{
59
+ background-position: -350px 1px;
60
+ }
61
+ .plug-align-justifycenter{
62
+ background-position: -382px 1px;
63
+ }
64
+ .plug-align-justifyright{
65
+ background-position: -414px 1px;
66
+ }
67
+ .plug-order-insertorderedlist{
68
+ background-position: -446px 1px;
69
+ }
70
+ .plug-order-insertunorderedlist{
71
+ background-position: -477px 1px;
72
+ }
73
+ .plug-indent-indent{
74
+ background-position: -513px 1px;
75
+ }
76
+ .plug-indent-outdent{
77
+ background-position: -545px 1px;
78
+ }
79
+ .ke-container-qq .ke-icon-plug-order{
80
+ background-position: -255px 1px;
81
+ }
82
+ .ke-container-qq .ke-icon-plug-indent{
83
+ background-position: -287px 1px;
84
+ }
85
+ .ke-container-qq .ke-icon-link{
86
+ background-position: -319px 1px;
87
+ }
88
+
89
+ .ke-container-qq .ke-toolbar .ke-outline {
90
+ cursor: default;
91
+ padding:0px;
92
+ border:1px solid #fff;
93
+ }
94
+ .ke-container-qq .ke-toolbar .ke-on {
95
+ border-left:1px solid white;
96
+ border-top:1px solid white;
97
+ border-right:1px solid gray;
98
+ border-bottom:1px solid gray;
99
+ background-color: #FFFFFF;
100
+ }
101
+ .ke-container-qq .ke-toolbar .ke-selected {
102
+ border-left:1px solid gray;
103
+ border-top:1px solid gray;
104
+ border-right:1px solid white;
105
+ border-bottom:1px solid white;
106
+ background-color: #FFFFFF;
107
+ }
108
+ .ke-container-qq .ke-toolbar .ke-disabled {
109
+ cursor: default;
110
+ }
111
+
112
+ .ke-colorpicker-qq{
113
+ background:#fff;
114
+ }
115
+ /* statusbar */
116
+ .ke-container-qq .ke-statusbar {
117
+ display:none;
118
+ }
119
+ /* menu */
120
+ .ke-menu-qq {
121
+ border:1px solid #a6a6a6;
122
+ position:absolute;
123
+ background:#fff;
124
+ -moz-box-shadow:2px 2px 4px #DDDDDD;
125
+ z-index:999;
126
+ left:-400px;
127
+ top:-386px;
128
+ right:218px;
129
+ width:130px;
130
+ }
131
+ .ke-menu-qq .ke-menu-item {
132
+ padding:0px;
133
+ background:#fff;
134
+ }
135
+ .ke-menu-qq .ke-menu-item-on {
136
+ border:1px solid #000080;background:#FFEEC2;color:#036;
137
+ }
138
+ .ke-menu-qq .ke-toolbar .ke-selected {
139
+ border:1px solid #9a9afb;
140
+ }
141
+ .ke-menu-qq .ke-menu-item-left{
142
+ width:auto;
143
+ }
@@ -1,100 +1,100 @@
1
- /* container */
2
- .ke-container-simple {
3
- display: block;
4
- border: 1px solid #CCC;
5
- background-color: #FFF;
6
- overflow: hidden;
7
- }
8
- /* toolbar */
9
- .ke-container-simple .ke-toolbar {
10
- border-bottom: 1px solid #CCC;
11
- background-color: #FFF;
12
- padding: 2px 5px;
13
- overflow: hidden;
14
- }
15
- .ke-container-simple .ke-toolbar .ke-outline {
16
- border: 1px solid #FFF;
17
- background-color: transparent;
18
- margin: 1px;
19
- padding: 1px 2px;
20
- font-size: 0;
21
- line-height: 0;
22
- overflow: hidden;
23
- cursor: pointer;
24
- }
25
- .ke-container-simple .ke-toolbar .ke-on {
26
- border: 1px solid #5690D2;
27
- }
28
- .ke-container-simple .ke-toolbar .ke-selected {
29
- border: 1px solid #5690D2;
30
- background-color: #E9EFF6;
31
- }
32
- .ke-container-simple .ke-toolbar .ke-disabled {
33
- cursor: default;
34
- }
35
- /* statusbar */
36
- .ke-container-simple .ke-statusbar {
37
- position: relative;
38
- background-color: #FFF;
39
- border-top: 1px solid #CCCCCC;
40
- font-size: 0;
41
- line-height: 0;
42
- *height: 12px;
43
- overflow: hidden;
44
- text-align: center;
45
- cursor: s-resize;
46
- }
47
- /* menu */
48
- .ke-menu-simple {
49
- border: 1px solid #A0A0A0;
50
- background-color: #FFF;
51
- color: #222222;
52
- padding: 2px;
53
- font-family: "sans serif",tahoma,verdana,helvetica;
54
- font-size: 12px;
55
- text-align: left;
56
- overflow: hidden;
57
- }
58
- .ke-menu-simple .ke-menu-item {
59
- border: 1px solid #FFF;
60
- background-color: #FFF;
61
- color: #222222;
62
- height: 24px;
63
- overflow: hidden;
64
- cursor: pointer;
65
- }
66
- .ke-menu-simple .ke-menu-item-on {
67
- border: 1px solid #5690D2;
68
- background-color: #FFF;
69
- }
70
- /* colorpicker */
71
- .ke-colorpicker-simple {
72
- border: 1px solid #A0A0A0;
73
- background-color: #FEFEFE;
74
- color: #222222;
75
- padding: 2px;
76
- }
77
- .ke-colorpicker-simple .ke-colorpicker-cell {
78
- font-size: 0;
79
- line-height: 0;
80
- border: 1px solid #FEFEFE;
81
- cursor: pointer;
82
- margin:3px;
83
- padding:0;
84
- }
85
- .ke-colorpicker-simple .ke-colorpicker-cell-top {
86
- font-family: "sans serif",tahoma,verdana,helvetica;
87
- font-size: 12px;
88
- line-height: 24px;
89
- border: 1px solid #FEFEFE;
90
- cursor: pointer;
91
- margin:0;
92
- padding:0;
93
- text-align: center;
94
- }
95
- .ke-colorpicker-simple .ke-colorpicker-cell-on {
96
- border: 1px solid #5690D2;
97
- }
98
- .ke-colorpicker-simple .ke-colorpicker-cell-selected {
99
- border: 1px solid #2446AB;
100
- }
1
+ /* container */
2
+ .ke-container-simple {
3
+ display: block;
4
+ border: 1px solid #CCC;
5
+ background-color: #FFF;
6
+ overflow: hidden;
7
+ }
8
+ /* toolbar */
9
+ .ke-container-simple .ke-toolbar {
10
+ border-bottom: 1px solid #CCC;
11
+ background-color: #FFF;
12
+ padding: 2px 5px;
13
+ overflow: hidden;
14
+ }
15
+ .ke-container-simple .ke-toolbar .ke-outline {
16
+ border: 1px solid #FFF;
17
+ background-color: transparent;
18
+ margin: 1px;
19
+ padding: 1px 2px;
20
+ font-size: 0;
21
+ line-height: 0;
22
+ overflow: hidden;
23
+ cursor: pointer;
24
+ }
25
+ .ke-container-simple .ke-toolbar .ke-on {
26
+ border: 1px solid #5690D2;
27
+ }
28
+ .ke-container-simple .ke-toolbar .ke-selected {
29
+ border: 1px solid #5690D2;
30
+ background-color: #E9EFF6;
31
+ }
32
+ .ke-container-simple .ke-toolbar .ke-disabled {
33
+ cursor: default;
34
+ }
35
+ /* statusbar */
36
+ .ke-container-simple .ke-statusbar {
37
+ position: relative;
38
+ background-color: #FFF;
39
+ border-top: 1px solid #CCCCCC;
40
+ font-size: 0;
41
+ line-height: 0;
42
+ *height: 12px;
43
+ overflow: hidden;
44
+ text-align: center;
45
+ cursor: s-resize;
46
+ }
47
+ /* menu */
48
+ .ke-menu-simple {
49
+ border: 1px solid #A0A0A0;
50
+ background-color: #FFF;
51
+ color: #222222;
52
+ padding: 2px;
53
+ font-family: "sans serif",tahoma,verdana,helvetica;
54
+ font-size: 12px;
55
+ text-align: left;
56
+ overflow: hidden;
57
+ }
58
+ .ke-menu-simple .ke-menu-item {
59
+ border: 1px solid #FFF;
60
+ background-color: #FFF;
61
+ color: #222222;
62
+ height: 24px;
63
+ overflow: hidden;
64
+ cursor: pointer;
65
+ }
66
+ .ke-menu-simple .ke-menu-item-on {
67
+ border: 1px solid #5690D2;
68
+ background-color: #FFF;
69
+ }
70
+ /* colorpicker */
71
+ .ke-colorpicker-simple {
72
+ border: 1px solid #A0A0A0;
73
+ background-color: #FEFEFE;
74
+ color: #222222;
75
+ padding: 2px;
76
+ }
77
+ .ke-colorpicker-simple .ke-colorpicker-cell {
78
+ font-size: 0;
79
+ line-height: 0;
80
+ border: 1px solid #FEFEFE;
81
+ cursor: pointer;
82
+ margin:3px;
83
+ padding:0;
84
+ }
85
+ .ke-colorpicker-simple .ke-colorpicker-cell-top {
86
+ font-family: "sans serif",tahoma,verdana,helvetica;
87
+ font-size: 12px;
88
+ line-height: 24px;
89
+ border: 1px solid #FEFEFE;
90
+ cursor: pointer;
91
+ margin:0;
92
+ padding:0;
93
+ text-align: center;
94
+ }
95
+ .ke-colorpicker-simple .ke-colorpicker-cell-on {
96
+ border: 1px solid #5690D2;
97
+ }
98
+ .ke-colorpicker-simple .ke-colorpicker-cell-selected {
99
+ border: 1px solid #2446AB;
100
+ }