Feature #30465
Better button and rendering defaults for RTE
| Status: | Accepted | Start date: | 2011-09-30 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Ralf-Rene Schroeder | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
| Votes: | 0 |
Description
It would be nice to have some sensible default settings for the RTE:
1. Use modular showButtons/hideButtons statements to easily enable/disable functional blocks, e.g.:
# enable buttons # structural markup and CSS style selection, special characters showButtons = blockstyle, textstyle, formatblock, insertparagraphbefore, insertparagraphafter, orderedlist, unorderedlist, definitionlist, definitionitem, insertcharacter, line hideButtons > # inline showButtons := addToList(link, unlink, image, acronym, citation, definition, emphasis, quotation, strong, subscript, superscript) # alignment showButtons := addToList(left, center, right, justifyfull, outdent, indent) # text editing showButtons := addToList(copy, cut, paste, undo, redo, findreplace, chMode, removeformat) # table showButtons := addToList(table, toggleborders, tablerestyle, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, columnproperties, columninsertbefore, columninsertafter, columndelete, columnsplit, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge) # font and background color # showButtons := addToList(textcolor, bgcolor, textindicator) # language # showButtons := addToList(language, showlanguagemarks)
2. Enable some table dialogs
# Tables: enable settings dialogs # enable alignment disableAlignmentFieldsetInTableOperations = 0 # enable width/height disableLayoutFieldsetInTableOperations = 0 # enable borders disableBordersFieldsetInTableOperations = 0
3. Use logical markup instead of visual by removing b and i buttons and automatically remapping all b and i tags to strong and em.
4. Use extended parsing for enableWordClean
5. Enable usage of definition lists (currently, they are still removed upon output)
# allow definition lists lib.parseFunc_RTE.allowTags := addToList(dl,dt,dd) # prevent enclosing in paragraphs # tags that must not be wrapped lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.encapsTagList := addToList(dl, dt, dd)
6. Do not wrap all table content in paragraphs
# avoid unwanted p-elements in th/td on the way to FE lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default > lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc =< lib.parseFunc
History
Updated by Ralf-Rene Schroeder over 1 year ago
- Status changed from New to Accepted
- Assignee set to Ralf-Rene Schroeder
maybe it would be implementet in the next 1.x version