kit_cms 2.3.7 → 2.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/kit/ace/ace.js +11 -0
- data/app/assets/javascripts/kit/ace/ext-static_highlight.js +1 -0
- data/app/assets/javascripts/kit/ace/ext-textarea.js +1 -0
- data/app/assets/javascripts/kit/ace/keybinding-emacs.js +1 -0
- data/app/assets/javascripts/kit/ace/keybinding-vim.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-abap.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-asciidoc.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-c9search.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-c_cpp.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-clojure.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-coffee.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-coldfusion.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-csharp.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-css.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-dart.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-diff.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-dot.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-glsl.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-golang.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-groovy.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-haml.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-haxe.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-html.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-jade.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-java.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-javascript.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-json.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-jsp.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-jsx.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-latex.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-less.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-liquid.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-lisp.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-lua.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-luapage.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-lucene.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-makefile.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-markdown.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-objectivec.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-ocaml.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-perl.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-pgsql.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-php.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-powershell.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-python.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-r.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-rdoc.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-rhtml.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-ruby.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-sass.js +0 -0
- data/app/assets/javascripts/kit/ace/mode-scad.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-scala.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-scss.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-sh.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-sql.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-stylus.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-svg.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-tcl.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-text.js +0 -0
- data/app/assets/javascripts/kit/ace/mode-textile.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-typescript.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-xml.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-xquery.js +1 -0
- data/app/assets/javascripts/kit/ace/mode-yaml.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-ambiance.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-chaos.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-chrome.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-clouds.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-clouds_midnight.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-cobalt.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-crimson_editor.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-dawn.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-dreamweaver.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-eclipse.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-github.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-idle_fingers.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-kr.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-merbivore.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-merbivore_soft.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-mono_industrial.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-monokai.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-pastel_on_dark.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-solarized_dark.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-solarized_light.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-textmate.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-tomorrow.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night_blue.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night_bright.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-tomorrow_night_eighties.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-twilight.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-vibrant_ink.js +1 -0
- data/app/assets/javascripts/kit/ace/theme-xcode.js +1 -0
- data/app/assets/javascripts/kit/ace/worker-coffee.js +1 -0
- data/app/assets/javascripts/kit/ace/worker-css.js +1 -0
- data/app/assets/javascripts/kit/ace/worker-javascript.js +1 -0
- data/app/assets/javascripts/kit/ace/worker-json.js +1 -0
- data/app/assets/javascripts/kit/ace/worker-xquery.js +1 -0
- data/app/assets/javascripts/kit/markitup/jquery.markitup.js +634 -0
- data/app/assets/javascripts/kit/markitup/settings.js +31 -0
- data/app/assets/stylesheets/kit/markitup/html.css +59 -0
- 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 +145 -0
- data/app/views/layouts/mercury-editor.html.erb +5 -0
- data/app/views/utility/_ace_editor.html.erb +3 -3
- data/app/views/utility/_mercury_html_setup.js.erb +1 -0
- data/app/views/utility/mercury_html.html.haml +7 -4
- data/lib/kit_cms/version.rb +1 -1
- metadata +152 -18
@@ -0,0 +1,31 @@
|
|
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
|
+
|
@@ -0,0 +1,59 @@
|
|
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
|
@@ -0,0 +1,145 @@
|
|
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
|
+
}
|
@@ -13,6 +13,11 @@
|
|
13
13
|
<%= javascript_include_tag 'kit/mercury-editor' %>
|
14
14
|
<%= javascript_include_tag 'kit/utilities.js' %>
|
15
15
|
<%= javascript_include_tag 'kit/application-edit' %>
|
16
|
+
<%= javascript_include_tag "kit/markitup/jquery.markitup" %>
|
17
|
+
<%= javascript_include_tag "kit/markitup/settings" %>
|
18
|
+
<%= stylesheet_link_tag 'kit/markitup/style.css' %>
|
19
|
+
<%= stylesheet_link_tag 'kit/markitup/html.css' %>
|
20
|
+
|
16
21
|
</head>
|
17
22
|
<body>
|
18
23
|
<script type="text/javascript">
|
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
<%= javascript_include_tag 'kit/ace/ace.js' %>
|
2
|
+
<%= javascript_include_tag 'kit/ace/theme-textmate.js' %>
|
3
|
+
<%= javascript_include_tag "kit/ace/mode-#{ mode }.js" %>
|
4
4
|
|
5
5
|
<script type="text/javascript">
|
6
6
|
$(document).ready(function() {
|
@@ -0,0 +1 @@
|
|
1
|
+
NOT USED
|
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
%
|
3
|
-
|
4
|
-
%textarea(class="mercury-display-pane-container" id='edit' rows="5" style="width:100%" style="position: relative;")
|
1
|
+
%form(id="mercury_html_editor" style="width:900px;")
|
2
|
+
%textarea(class="mercury-display-pane-container" id='edit' )
|
5
3
|
|
6
4
|
.mercury-display-controls
|
7
5
|
%fieldset(class="buttons")
|
@@ -9,3 +7,8 @@
|
|
9
7
|
%li(class="commit button")
|
10
8
|
%input(class="submit" name="commit" type="submit" value="Save and Replace")
|
11
9
|
|
10
|
+
%script(type='text/javascript')
|
11
|
+
$(document).ready(function() {
|
12
|
+
parent.$('#edit').markItUp(parent.editor_settings).css('height', '300px');
|
13
|
+
});
|
14
|
+
|
data/lib/kit_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kit_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -59,22 +59,6 @@ dependencies:
|
|
59
59
|
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: kiteditor
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
type: :runtime
|
71
|
-
prerelease: false
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
78
62
|
- !ruby/object:Gem::Dependency
|
79
63
|
name: tire
|
80
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -491,6 +475,22 @@ dependencies:
|
|
491
475
|
- - ! '>='
|
492
476
|
- !ruby/object:Gem::Version
|
493
477
|
version: '0'
|
478
|
+
- !ruby/object:Gem::Dependency
|
479
|
+
name: dynamic_form
|
480
|
+
requirement: !ruby/object:Gem::Requirement
|
481
|
+
none: false
|
482
|
+
requirements:
|
483
|
+
- - ! '>='
|
484
|
+
- !ruby/object:Gem::Version
|
485
|
+
version: '0'
|
486
|
+
type: :runtime
|
487
|
+
prerelease: false
|
488
|
+
version_requirements: !ruby/object:Gem::Requirement
|
489
|
+
none: false
|
490
|
+
requirements:
|
491
|
+
- - ! '>='
|
492
|
+
- !ruby/object:Gem::Version
|
493
|
+
version: '0'
|
494
494
|
description: Kit is DSC's Community and Content Management System (CCMS) built as
|
495
495
|
a Rails engine for Rails 3.1 and above. It provides an entire application's worth
|
496
496
|
of CMS functions including in-place WYSIWYG editing with versioning, flexible layouts
|
@@ -2383,6 +2383,104 @@ files:
|
|
2383
2383
|
- app/assets/javascripts/admin/kit_engagement.js
|
2384
2384
|
- app/assets/javascripts/admin/order.js
|
2385
2385
|
- app/assets/javascripts/application.js
|
2386
|
+
- app/assets/javascripts/kit/ace/ace.js
|
2387
|
+
- app/assets/javascripts/kit/ace/ext-static_highlight.js
|
2388
|
+
- app/assets/javascripts/kit/ace/ext-textarea.js
|
2389
|
+
- app/assets/javascripts/kit/ace/keybinding-emacs.js
|
2390
|
+
- app/assets/javascripts/kit/ace/keybinding-vim.js
|
2391
|
+
- app/assets/javascripts/kit/ace/mode-abap.js
|
2392
|
+
- app/assets/javascripts/kit/ace/mode-asciidoc.js
|
2393
|
+
- app/assets/javascripts/kit/ace/mode-c9search.js
|
2394
|
+
- app/assets/javascripts/kit/ace/mode-c_cpp.js
|
2395
|
+
- app/assets/javascripts/kit/ace/mode-clojure.js
|
2396
|
+
- app/assets/javascripts/kit/ace/mode-coffee.js
|
2397
|
+
- app/assets/javascripts/kit/ace/mode-coldfusion.js
|
2398
|
+
- app/assets/javascripts/kit/ace/mode-csharp.js
|
2399
|
+
- app/assets/javascripts/kit/ace/mode-css.js
|
2400
|
+
- app/assets/javascripts/kit/ace/mode-dart.js
|
2401
|
+
- app/assets/javascripts/kit/ace/mode-diff.js
|
2402
|
+
- app/assets/javascripts/kit/ace/mode-dot.js
|
2403
|
+
- app/assets/javascripts/kit/ace/mode-glsl.js
|
2404
|
+
- app/assets/javascripts/kit/ace/mode-golang.js
|
2405
|
+
- app/assets/javascripts/kit/ace/mode-groovy.js
|
2406
|
+
- app/assets/javascripts/kit/ace/mode-haml.js
|
2407
|
+
- app/assets/javascripts/kit/ace/mode-haxe.js
|
2408
|
+
- app/assets/javascripts/kit/ace/mode-html.js
|
2409
|
+
- app/assets/javascripts/kit/ace/mode-jade.js
|
2410
|
+
- app/assets/javascripts/kit/ace/mode-java.js
|
2411
|
+
- app/assets/javascripts/kit/ace/mode-javascript.js
|
2412
|
+
- app/assets/javascripts/kit/ace/mode-json.js
|
2413
|
+
- app/assets/javascripts/kit/ace/mode-jsp.js
|
2414
|
+
- app/assets/javascripts/kit/ace/mode-jsx.js
|
2415
|
+
- app/assets/javascripts/kit/ace/mode-latex.js
|
2416
|
+
- app/assets/javascripts/kit/ace/mode-less.js
|
2417
|
+
- app/assets/javascripts/kit/ace/mode-liquid.js
|
2418
|
+
- app/assets/javascripts/kit/ace/mode-lisp.js
|
2419
|
+
- app/assets/javascripts/kit/ace/mode-lua.js
|
2420
|
+
- app/assets/javascripts/kit/ace/mode-luapage.js
|
2421
|
+
- app/assets/javascripts/kit/ace/mode-lucene.js
|
2422
|
+
- app/assets/javascripts/kit/ace/mode-makefile.js
|
2423
|
+
- app/assets/javascripts/kit/ace/mode-markdown.js
|
2424
|
+
- app/assets/javascripts/kit/ace/mode-objectivec.js
|
2425
|
+
- app/assets/javascripts/kit/ace/mode-ocaml.js
|
2426
|
+
- app/assets/javascripts/kit/ace/mode-perl.js
|
2427
|
+
- app/assets/javascripts/kit/ace/mode-pgsql.js
|
2428
|
+
- app/assets/javascripts/kit/ace/mode-php.js
|
2429
|
+
- app/assets/javascripts/kit/ace/mode-powershell.js
|
2430
|
+
- app/assets/javascripts/kit/ace/mode-python.js
|
2431
|
+
- app/assets/javascripts/kit/ace/mode-r.js
|
2432
|
+
- app/assets/javascripts/kit/ace/mode-rdoc.js
|
2433
|
+
- app/assets/javascripts/kit/ace/mode-rhtml.js
|
2434
|
+
- app/assets/javascripts/kit/ace/mode-ruby.js
|
2435
|
+
- app/assets/javascripts/kit/ace/mode-sass.js
|
2436
|
+
- app/assets/javascripts/kit/ace/mode-scad.js
|
2437
|
+
- app/assets/javascripts/kit/ace/mode-scala.js
|
2438
|
+
- app/assets/javascripts/kit/ace/mode-scss.js
|
2439
|
+
- app/assets/javascripts/kit/ace/mode-sh.js
|
2440
|
+
- app/assets/javascripts/kit/ace/mode-sql.js
|
2441
|
+
- app/assets/javascripts/kit/ace/mode-stylus.js
|
2442
|
+
- app/assets/javascripts/kit/ace/mode-svg.js
|
2443
|
+
- app/assets/javascripts/kit/ace/mode-tcl.js
|
2444
|
+
- app/assets/javascripts/kit/ace/mode-text.js
|
2445
|
+
- app/assets/javascripts/kit/ace/mode-textile.js
|
2446
|
+
- app/assets/javascripts/kit/ace/mode-typescript.js
|
2447
|
+
- app/assets/javascripts/kit/ace/mode-xml.js
|
2448
|
+
- app/assets/javascripts/kit/ace/mode-xquery.js
|
2449
|
+
- app/assets/javascripts/kit/ace/mode-yaml.js
|
2450
|
+
- app/assets/javascripts/kit/ace/theme-ambiance.js
|
2451
|
+
- app/assets/javascripts/kit/ace/theme-chaos.js
|
2452
|
+
- app/assets/javascripts/kit/ace/theme-chrome.js
|
2453
|
+
- app/assets/javascripts/kit/ace/theme-clouds.js
|
2454
|
+
- app/assets/javascripts/kit/ace/theme-clouds_midnight.js
|
2455
|
+
- app/assets/javascripts/kit/ace/theme-cobalt.js
|
2456
|
+
- app/assets/javascripts/kit/ace/theme-crimson_editor.js
|
2457
|
+
- app/assets/javascripts/kit/ace/theme-dawn.js
|
2458
|
+
- app/assets/javascripts/kit/ace/theme-dreamweaver.js
|
2459
|
+
- app/assets/javascripts/kit/ace/theme-eclipse.js
|
2460
|
+
- app/assets/javascripts/kit/ace/theme-github.js
|
2461
|
+
- app/assets/javascripts/kit/ace/theme-idle_fingers.js
|
2462
|
+
- app/assets/javascripts/kit/ace/theme-kr.js
|
2463
|
+
- app/assets/javascripts/kit/ace/theme-merbivore.js
|
2464
|
+
- app/assets/javascripts/kit/ace/theme-merbivore_soft.js
|
2465
|
+
- app/assets/javascripts/kit/ace/theme-mono_industrial.js
|
2466
|
+
- app/assets/javascripts/kit/ace/theme-monokai.js
|
2467
|
+
- app/assets/javascripts/kit/ace/theme-pastel_on_dark.js
|
2468
|
+
- app/assets/javascripts/kit/ace/theme-solarized_dark.js
|
2469
|
+
- app/assets/javascripts/kit/ace/theme-solarized_light.js
|
2470
|
+
- app/assets/javascripts/kit/ace/theme-textmate.js
|
2471
|
+
- app/assets/javascripts/kit/ace/theme-tomorrow.js
|
2472
|
+
- app/assets/javascripts/kit/ace/theme-tomorrow_night.js
|
2473
|
+
- app/assets/javascripts/kit/ace/theme-tomorrow_night_blue.js
|
2474
|
+
- app/assets/javascripts/kit/ace/theme-tomorrow_night_bright.js
|
2475
|
+
- app/assets/javascripts/kit/ace/theme-tomorrow_night_eighties.js
|
2476
|
+
- app/assets/javascripts/kit/ace/theme-twilight.js
|
2477
|
+
- app/assets/javascripts/kit/ace/theme-vibrant_ink.js
|
2478
|
+
- app/assets/javascripts/kit/ace/theme-xcode.js
|
2479
|
+
- app/assets/javascripts/kit/ace/worker-coffee.js
|
2480
|
+
- app/assets/javascripts/kit/ace/worker-css.js
|
2481
|
+
- app/assets/javascripts/kit/ace/worker-javascript.js
|
2482
|
+
- app/assets/javascripts/kit/ace/worker-json.js
|
2483
|
+
- app/assets/javascripts/kit/ace/worker-xquery.js
|
2386
2484
|
- app/assets/javascripts/kit/application-edit.js
|
2387
2485
|
- app/assets/javascripts/kit/application.js
|
2388
2486
|
- app/assets/javascripts/kit/best_in_place.js
|
@@ -2438,6 +2536,8 @@ files:
|
|
2438
2536
|
- app/assets/javascripts/kit/jquery.validate.js
|
2439
2537
|
- app/assets/javascripts/kit/jsplumb-min.js
|
2440
2538
|
- app/assets/javascripts/kit/markdown.js
|
2539
|
+
- app/assets/javascripts/kit/markitup/jquery.markitup.js
|
2540
|
+
- app/assets/javascripts/kit/markitup/settings.js
|
2441
2541
|
- app/assets/javascripts/kit/mercury-editor.js.erb
|
2442
2542
|
- app/assets/javascripts/kit/messaging.js
|
2443
2543
|
- app/assets/javascripts/kit/rails_admin/application.js
|
@@ -2515,6 +2615,39 @@ files:
|
|
2515
2615
|
- app/assets/stylesheets/kit/fancybox.css
|
2516
2616
|
- app/assets/stylesheets/kit/forums.css
|
2517
2617
|
- app/assets/stylesheets/kit/markdown.css
|
2618
|
+
- app/assets/stylesheets/kit/markitup/html.css
|
2619
|
+
- app/assets/stylesheets/kit/markitup/images/bg-container.png
|
2620
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-bbcode.png
|
2621
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-dotclear.png
|
2622
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-html.png
|
2623
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-json.png
|
2624
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-markdown.png
|
2625
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-textile.png
|
2626
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-wiki.png
|
2627
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor-xml.png
|
2628
|
+
- app/assets/stylesheets/kit/markitup/images/bg-editor.png
|
2629
|
+
- app/assets/stylesheets/kit/markitup/images/bold.png
|
2630
|
+
- app/assets/stylesheets/kit/markitup/images/clean.png
|
2631
|
+
- app/assets/stylesheets/kit/markitup/images/h1.png
|
2632
|
+
- app/assets/stylesheets/kit/markitup/images/h2.png
|
2633
|
+
- app/assets/stylesheets/kit/markitup/images/h3.png
|
2634
|
+
- app/assets/stylesheets/kit/markitup/images/h4.png
|
2635
|
+
- app/assets/stylesheets/kit/markitup/images/h5.png
|
2636
|
+
- app/assets/stylesheets/kit/markitup/images/h6.png
|
2637
|
+
- app/assets/stylesheets/kit/markitup/images/handle.png
|
2638
|
+
- app/assets/stylesheets/kit/markitup/images/image.png
|
2639
|
+
- app/assets/stylesheets/kit/markitup/images/italic.png
|
2640
|
+
- app/assets/stylesheets/kit/markitup/images/link.png
|
2641
|
+
- app/assets/stylesheets/kit/markitup/images/list-bullet.png
|
2642
|
+
- app/assets/stylesheets/kit/markitup/images/list-item.png
|
2643
|
+
- app/assets/stylesheets/kit/markitup/images/list-numeric.png
|
2644
|
+
- app/assets/stylesheets/kit/markitup/images/menu.png
|
2645
|
+
- app/assets/stylesheets/kit/markitup/images/paragraph.png
|
2646
|
+
- app/assets/stylesheets/kit/markitup/images/picture.png
|
2647
|
+
- app/assets/stylesheets/kit/markitup/images/preview.png
|
2648
|
+
- app/assets/stylesheets/kit/markitup/images/stroke.png
|
2649
|
+
- app/assets/stylesheets/kit/markitup/images/submenu.png
|
2650
|
+
- app/assets/stylesheets/kit/markitup/style.css
|
2518
2651
|
- app/assets/stylesheets/kit/rails_admin/aristo/images/bg_fallback.png
|
2519
2652
|
- app/assets/stylesheets/kit/rails_admin/aristo/images/icon_sprite.png
|
2520
2653
|
- app/assets/stylesheets/kit/rails_admin/aristo/images/progress_bar.gif
|
@@ -3215,6 +3348,7 @@ files:
|
|
3215
3348
|
- app/views/utility/_fetch_rss.html.erb
|
3216
3349
|
- app/views/utility/_map.html.haml
|
3217
3350
|
- app/views/utility/_menu.html.haml
|
3351
|
+
- app/views/utility/_mercury_html_setup.js.erb
|
3218
3352
|
- app/views/utility/_search_form.html.erb
|
3219
3353
|
- app/views/utility/_tinymce.html.erb
|
3220
3354
|
- app/views/utility/design_history.html.haml
|