kit_cms 2.3.8 → 2.3.9
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/codemirror/codemirror.js +5104 -0
- data/app/assets/javascripts/codemirror/collapserange.js +68 -0
- data/app/assets/javascripts/codemirror/css.js +465 -0
- data/app/assets/javascripts/codemirror/dialog.js +76 -0
- data/app/assets/javascripts/codemirror/editor.js +19 -0
- data/app/assets/javascripts/codemirror/foldcode.js +183 -0
- data/app/assets/javascripts/codemirror/formatting.js +108 -0
- data/app/assets/javascripts/codemirror/htmlmixed.js +84 -0
- data/app/assets/javascripts/codemirror/javascript.js +422 -0
- data/app/assets/javascripts/codemirror/jquery.js +4 -0
- data/app/assets/javascripts/codemirror/loadmode.js +51 -0
- data/app/assets/javascripts/codemirror/match-highlighter.js +46 -0
- data/app/assets/javascripts/codemirror/matchbrackets.js +63 -0
- data/app/assets/javascripts/codemirror/multiplex.js +95 -0
- data/app/assets/javascripts/codemirror/overlay.js +59 -0
- data/app/assets/javascripts/codemirror/search.js +131 -0
- data/app/assets/javascripts/codemirror/searchcursor.js +131 -0
- data/app/assets/javascripts/codemirror/xml.js +324 -0
- data/app/assets/stylesheets/codemirror/dialog.css +32 -0
- data/app/assets/stylesheets/codemirror/style.css +242 -0
- data/app/assets/stylesheets/codemirror/theme.css +25 -0
- data/app/views/layouts/_html-editor.html.haml +1 -0
- data/app/views/layouts/mercury-editor.html.erb +5 -5
- data/app/views/utility/mercury_html.html.haml +28 -3
- metadata +41 -39
- data/app/assets/javascripts/kit/markitup/jquery.markitup.js +0 -634
- data/app/assets/javascripts/kit/markitup/settings.js +0 -31
- data/app/assets/stylesheets/kit/markitup/html.css +0 -59
- data/app/assets/stylesheets/kit/markitup/images/bg-container.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-bbcode.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-dotclear.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-html.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-json.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-markdown.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-textile.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-wiki.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor-xml.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bg-editor.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/bold.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/clean.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/h1.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/h2.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/h3.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/h4.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/h5.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/h6.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/handle.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/image.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/italic.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/link.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/list-bullet.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/list-item.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/list-numeric.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/menu.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/paragraph.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/picture.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/preview.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/stroke.png +0 -0
- data/app/assets/stylesheets/kit/markitup/images/submenu.png +0 -0
- data/app/assets/stylesheets/kit/markitup/style.css +0 -145
- data/lib/kit_cms/version.rb +0 -3
@@ -1,31 +0,0 @@
|
|
1
|
-
var editor_settings = {
|
2
|
-
nameSpace: "html", // Useful to prevent multi-instances CSS conflict
|
3
|
-
onShiftEnter: {keepDefault:false, replaceWith:'<br />\n'},
|
4
|
-
onCtrlEnter: {keepDefault:false, openWith:'\n<p>', closeWith:'</p>\n'},
|
5
|
-
onTab: {keepDefault:false, openWith:' '},
|
6
|
-
markupSet: [
|
7
|
-
{name:'Heading 1', key:'1', openWith:'<h1(!( class="[![Class]!]")!)>', closeWith:'</h1>', placeHolder:'Your title here...' },
|
8
|
-
{name:'Heading 2', key:'2', openWith:'<h2(!( class="[![Class]!]")!)>', closeWith:'</h2>', placeHolder:'Your title here...' },
|
9
|
-
{name:'Heading 3', key:'3', openWith:'<h3(!( class="[![Class]!]")!)>', closeWith:'</h3>', placeHolder:'Your title here...' },
|
10
|
-
{name:'Heading 4', key:'4', openWith:'<h4(!( class="[![Class]!]")!)>', closeWith:'</h4>', placeHolder:'Your title here...' },
|
11
|
-
{name:'Heading 5', key:'5', openWith:'<h5(!( class="[![Class]!]")!)>', closeWith:'</h5>', placeHolder:'Your title here...' },
|
12
|
-
{name:'Heading 6', key:'6', openWith:'<h6(!( class="[![Class]!]")!)>', closeWith:'</h6>', placeHolder:'Your title here...' },
|
13
|
-
{name:'Paragraph', openWith:'<p(!( class="[![Class]!]")!)>', closeWith:'</p>' },
|
14
|
-
{separator:'---------------' },
|
15
|
-
{name:'Bold', key:'B', openWith:'<strong>', closeWith:'</strong>' },
|
16
|
-
{name:'Italic', key:'I', openWith:'<em>', closeWith:'</em>' },
|
17
|
-
{name:'Stroke through', key:'S', openWith:'<del>', closeWith:'</del>' },
|
18
|
-
{separator:'---------------' },
|
19
|
-
{name:'Ul', openWith:'<ul>\n', closeWith:'</ul>\n' },
|
20
|
-
{name:'Ol', openWith:'<ol>\n', closeWith:'</ol>\n' },
|
21
|
-
{name:'Li', openWith:'<li>', closeWith:'</li>' },
|
22
|
-
{separator:'---------------' },
|
23
|
-
{name:'Picture', key:'P', replaceWith:'<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
|
24
|
-
{name:'Link', key:'L', openWith:'<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith:'</a>', placeHolder:'Your text to link...' },
|
25
|
-
{separator:'---------------' },
|
26
|
-
{name:'Clean', replaceWith:function(h) { return h.selection.replace(/<(.*?)>/g, "") } },
|
27
|
-
]
|
28
|
-
}
|
29
|
-
|
30
|
-
|
31
|
-
|
@@ -1,59 +0,0 @@
|
|
1
|
-
/* -------------------------------------------------------------------
|
2
|
-
// markItUp!
|
3
|
-
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
-
// ------------------------------------------------------------------*/
|
5
|
-
.html .markItUpButton1 a {
|
6
|
-
background-image:url(images/h1.png);
|
7
|
-
}
|
8
|
-
.html .markItUpButton2 a {
|
9
|
-
background-image:url(images/h2.png);
|
10
|
-
}
|
11
|
-
.html .markItUpButton3 a {
|
12
|
-
background-image:url(images/h3.png);
|
13
|
-
}
|
14
|
-
.html .markItUpButton4 a {
|
15
|
-
background-image:url(images/h4.png);
|
16
|
-
}
|
17
|
-
.html .markItUpButton5 a {
|
18
|
-
background-image:url(images/h5.png);
|
19
|
-
}
|
20
|
-
.html .markItUpButton6 a {
|
21
|
-
background-image:url(images/h6.png);
|
22
|
-
}
|
23
|
-
.html .markItUpButton7 a {
|
24
|
-
background-image:url(images/paragraph.png);
|
25
|
-
}
|
26
|
-
|
27
|
-
.html .markItUpButton8 a {
|
28
|
-
background-image:url(images/bold.png);
|
29
|
-
}
|
30
|
-
.html .markItUpButton9 a {
|
31
|
-
background-image:url(images/italic.png);
|
32
|
-
}
|
33
|
-
.html .markItUpButton10 a {
|
34
|
-
background-image:url(images/stroke.png);
|
35
|
-
}
|
36
|
-
|
37
|
-
.html .markItUpButton11 a {
|
38
|
-
background-image:url(images/list-bullet.png);
|
39
|
-
}
|
40
|
-
.html .markItUpButton12 a {
|
41
|
-
background-image:url(images/list-numeric.png);
|
42
|
-
}
|
43
|
-
.html .markItUpButton13 a {
|
44
|
-
background-image:url(images/list-item.png);
|
45
|
-
}
|
46
|
-
|
47
|
-
.html .markItUpButton14 a {
|
48
|
-
background-image:url(images/picture.png);
|
49
|
-
}
|
50
|
-
.html .markItUpButton15 a {
|
51
|
-
background-image:url(images/link.png);
|
52
|
-
}
|
53
|
-
|
54
|
-
.html .markItUpButton16 a {
|
55
|
-
background-image:url(images/clean.png);
|
56
|
-
}
|
57
|
-
.html .preview a {
|
58
|
-
background-image:url(images/preview.png);
|
59
|
-
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,145 +0,0 @@
|
|
1
|
-
/* -------------------------------------------------------------------
|
2
|
-
// markItUp! Universal MarkUp Engine, JQuery plugin
|
3
|
-
// By Jay Salvat - http://markitup.jaysalvat.com/
|
4
|
-
// ------------------------------------------------------------------*/
|
5
|
-
.markItUp * {
|
6
|
-
margin:0px; padding:0px;
|
7
|
-
outline:none;
|
8
|
-
}
|
9
|
-
.markItUp a:link,
|
10
|
-
.markItUp a:visited {
|
11
|
-
color:#000;
|
12
|
-
text-decoration:none;
|
13
|
-
}
|
14
|
-
.markItUp {
|
15
|
-
width:900px;
|
16
|
-
margin:5px 0 5px 0;
|
17
|
-
border:5px solid #F5F5F5;
|
18
|
-
}
|
19
|
-
.markItUpContainer {
|
20
|
-
border:1px solid #3C769D;
|
21
|
-
background:#FFF url(images/bg-container.png) repeat-x top left;
|
22
|
-
padding:5px 5px 2px 5px;
|
23
|
-
font:11px Verdana, Arial, Helvetica, sans-serif;
|
24
|
-
}
|
25
|
-
.markItUpEditor {
|
26
|
-
font:12px 'Courier New', Courier, monospace;
|
27
|
-
padding:5px 5px 5px 35px;
|
28
|
-
border:3px solid #3C769D;
|
29
|
-
width:643px;
|
30
|
-
height:320px;
|
31
|
-
clear:both;
|
32
|
-
line-height:18px;
|
33
|
-
overflow:auto;
|
34
|
-
}
|
35
|
-
.markItUpPreviewFrame {
|
36
|
-
overflow:auto;
|
37
|
-
background-color:#FFFFFF;
|
38
|
-
border:1px solid #3C769D;
|
39
|
-
width:99.9%;
|
40
|
-
height:300px;
|
41
|
-
margin:5px 0;
|
42
|
-
}
|
43
|
-
.markItUpFooter {
|
44
|
-
width:100%;
|
45
|
-
cursor:n-resize;
|
46
|
-
}
|
47
|
-
.markItUpResizeHandle {
|
48
|
-
overflow:hidden;
|
49
|
-
width:22px; height:5px;
|
50
|
-
margin-left:auto;
|
51
|
-
margin-right:auto;
|
52
|
-
background-image:url(images/handle.png);
|
53
|
-
cursor:n-resize;
|
54
|
-
}
|
55
|
-
/***************************************************************************************/
|
56
|
-
/* first row of buttons */
|
57
|
-
.markItUpHeader ul li {
|
58
|
-
list-style:none;
|
59
|
-
float:left;
|
60
|
-
position:relative;
|
61
|
-
}
|
62
|
-
.markItUpHeader ul li ul{
|
63
|
-
display:none;
|
64
|
-
}
|
65
|
-
.markItUpHeader ul li:hover > ul{
|
66
|
-
display:block;
|
67
|
-
}
|
68
|
-
.markItUpHeader ul .markItUpDropMenu {
|
69
|
-
background:transparent url(images/menu.png) no-repeat 115% 50%;
|
70
|
-
margin-right:5px;
|
71
|
-
}
|
72
|
-
.markItUpHeader ul .markItUpDropMenu li {
|
73
|
-
margin-right:0px;
|
74
|
-
}
|
75
|
-
.markItUpHeader ul .markItUpSeparator {
|
76
|
-
margin:0 10px;
|
77
|
-
width:1px;
|
78
|
-
height:16px;
|
79
|
-
overflow:hidden;
|
80
|
-
background-color:#CCC;
|
81
|
-
}
|
82
|
-
.markItUpHeader ul ul .markItUpSeparator {
|
83
|
-
width:auto; height:1px;
|
84
|
-
margin:0px;
|
85
|
-
}
|
86
|
-
/* next rows of buttons */
|
87
|
-
.markItUpHeader ul ul {
|
88
|
-
display:none;
|
89
|
-
position:absolute;
|
90
|
-
top:18px; left:0px;
|
91
|
-
background:#F5F5F5;
|
92
|
-
border:1px solid #3C769D;
|
93
|
-
height:inherit;
|
94
|
-
}
|
95
|
-
.markItUpHeader ul ul li {
|
96
|
-
float:none;
|
97
|
-
border-bottom:1px solid #3C769D;
|
98
|
-
}
|
99
|
-
.markItUpHeader ul ul .markItUpDropMenu {
|
100
|
-
background:#F5F5F5 url(images/submenu.png) no-repeat 100% 50%;
|
101
|
-
}
|
102
|
-
/* next rows of buttons */
|
103
|
-
.markItUpHeader ul ul ul {
|
104
|
-
position:absolute;
|
105
|
-
top:-1px; left:150px;
|
106
|
-
}
|
107
|
-
.markItUpHeader ul ul ul li {
|
108
|
-
float:none;
|
109
|
-
}
|
110
|
-
.markItUpHeader ul a {
|
111
|
-
display:block;
|
112
|
-
width:16px; height:16px;
|
113
|
-
text-indent:-10000px;
|
114
|
-
background-repeat:no-repeat;
|
115
|
-
padding:3px;
|
116
|
-
margin:0px;
|
117
|
-
}
|
118
|
-
.markItUpHeader ul ul a {
|
119
|
-
display:block;
|
120
|
-
padding-left:0px;
|
121
|
-
text-indent:0;
|
122
|
-
width:120px;
|
123
|
-
padding:5px 5px 5px 25px;
|
124
|
-
background-position:2px 50%;
|
125
|
-
}
|
126
|
-
.markItUpHeader ul ul a:hover {
|
127
|
-
color:#FFF;
|
128
|
-
background-color:#3C769D;
|
129
|
-
}
|
130
|
-
/***************************************************************************************/
|
131
|
-
.html .markItUpEditor {
|
132
|
-
}
|
133
|
-
.markdown .markItUpEditor {
|
134
|
-
background-image:url(images/bg-editor-markdown.png);
|
135
|
-
}
|
136
|
-
.textile .markItUpEditor {
|
137
|
-
background-image:url(images/bg-editor-textile.png);
|
138
|
-
}
|
139
|
-
.bbcode .markItUpEditor {
|
140
|
-
background-image:url(images/bg-editor-bbcode.png);
|
141
|
-
}
|
142
|
-
.wiki .markItUpEditor,
|
143
|
-
.dotclear .markItUpEditor {
|
144
|
-
background-image:url(images/bg-editor-wiki.png);
|
145
|
-
}
|
data/lib/kit_cms/version.rb
DELETED