【问题标题】:TYPO3 6.2 RTE can't add buttonsTYPO3 6.2 RTE 无法添加按钮
【发布时间】:2014-09-07 00:16:12
【问题描述】:

我全新安装了 TYPO3 6.2,在用户设置中启用了 RTE,并在扩展管理器中启用了 RTE 图像。

我试图通过 RTE 添加图像,但我坚持将所有按钮添加到默认配置。

我在用户/页面 TSConfig 中尝试了以下配置,但没有任何运气。

这是我在 RTE 窗口中看到的,没有任何变化:

我想启用所有这样的编辑选项:

用户/页面 TSConfig:

    ## Default RTE options
RTE.default {
        ## Disable RTE
    disable = 0

    addButtons = *

        ## Disable Typo3 specific browsers
    disableTYPO3Browsers = 0

        ## Default target for links
    defaultLinkTarget >

        ## Disable contextual menu
    disableContextMenu = 0
    disableRightClick = 0

        ## Display status bar
    showStatusBar = 1

        ## Disable color picker
    disableColorPicker = 0

        ## Disable color selector
    disableSelectColor = 0

        ## Specifies that Mozilla/Firefox should use style attributes or not. When enabled, Mozilla/Firefox use span tags with style attributes rather than tags such as b, i, font, etc.
    useCSS = 0

        ## Disable enter key for new paragraphs creation
    disableEnterParagraphs = 0

        ## Remove trailing BR if any
    removeTrailingBR = 1
}

    ## Frontend RTE configuration
RTE.default.FE < RTE.default

    ## Full screen for bodytext (tt_content)
TCEFORM.tt_content.bodytext.RTEfullScreenWidth= 100%

【问题讨论】:

    标签: html button typo3 rte


    【解决方案1】:

    必须在扩展管理器中启用 RTE 中图像的使用。导航到扩展管理器,选择扩展“RTE”,单击配置按钮并选中“启用图像”框。

    【讨论】:

    【解决方案2】:

    在根页面的 TSConfig 中添加以下代码:

    RTE.default.toolbarOrder := addToList(image)
    

    【讨论】:

      【解决方案3】:

      在页面 TSconfig 中试试这个:

      RTE.default.showButtons = blockstylelabel, blockstyle, textstylelabel, textstyle
      RTE.default.showButtons := addToList(formatblock, bold, italic, subscript, superscript)
      RTE.default.showButtons := addToList(orderedlist, unorderedlist, outdent, indent)
      RTE.default.showButtons := addToList(insertcharacter, link,image, findreplace, chMode, removeformat, undo, redo)
      RTE.default.showButtons := addToList(toggleborders, tableproperties)
      RTE.default.showButtons := addToList(rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit)
      RTE.default.showButtons := addToList(columninsertbefore, columninsertafter, columndelete, columnsplit)
      RTE.default.showButtons := addToList(cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge)
      RTE.default.showButtons := addToList(left, center, right, justifyfull,table)
      

      对于需要启用的图像在 Extension Manager 中打开 htmlAREA RTE 的配置并启用 basic.enableImages。

      干杯!

      【讨论】:

        【解决方案4】:

        使用“showButtons”:

        RTE.default {
            showButtons (
                blockstylelabel, blockstyle, space, textstylelabel, textstyle,
                formattext, bold,  strong, italic, emphasis, big, small, insertedtext, deletedtext, citation, code, definition, keyboard, monospaced, quotation, sample, variable, bidioverride, subscript, superscript, span,
                fontstyle, space, fontsize, 
                formatblock, blockquote, insertparagraphbefore, insertparagraphafter, 
                left, center, right, justifyfull, 
                orderedlist, unorderedlist, definitionlist, definitionitem, outdent, indent, 
                textcolor, bgcolor, textindicator, 
                editelement, showmicrodata, emoticon, insertcharacter, line, link, unlink, image, user, acronym, 
                findreplace,
                chMode, inserttag, removeformat, 
                copy, cut, paste, pastetoggle, pastebehaviour, 
                undo, redo, 
                table, toggleborders, 
                tableproperties, tablerestyle, 
                rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, 
                columnproperties, columninsertbefore, columninsertafter, columndelete, columnsplit, 
                cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge
            )
        }
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-08-25
          • 1970-01-01
          • 1970-01-01
          • 2023-03-21
          相关资源
          最近更新 更多