Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
CPPCCMagazine
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
吴也
CPPCCMagazine
Commits
783a938e
提交
783a938e
authored
10月 22, 2019
作者:
Soup
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
产品提出的优化
上级
2c8f84cd
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
72 行增加
和
3 行删除
+72
-3
favicon.ico
favicon.ico
+0
-0
ciic_logo.png
src/assets/img/ciic_logo.png
+0
-0
plugins.js
src/components/Tinymce/plugins.js
+2
-2
toolbar.js
src/components/Tinymce/toolbar.js
+1
-1
index.js
static/tinymce4.7.5/plugins/lineheight/index.js
+8
-0
de.js
static/tinymce4.7.5/plugins/lineheight/langs/de.js
+4
-0
plugin.js
static/tinymce4.7.5/plugins/lineheight/plugin.js
+55
-0
plugin.min.js
static/tinymce4.7.5/plugins/lineheight/plugin.min.js
+2
-0
没有找到文件。
favicon.ico
查看替换文件 @
2c8f84cd
浏览文件 @
783a938e
24.4 KB
|
W:
|
H:
1.7 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/img/ciic_logo.png
查看替换文件 @
2c8f84cd
浏览文件 @
783a938e
1.5 KB
|
W:
|
H:
3.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/components/Tinymce/plugins.js
浏览文件 @
783a938e
// Any plugins you want to use has to be imported
// Detail plugins list see https://www.tinymce.com/docs/plugins/
// Custom builds see https://www.tinymce.com/download/custom-builds/
const
plugins
=
[
'advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime legacyoutput link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount'
]
//require('./plugin.js');
const
plugins
=
[
'advlist anchor autolink autosave code codesample colorpicker colorpicker contextmenu directionality emoticons fullscreen hr image imagetools importcss insertdatetime legacyoutput link lists media nonbreaking noneditable pagebreak paste preview print save searchreplace spellchecker tabfocus table template textcolor textpattern visualblocks visualchars wordcount
lineheight
'
]
export
default
plugins
src/components/Tinymce/toolbar.js
浏览文件 @
783a938e
// Here is a list of the toolbar
// Detail list see https://www.tinymce.com/docs/advanced/editor-control-identifiers/#toolbarcontrols
const
toolbar
=
[
'bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample'
,
'hr bullist numlist link image charmap preview anchor pagebreak fullscreen insertdatetime media table emoticons forecolor backcolor'
]
const
toolbar
=
[
'bold italic underline strikethrough alignleft aligncenter alignright outdent indent blockquote undo redo removeformat subscript superscript code codesample'
,
'hr bullist numlist link image charmap preview anchor pagebreak fullscreen insertdatetime media table emoticons forecolor backcolor'
,
'fontsizeselect lineheightselect'
]
export
default
toolbar
static/tinymce4.7.5/plugins/lineheight/index.js
0 → 100644
浏览文件 @
783a938e
// Exports the "lineheight" plugin for usage with module loaders
// Usage:
// CommonJS:
// require('tinymce/plugins/lineheight')
// ES2015:
// import 'tinymce/plugins/lineheight'
require
(
'./plugin.js'
);
\ No newline at end of file
static/tinymce4.7.5/plugins/lineheight/langs/de.js
0 → 100644
浏览文件 @
783a938e
tinymce
.
addI18n
(
'de'
,
{
"Line Height"
:
"Zeilen Höhe"
});
\ No newline at end of file
static/tinymce4.7.5/plugins/lineheight/plugin.js
0 → 100644
浏览文件 @
783a938e
!
(
function
()
{
'use strict'
;
/* eslint-disable no-undef */
const
global
=
tinymce
.
util
.
Tools
.
resolve
(
'tinymce.PluginManager'
);
global
.
add
(
'lineheight'
,
function
(
editor
)
{
editor
.
on
(
'init'
,
function
()
{
editor
.
formatter
.
register
({
lineheight
:
{
selector
:
'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table'
,
styles
:
{
'line-height'
:
'%value'
}
}
});
editor
.
ui
.
registry
.
addIcon
(
'line-height'
,
`
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M9.984 12.984v-1.969h12v1.969h-12zM9.984 18.984v-1.969h12v1.969h-12zM9.984 5.016h12v1.969h-12v-1.969zM6 6.984v10.031h2.484l-3.469 3.469-3.516-3.469h2.484v-10.031h-2.484l3.516-3.469 3.469 3.469h-2.484z"></path>
</svg>
`
);
});
editor
.
ui
.
registry
.
addMenuButton
(
'lineheightselect'
,
{
tooltip
:
'Line height'
,
icon
:
'line-height'
,
fetch
:
function
(
callback
)
{
const
defaultLineHeightFormats
=
'1 1.5 1.75 2 3 4 5'
;
const
userSettings
=
editor
.
settings
.
lineheight_formats
;
const
lineheightFormats
=
typeof
userSettings
===
'string'
?
userSettings
:
defaultLineHeightFormats
;
const
items
=
lineheightFormats
.
split
(
' '
).
map
(
item
=>
{
let
text
=
item
,
value
=
item
;
const
values
=
item
.
split
(
'='
);
if
(
values
.
length
>
1
)
{
[
text
,
value
]
=
values
;
}
return
{
type
:
'menuitem'
,
text
:
text
,
onAction
:
function
()
{
editor
.
formatter
.
apply
(
'lineheight'
,
{
value
:
value
});
editor
.
fire
(
'change'
,
{});
}
};
});
callback
(
items
);
}
});
});
})();
static/tinymce4.7.5/plugins/lineheight/plugin.min.js
0 → 100644
浏览文件 @
783a938e
(
function
(
e
){
e
.
PluginManager
.
add
(
"lineheight"
,
function
(
t
,
n
,
r
){
t
.
on
(
"init"
,
function
(){
t
.
formatter
.
register
({
lineheight
:{
inline
:
"span"
,
styles
:{
"line-height"
:
"%value"
}}})});
t
.
addButton
(
"lineheightselect"
,
function
(){
var
n
=
[],
r
=
"8pt 10pt 12pt 14pt 18pt 24pt 36pt"
;
var
i
=
t
.
settings
.
lineheight_formats
||
r
;
i
.
split
(
" "
).
forEach
(
function
(
e
){
var
t
=
e
,
r
=
e
;
var
i
=
e
.
split
(
"="
);
if
(
i
.
length
>
1
){
t
=
i
[
0
];
r
=
i
[
1
]}
n
.
push
({
text
:
t
,
value
:
r
})});
return
{
type
:
"listbox"
,
text
:
"行高"
,
tooltip
:
"行高"
,
values
:
n
,
fixedWidth
:
true
,
onPostRender
:
function
(){
var
e
=
this
;
t
.
on
(
"nodeChange"
,
function
(
r
){
var
i
=
"lineheight"
;
var
s
=
t
.
formatter
;
var
o
=
null
;
r
.
parents
.
forEach
(
function
(
e
){
n
.
forEach
(
function
(
t
){
if
(
i
){
if
(
s
.
matchNode
(
e
,
i
,{
value
:
t
.
value
})){
o
=
t
.
value
}}
else
{
if
(
s
.
matchNode
(
e
,
t
.
value
)){
o
=
t
.
value
}}
if
(
o
){
return
false
}});
if
(
o
){
return
false
}});
e
.
value
(
o
)})},
onselect
:
function
(
t
){
e
.
activeEditor
.
formatter
.
apply
(
"lineheight"
,{
value
:
this
.
value
()})}}})});
e
.
PluginManager
.
requireLangPack
(
"lineheight"
,
"de"
)})(
tinymce
)
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论