Quantcast
Channel: Hyperblue's Blog » Typo3
Viewing all articles
Browse latest Browse all 10

Typo3配置简洁RTE编辑器TS片段

$
0
0

在Typo3中有时候需要配置简洁的RTE编辑器供相应权限的客户或会员使用.

TS片段:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
RTE.default {
 
    # Buttons die gezeigt/versteckt werden
    showButtons = chMode, bold, unorderedlist, link, insertcharacter
    disableContextMenu = 1
    hideButtons = fontstyle, formatblock, fontsize, strikethrough,lefttoright, righttoleft, textcolor, bgcolor, textindicator, emoticon, user, spellcheck, inserttag, outdent, indent, justifyfull, subscript, superscript, acronym, copy, cut, paste, textstyle, textstylelabel, blockstyle, blockstylelabel,  italic, underline, left, center, right, orderedlist, line, image, removeformat, table, toggleborders, tableproperties, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge, findreplace, undo, redo, showhelp, about
 
}
 
RTE.default.proc.overruleMode = ts_transform
RTE.default.proc.typolist = 0
 
#only character +  bold + link
RTE.config.tx_davtravel_catalogue.apartment.hideButtons = unorderedlist
 
#only character +  bold + unorderedlist
#RTE.config.tx_davtravel_catalogue.highlights.hideButtons = link
 
#RTE.config.tx_davtravel_catalogue.additional_info_catalogue.hideButtons  = link
#RTE.config.tx_davtravel_catalogue.additional_info_online.hideButtons  = link
 
#only character +  bold
#RTE.config.tx_davtravel_catalogue.hint.hideButtons = unorderedlist,link
#RTE.config.tx_davtravel_catalogue.rucksack.hideButtons  = unorderedlist,link
#RTE.config.tx_davtravel_catalogue.train_ride.hideButtons  = unorderedlist,link

将以上TS片段贴进需要应用的page属性Tab选项options的TSconfig中即可.
showButtons,hideButtons分别是显示/隐藏按钮.可以根据个人需求改动来增加删除功能按钮.

如图:

原始RTE效果:

简洁RTE效果:


Viewing all articles
Browse latest Browse all 10

Trending Articles