Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
知鸟1号
AdminLTE
提交
c2730bf4
A
AdminLTE
项目概览
知鸟1号
/
AdminLTE
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
AdminLTE
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c2730bf4
编写于
5月 30, 2015
作者:
A
Abdullah Almsaeed
浏览文件
操作
浏览文件
下载
差异文件
Merged master
上级
bfb9370d
094ac31d
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
15024 addition
and
382 deletion
+15024
-382
dist/js/pages/dashboard.js
dist/js/pages/dashboard.js
+5
-5
documentation/build/include/plugins.html
documentation/build/include/plugins.html
+5
-5
documentation/index.html
documentation/index.html
+5
-5
index.html
index.html
+2
-2
pages/calendar.html
pages/calendar.html
+2
-2
pages/forms/advanced.html
pages/forms/advanced.html
+5
-5
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
+14975
-0
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js
+8
-6
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.css
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.css
+15
-0
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.js
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.js
+0
-350
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css
+2
-2
未找到文件。
dist/js/pages/dashboard.js
浏览文件 @
c2730bf4
...
...
@@ -33,13 +33,13 @@ $(function () {
{
ranges
:
{
'
Today
'
:
[
moment
(),
moment
()],
'
Yesterday
'
:
[
moment
().
subtract
(
'
days
'
,
1
),
moment
().
subtract
(
'
days
'
,
1
)],
'
Last 7 Days
'
:
[
moment
().
subtract
(
'
days
'
,
6
),
moment
()],
'
Last 30 Days
'
:
[
moment
().
subtract
(
'
days
'
,
29
),
moment
()],
'
Yesterday
'
:
[
moment
().
subtract
(
1
,
'
days
'
),
moment
().
subtract
(
1
,
'
days
'
)],
'
Last 7 Days
'
:
[
moment
().
subtract
(
6
,
'
days
'
),
moment
()],
'
Last 30 Days
'
:
[
moment
().
subtract
(
29
,
'
days
'
),
moment
()],
'
This Month
'
:
[
moment
().
startOf
(
'
month
'
),
moment
().
endOf
(
'
month
'
)],
'
Last Month
'
:
[
moment
().
subtract
(
'
month
'
,
1
).
startOf
(
'
month
'
),
moment
().
subtract
(
'
month
'
,
1
).
endOf
(
'
month
'
)]
'
Last Month
'
:
[
moment
().
subtract
(
1
,
'
month
'
).
startOf
(
'
month
'
),
moment
().
subtract
(
1
,
'
month
'
).
endOf
(
'
month
'
)]
},
startDate
:
moment
().
subtract
(
'
days
'
,
29
),
startDate
:
moment
().
subtract
(
29
,
'
days
'
),
endDate
:
moment
()
},
function
(
start
,
end
)
{
...
...
documentation/build/include/plugins.html
浏览文件 @
c2730bf4
...
...
@@ -17,17 +17,17 @@
<li><a
href=
'https://github.com/seiyria/bootstrap-slider'
>
Bootstrap Slider
</a></li>
<li><a
href=
'http://ionden.com/a/plugins/ion.rangeSlider/en.html'
target=
"_blank"
>
Ion Slider
</a></li>
<li><a
href=
'http://bootstrap-datepicker.readthedocs.org/'
target=
"_blank"
>
Date Picker
</a></li>
<li><a
href=
'http://www.
improvely
.com/'
target=
"_blank"
>
Date Range Picker
</a></li>
<li><a
href=
'http://www.
daterangepicker
.com/'
target=
"_blank"
>
Date Range Picker
</a></li>
<li><a
href=
'http://mjolnic.github.io/bootstrap-colorpicker/'
target=
"_blank"
>
Color Picker
</a></li>
<li><a
href=
'https://github.com/jdewit/bootstrap-timepicker'
target=
"_blank"
>
Time Picker
</a></li>
<li><a
href=
'http://
git.io/arlzeA
'
target=
"_blank"
>
iCheck
</a></li>
<li><a
href=
'http://
fronteed.com/iCheck/
'
target=
"_blank"
>
iCheck
</a></li>
<li><a
href=
'http://github.com/RobinHerbots/jquery.inputmask'
target=
"_blank"
>
Input Mask
</a></li>
</ul>
</div>
<!-- /.col -->
<div
class=
'col-sm-3'
>
<ul
class=
"list-unstyled"
>
<li><h4>
Editors
</h4></li>
<li><a
href=
'https://github.com/
Waxolunist/bootstrap3-wysihtml5-bower
'
target=
"_blank"
>
Bootstrap WYSIHTML5
</a></li>
<li><a
href=
'https://github.com/
bootstrap-wysiwyg/bootstrap3-wysiwyg
'
target=
"_blank"
>
Bootstrap WYSIHTML5
</a></li>
<li><a
href=
'http://ckeditor.com'
target=
"_blank"
>
CK Editor
</a></li>
</ul>
</div>
<!-- /. col -->
...
...
@@ -35,11 +35,11 @@
<ul
class=
"list-unstyled"
>
<li><h4>
Other
</h4></li>
<li><a
href=
'https://datatables.net/examples/styling/bootstrap.html'
target=
"_blank"
>
Data Tables
</a></li>
<li><a
href=
'http://
arshaw.com/fullcalendar
/'
target=
"_blank"
>
Full Calendar
</a></li>
<li><a
href=
'http://
fullcalendar.io
/'
target=
"_blank"
>
Full Calendar
</a></li>
<li><a
href=
'http://jqueryui.com'
target=
"_blank"
>
jQuery UI
</a></li>
<li><a
href=
'http://anthonyterrien.com/knob/'
target=
"_blank"
>
jQuery Knob
</a></li>
<li><a
href=
'http://jvectormap.com/'
target=
"_blank"
>
jVector Map
</a></li>
<li><a
href=
'http://rocha.la'
target=
"_blank"
>
Slim Scroll
</a></li>
<li><a
href=
'http://rocha.la
/jQuery-slimScroll
'
target=
"_blank"
>
Slim Scroll
</a></li>
<li><a
href=
'http://github.hubspot.com/pace/docs/welcome/'
target=
"_blank"
>
Pace
</a></li>
</ul>
</div>
<!-- /.col -->
...
...
documentation/index.html
浏览文件 @
c2730bf4
...
...
@@ -1993,17 +1993,17 @@ AdminLTE/
<li><a
href=
'https://github.com/seiyria/bootstrap-slider'
>
Bootstrap Slider
</a></li>
<li><a
href=
'http://ionden.com/a/plugins/ion.rangeSlider/en.html'
target=
"_blank"
>
Ion Slider
</a></li>
<li><a
href=
'http://bootstrap-datepicker.readthedocs.org/'
target=
"_blank"
>
Date Picker
</a></li>
<li><a
href=
'http://www.
improvely
.com/'
target=
"_blank"
>
Date Range Picker
</a></li>
<li><a
href=
'http://www.
daterangepicker
.com/'
target=
"_blank"
>
Date Range Picker
</a></li>
<li><a
href=
'http://mjolnic.github.io/bootstrap-colorpicker/'
target=
"_blank"
>
Color Picker
</a></li>
<li><a
href=
'https://github.com/jdewit/bootstrap-timepicker'
target=
"_blank"
>
Time Picker
</a></li>
<li><a
href=
'http://
git.io/arlzeA
'
target=
"_blank"
>
iCheck
</a></li>
<li><a
href=
'http://
fronteed.com/iCheck/
'
target=
"_blank"
>
iCheck
</a></li>
<li><a
href=
'http://github.com/RobinHerbots/jquery.inputmask'
target=
"_blank"
>
Input Mask
</a></li>
</ul>
</div>
<!-- /.col -->
<div
class=
'col-sm-3'
>
<ul
class=
"list-unstyled"
>
<li><h4>
Editors
</h4></li>
<li><a
href=
'https://github.com/
Waxolunist/bootstrap3-wysihtml5-bower
'
target=
"_blank"
>
Bootstrap WYSIHTML5
</a></li>
<li><a
href=
'https://github.com/
bootstrap-wysiwyg/bootstrap3-wysiwyg
'
target=
"_blank"
>
Bootstrap WYSIHTML5
</a></li>
<li><a
href=
'http://ckeditor.com'
target=
"_blank"
>
CK Editor
</a></li>
</ul>
</div>
<!-- /. col -->
...
...
@@ -2011,11 +2011,11 @@ AdminLTE/
<ul
class=
"list-unstyled"
>
<li><h4>
Other
</h4></li>
<li><a
href=
'https://datatables.net/examples/styling/bootstrap.html'
target=
"_blank"
>
Data Tables
</a></li>
<li><a
href=
'http://
arshaw.com/fullcalendar
/'
target=
"_blank"
>
Full Calendar
</a></li>
<li><a
href=
'http://
fullcalendar.io
/'
target=
"_blank"
>
Full Calendar
</a></li>
<li><a
href=
'http://jqueryui.com'
target=
"_blank"
>
jQuery UI
</a></li>
<li><a
href=
'http://anthonyterrien.com/knob/'
target=
"_blank"
>
jQuery Knob
</a></li>
<li><a
href=
'http://jvectormap.com/'
target=
"_blank"
>
jVector Map
</a></li>
<li><a
href=
'http://rocha.la'
target=
"_blank"
>
Slim Scroll
</a></li>
<li><a
href=
'http://rocha.la
/jQuery-slimScroll
'
target=
"_blank"
>
Slim Scroll
</a></li>
<li><a
href=
'http://github.hubspot.com/pace/docs/welcome/'
target=
"_blank"
>
Pace
</a></li>
</ul>
</div>
<!-- /.col -->
...
...
index.html
浏览文件 @
c2730bf4
...
...
@@ -1068,8 +1068,8 @@
<!-- jQuery 2.1.4 -->
<script
src=
"plugins/jQuery/jQuery-2.1.4.min.js"
></script>
<!-- jQuery UI 1.11.
2
-->
<script
src=
"https://code.jquery.com/ui/1.11.
2
/jquery-ui.min.js"
type=
"text/javascript"
></script>
<!-- jQuery UI 1.11.
4
-->
<script
src=
"https://code.jquery.com/ui/1.11.
4
/jquery-ui.min.js"
type=
"text/javascript"
></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$
.
widget
.
bridge
(
'
uibutton
'
,
$
.
ui
.
button
);
...
...
pages/calendar.html
浏览文件 @
c2730bf4
...
...
@@ -703,8 +703,8 @@
<script
src=
"../plugins/jQuery/jQuery-2.1.4.min.js"
></script>
<!-- Bootstrap 3.3.2 JS -->
<script
src=
"../bootstrap/js/bootstrap.min.js"
type=
"text/javascript"
></script>
<!-- jQuery UI 1.11.
1
-->
<script
src=
"https://code.jquery.com/ui/1.11.
1
/jquery-ui.min.js"
type=
"text/javascript"
></script>
<!-- jQuery UI 1.11.
4
-->
<script
src=
"https://code.jquery.com/ui/1.11.
4
/jquery-ui.min.js"
type=
"text/javascript"
></script>
<!-- Slimscroll -->
<script
src=
"../plugins/slimScroll/jquery.slimscroll.min.js"
type=
"text/javascript"
></script>
<!-- FastClick -->
...
...
pages/forms/advanced.html
浏览文件 @
c2730bf4
...
...
@@ -940,13 +940,13 @@
{
ranges
:
{
'
Today
'
:
[
moment
(),
moment
()],
'
Yesterday
'
:
[
moment
().
subtract
(
'
days
'
,
1
),
moment
().
subtract
(
'
days
'
,
1
)],
'
Last 7 Days
'
:
[
moment
().
subtract
(
'
days
'
,
6
),
moment
()],
'
Last 30 Days
'
:
[
moment
().
subtract
(
'
days
'
,
29
),
moment
()],
'
Yesterday
'
:
[
moment
().
subtract
(
1
,
'
days
'
),
moment
().
subtract
(
1
,
'
days
'
)],
'
Last 7 Days
'
:
[
moment
().
subtract
(
6
,
'
days
'
),
moment
()],
'
Last 30 Days
'
:
[
moment
().
subtract
(
29
,
'
days
'
),
moment
()],
'
This Month
'
:
[
moment
().
startOf
(
'
month
'
),
moment
().
endOf
(
'
month
'
)],
'
Last Month
'
:
[
moment
().
subtract
(
'
month
'
,
1
).
startOf
(
'
month
'
),
moment
().
subtract
(
'
month
'
,
1
).
endOf
(
'
month
'
)]
'
Last Month
'
:
[
moment
().
subtract
(
1
,
'
month
'
).
startOf
(
'
month
'
),
moment
().
subtract
(
1
,
'
month
'
).
endOf
(
'
month
'
)]
},
startDate
:
moment
().
subtract
(
'
days
'
,
29
),
startDate
:
moment
().
subtract
(
29
,
'
days
'
),
endDate
:
moment
()
},
function
(
start
,
end
)
{
...
...
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.js
0 → 100644
浏览文件 @
c2730bf4
此差异已折叠。
点击以展开。
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js
浏览文件 @
c2730bf4
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.css
浏览文件 @
c2730bf4
...
...
@@ -100,3 +100,18 @@ ul.wysihtml5-toolbar div[data-wysihtml5-command-value="blue"] {
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
"orange"
]
{
background
:
orange
!important
;
}
.glyphicon-quote
:before
{
content
:
"\201C"
;
font-family
:
Georgia
,
serif
;
font-size
:
50px
;
position
:
absolute
;
top
:
-4px
;
left
:
-3px
;
max-height
:
100%
;
}
.glyphicon-quote
:after
{
content
:
"\0000a0"
;
}
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.js
已删除
100644 → 0
浏览文件 @
bfb9370d
/* jshint expr: true */
!
(
function
(
$
,
wysi
)
{
'
use strict
'
;
var
templates
=
function
(
key
,
locale
,
options
)
{
return
wysi
.
tpl
[
key
]({
locale
:
locale
,
options
:
options
});
};
var
Wysihtml5
=
function
(
el
,
options
)
{
this
.
el
=
el
;
var
toolbarOpts
=
options
||
defaultOptions
;
for
(
var
t
in
toolbarOpts
.
customTemplates
)
{
wysi
.
tpl
[
t
]
=
toolbarOpts
.
customTemplates
[
t
];
}
this
.
toolbar
=
this
.
createToolbar
(
el
,
toolbarOpts
);
this
.
editor
=
this
.
createEditor
(
options
);
window
.
editor
=
this
.
editor
;
$
(
'
iframe.wysihtml5-sandbox
'
).
each
(
function
(
i
,
el
){
$
(
el
.
contentWindow
).
off
(
'
focus.wysihtml5
'
).
on
({
'
focus.wysihtml5
'
:
function
(){
$
(
'
li.dropdown
'
).
removeClass
(
'
open
'
);
}
});
});
};
Wysihtml5
.
prototype
=
{
constructor
:
Wysihtml5
,
createEditor
:
function
(
options
)
{
options
=
options
||
{};
// Add the toolbar to a clone of the options object so multiple instances
// of the WYISYWG don't break because 'toolbar' is already defined
options
=
$
.
extend
(
true
,
{},
options
);
options
.
toolbar
=
this
.
toolbar
[
0
];
var
editor
=
new
wysi
.
Editor
(
this
.
el
[
0
],
options
);
if
(
options
&&
options
.
events
)
{
for
(
var
eventName
in
options
.
events
)
{
editor
.
on
(
eventName
,
options
.
events
[
eventName
]);
}
}
return
editor
;
},
createToolbar
:
function
(
el
,
options
)
{
var
self
=
this
;
var
toolbar
=
$
(
'
<ul/>
'
,
{
'
class
'
:
'
wysihtml5-toolbar
'
,
'
style
'
:
'
display:none
'
});
var
culture
=
options
.
locale
||
defaultOptions
.
locale
||
'
en
'
;
for
(
var
key
in
defaultOptions
)
{
var
value
=
false
;
if
(
options
[
key
]
!==
undefined
)
{
if
(
options
[
key
]
===
true
)
{
value
=
true
;
}
}
else
{
value
=
defaultOptions
[
key
];
}
if
(
value
===
true
)
{
toolbar
.
append
(
templates
(
key
,
locale
[
culture
],
options
));
if
(
key
===
'
html
'
)
{
this
.
initHtml
(
toolbar
);
}
if
(
key
===
'
link
'
)
{
this
.
initInsertLink
(
toolbar
);
}
if
(
key
===
'
image
'
)
{
this
.
initInsertImage
(
toolbar
);
}
}
}
if
(
options
.
toolbar
)
{
for
(
key
in
options
.
toolbar
)
{
toolbar
.
append
(
options
.
toolbar
[
key
]);
}
}
toolbar
.
find
(
'
a[data-wysihtml5-command="formatBlock"]
'
).
click
(
function
(
e
)
{
var
target
=
e
.
target
||
e
.
srcElement
;
var
el
=
$
(
target
);
self
.
toolbar
.
find
(
'
.current-font
'
).
text
(
el
.
html
());
});
toolbar
.
find
(
'
a[data-wysihtml5-command="foreColor"]
'
).
click
(
function
(
e
)
{
var
target
=
e
.
target
||
e
.
srcElement
;
var
el
=
$
(
target
);
self
.
toolbar
.
find
(
'
.current-color
'
).
text
(
el
.
html
());
});
this
.
el
.
before
(
toolbar
);
return
toolbar
;
},
initHtml
:
function
(
toolbar
)
{
var
changeViewSelector
=
'
a[data-wysihtml5-action="change_view"]
'
;
toolbar
.
find
(
changeViewSelector
).
click
(
function
(
e
)
{
toolbar
.
find
(
'
a.btn
'
).
not
(
changeViewSelector
).
toggleClass
(
'
disabled
'
);
});
},
initInsertImage
:
function
(
toolbar
)
{
var
self
=
this
;
var
insertImageModal
=
toolbar
.
find
(
'
.bootstrap-wysihtml5-insert-image-modal
'
);
var
urlInput
=
insertImageModal
.
find
(
'
.bootstrap-wysihtml5-insert-image-url
'
);
var
insertButton
=
insertImageModal
.
find
(
'
a.btn-primary
'
);
var
initialValue
=
urlInput
.
val
();
var
caretBookmark
;
var
insertImage
=
function
()
{
var
url
=
urlInput
.
val
();
urlInput
.
val
(
initialValue
);
self
.
editor
.
currentView
.
element
.
focus
();
if
(
caretBookmark
)
{
self
.
editor
.
composer
.
selection
.
setBookmark
(
caretBookmark
);
caretBookmark
=
null
;
}
self
.
editor
.
composer
.
commands
.
exec
(
'
insertImage
'
,
url
);
};
urlInput
.
keypress
(
function
(
e
)
{
if
(
e
.
which
==
13
)
{
insertImage
();
insertImageModal
.
modal
(
'
hide
'
);
}
});
insertButton
.
click
(
insertImage
);
insertImageModal
.
on
(
'
shown
'
,
function
()
{
urlInput
.
focus
();
});
insertImageModal
.
on
(
'
hide
'
,
function
()
{
self
.
editor
.
currentView
.
element
.
focus
();
});
toolbar
.
find
(
'
a[data-wysihtml5-command=insertImage]
'
).
click
(
function
()
{
var
activeButton
=
$
(
this
).
hasClass
(
'
wysihtml5-command-active
'
);
if
(
!
activeButton
)
{
self
.
editor
.
currentView
.
element
.
focus
(
false
);
caretBookmark
=
self
.
editor
.
composer
.
selection
.
getBookmark
();
insertImageModal
.
appendTo
(
'
body
'
).
modal
(
'
show
'
);
insertImageModal
.
on
(
'
click.dismiss.modal
'
,
'
[data-dismiss="modal"]
'
,
function
(
e
)
{
e
.
stopPropagation
();
});
return
false
;
}
else
{
return
true
;
}
});
},
initInsertLink
:
function
(
toolbar
)
{
var
self
=
this
;
var
insertLinkModal
=
toolbar
.
find
(
'
.bootstrap-wysihtml5-insert-link-modal
'
);
var
urlInput
=
insertLinkModal
.
find
(
'
.bootstrap-wysihtml5-insert-link-url
'
);
var
targetInput
=
insertLinkModal
.
find
(
'
.bootstrap-wysihtml5-insert-link-target
'
);
var
insertButton
=
insertLinkModal
.
find
(
'
a.btn-primary
'
);
var
initialValue
=
urlInput
.
val
();
var
caretBookmark
;
var
insertLink
=
function
()
{
var
url
=
urlInput
.
val
();
urlInput
.
val
(
initialValue
);
self
.
editor
.
currentView
.
element
.
focus
();
if
(
caretBookmark
)
{
self
.
editor
.
composer
.
selection
.
setBookmark
(
caretBookmark
);
caretBookmark
=
null
;
}
var
newWindow
=
targetInput
.
prop
(
'
checked
'
);
self
.
editor
.
composer
.
commands
.
exec
(
'
createLink
'
,
{
'
href
'
:
url
,
'
target
'
:
(
newWindow
?
'
_blank
'
:
'
_self
'
),
'
rel
'
:
(
newWindow
?
'
nofollow
'
:
''
)
});
};
var
pressedEnter
=
false
;
urlInput
.
keypress
(
function
(
e
)
{
if
(
e
.
which
==
13
)
{
insertLink
();
insertLinkModal
.
modal
(
'
hide
'
);
}
});
insertButton
.
click
(
insertLink
);
insertLinkModal
.
on
(
'
shown
'
,
function
()
{
urlInput
.
focus
();
});
insertLinkModal
.
on
(
'
hide
'
,
function
()
{
self
.
editor
.
currentView
.
element
.
focus
();
});
toolbar
.
find
(
'
a[data-wysihtml5-command=createLink]
'
).
click
(
function
()
{
var
activeButton
=
$
(
this
).
hasClass
(
'
wysihtml5-command-active
'
);
if
(
!
activeButton
)
{
self
.
editor
.
currentView
.
element
.
focus
(
false
);
caretBookmark
=
self
.
editor
.
composer
.
selection
.
getBookmark
();
insertLinkModal
.
appendTo
(
'
body
'
).
modal
(
'
show
'
);
insertLinkModal
.
on
(
'
click.dismiss.modal
'
,
'
[data-dismiss="modal"]
'
,
function
(
e
)
{
e
.
stopPropagation
();
});
return
false
;
}
else
{
return
true
;
}
});
}
};
// these define our public api
var
methods
=
{
resetDefaults
:
function
()
{
$
.
fn
.
wysihtml5
.
defaultOptions
=
$
.
extend
(
true
,
{},
$
.
fn
.
wysihtml5
.
defaultOptionsCache
);
},
bypassDefaults
:
function
(
options
)
{
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
);
$this
.
data
(
'
wysihtml5
'
,
new
Wysihtml5
(
$this
,
options
));
});
},
shallowExtend
:
function
(
options
)
{
var
settings
=
$
.
extend
({},
$
.
fn
.
wysihtml5
.
defaultOptions
,
options
||
{},
$
(
this
).
data
());
var
that
=
this
;
return
methods
.
bypassDefaults
.
apply
(
that
,
[
settings
]);
},
deepExtend
:
function
(
options
)
{
var
settings
=
$
.
extend
(
true
,
{},
$
.
fn
.
wysihtml5
.
defaultOptions
,
options
||
{});
var
that
=
this
;
return
methods
.
bypassDefaults
.
apply
(
that
,
[
settings
]);
},
init
:
function
(
options
)
{
var
that
=
this
;
return
methods
.
shallowExtend
.
apply
(
that
,
[
options
]);
}
};
$
.
fn
.
wysihtml5
=
function
(
method
)
{
if
(
methods
[
method
]
)
{
return
methods
[
method
].
apply
(
this
,
Array
.
prototype
.
slice
.
call
(
arguments
,
1
));
}
else
if
(
typeof
method
===
'
object
'
||
!
method
)
{
return
methods
.
init
.
apply
(
this
,
arguments
);
}
else
{
$
.
error
(
'
Method
'
+
method
+
'
does not exist on jQuery.wysihtml5
'
);
}
};
$
.
fn
.
wysihtml5
.
Constructor
=
Wysihtml5
;
var
defaultOptions
=
$
.
fn
.
wysihtml5
.
defaultOptions
=
{
'
font-styles
'
:
true
,
'
color
'
:
false
,
'
emphasis
'
:
true
,
'
lists
'
:
true
,
'
html
'
:
false
,
'
link
'
:
true
,
'
image
'
:
true
,
events
:
{},
parserRules
:
{
classes
:
{
'
wysiwyg-color-silver
'
:
1
,
'
wysiwyg-color-gray
'
:
1
,
'
wysiwyg-color-white
'
:
1
,
'
wysiwyg-color-maroon
'
:
1
,
'
wysiwyg-color-red
'
:
1
,
'
wysiwyg-color-purple
'
:
1
,
'
wysiwyg-color-fuchsia
'
:
1
,
'
wysiwyg-color-green
'
:
1
,
'
wysiwyg-color-lime
'
:
1
,
'
wysiwyg-color-olive
'
:
1
,
'
wysiwyg-color-yellow
'
:
1
,
'
wysiwyg-color-navy
'
:
1
,
'
wysiwyg-color-blue
'
:
1
,
'
wysiwyg-color-teal
'
:
1
,
'
wysiwyg-color-aqua
'
:
1
,
'
wysiwyg-color-orange
'
:
1
},
tags
:
{
'
b
'
:
{},
'
i
'
:
{},
'
strong
'
:
{},
'
em
'
:
{},
'
p
'
:
{},
'
br
'
:
{},
'
ol
'
:
{},
'
ul
'
:
{},
'
li
'
:
{},
'
h1
'
:
{},
'
h2
'
:
{},
'
h3
'
:
{},
'
h4
'
:
{},
'
h5
'
:
{},
'
h6
'
:
{},
'
blockquote
'
:
{},
'
u
'
:
1
,
'
img
'
:
{
'
check_attributes
'
:
{
'
width
'
:
'
numbers
'
,
'
alt
'
:
'
alt
'
,
'
src
'
:
'
url
'
,
'
height
'
:
'
numbers
'
}
},
'
a
'
:
{
check_attributes
:
{
'
href
'
:
'
url
'
// important to avoid XSS
},
'
set_attributes
'
:
{
'
target
'
:
'
_blank
'
,
'
rel
'
:
'
nofollow
'
}
},
'
span
'
:
1
,
'
div
'
:
1
,
// to allow save and edit files with code tag hacks
'
code
'
:
1
,
'
pre
'
:
1
}
},
locale
:
'
en
'
};
if
(
typeof
$
.
fn
.
wysihtml5
.
defaultOptionsCache
===
'
undefined
'
)
{
$
.
fn
.
wysihtml5
.
defaultOptionsCache
=
$
.
extend
(
true
,
{},
$
.
fn
.
wysihtml5
.
defaultOptions
);
}
var
locale
=
$
.
fn
.
wysihtml5
.
locale
=
{};
})(
window
.
jQuery
,
window
.
wysihtml5
);
plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css
浏览文件 @
c2730bf4
/*! bootstrap3-wysihtml5-bower 201
3-11-22
*/
/*! bootstrap3-wysihtml5-bower 201
4-09-26
*/
ul
.wysihtml5-toolbar
{
margin
:
0
;
padding
:
0
;
display
:
block
}
ul
.wysihtml5-toolbar
::after
{
clear
:
both
;
display
:
table
;
content
:
""
}
ul
.wysihtml5-toolbar
>
li
{
float
:
left
;
display
:
list-item
;
list-style
:
none
;
margin
:
0
5px
10px
0
}
ul
.wysihtml5-toolbar
a
[
data-wysihtml5-command
=
bold
]
{
font-weight
:
700
}
ul
.wysihtml5-toolbar
a
[
data-wysihtml5-command
=
italic
]
{
font-style
:
italic
}
ul
.wysihtml5-toolbar
a
[
data-wysihtml5-command
=
underline
]
{
text-decoration
:
underline
}
ul
.wysihtml5-toolbar
a
.btn.wysihtml5-command-active
{
background-image
:
none
;
-webkit-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
.05
);
-moz-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
.05
);
box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
.05
);
background-color
:
#E6E6E6
;
background-color
:
#D9D9D9
;
outline
:
0
}
ul
.wysihtml5-commands-disabled
.dropdown-menu
{
display
:
none
!important
}
ul
.wysihtml5-toolbar
div
.wysihtml5-colors
{
display
:
block
;
width
:
50px
;
height
:
20px
;
margin-top
:
2px
;
margin-left
:
5px
;
position
:
absolute
;
pointer-events
:
none
}
ul
.wysihtml5-toolbar
a
.wysihtml5-colors-title
{
padding-left
:
70px
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
black
]
{
background
:
#000
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
silver
]
{
background
:
silver
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
gray
]
{
background
:
gray
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
maroon
]
{
background
:
maroon
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
red
]
{
background
:
red
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
purple
]
{
background
:
purple
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
green
]
{
background
:
green
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
olive
]
{
background
:
olive
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
navy
]
{
background
:
navy
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
blue
]
{
background
:
#00f
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
orange
]
{
background
:
orange
!important
}
\ No newline at end of file
ul
.wysihtml5-toolbar
{
margin
:
0
;
padding
:
0
;
display
:
block
}
ul
.wysihtml5-toolbar
::after
{
clear
:
both
;
display
:
table
;
content
:
""
}
ul
.wysihtml5-toolbar
>
li
{
float
:
left
;
display
:
list-item
;
list-style
:
none
;
margin
:
0
5px
10px
0
}
ul
.wysihtml5-toolbar
a
[
data-wysihtml5-command
=
bold
]
{
font-weight
:
700
}
ul
.wysihtml5-toolbar
a
[
data-wysihtml5-command
=
italic
]
{
font-style
:
italic
}
ul
.wysihtml5-toolbar
a
[
data-wysihtml5-command
=
underline
]
{
text-decoration
:
underline
}
ul
.wysihtml5-toolbar
a
.btn.wysihtml5-command-active
{
background-image
:
none
;
-webkit-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
.05
);
-moz-box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
.05
);
box-shadow
:
inset
0
2px
4px
rgba
(
0
,
0
,
0
,
.15
),
0
1px
2px
rgba
(
0
,
0
,
0
,
.05
);
background-color
:
#D9D9D9
;
outline
:
0
}
ul
.wysihtml5-commands-disabled
.dropdown-menu
{
display
:
none
!important
}
ul
.wysihtml5-toolbar
div
.wysihtml5-colors
{
display
:
block
;
width
:
50px
;
height
:
20px
;
margin-top
:
2px
;
margin-left
:
5px
;
position
:
absolute
;
pointer-events
:
none
}
ul
.wysihtml5-toolbar
a
.wysihtml5-colors-title
{
padding-left
:
70px
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
black
]
{
background
:
#000
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
silver
]
{
background
:
silver
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
gray
]
{
background
:
gray
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
maroon
]
{
background
:
maroon
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
red
]
{
background
:
red
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
purple
]
{
background
:
purple
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
green
]
{
background
:
green
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
olive
]
{
background
:
olive
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
navy
]
{
background
:
navy
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
blue
]
{
background
:
#00f
!important
}
ul
.wysihtml5-toolbar
div
[
data-wysihtml5-command-value
=
orange
]
{
background
:
orange
!important
}
.glyphicon-quote
:before
{
content
:
"\201C"
;
font-family
:
Georgia
,
serif
;
font-size
:
50px
;
position
:
absolute
;
top
:
-4px
;
left
:
-3px
;
max-height
:
100%
}
.glyphicon-quote
:after
{
content
:
"\0000a0"
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录