Skip to content

Commit

Permalink
Allow table in RTE
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Jul 14, 2014
1 parent ed55a6f commit a164e5a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 1 addition & 4 deletions Configuration/ContentElements/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,7 @@ lib.dynamicContentSlide.20.slide = -1
lib.parseFunc_RTE {
externalBlocks {
blockquote.callRecursive.tagStdWrap.HTMLparser.tags.blockquote.overrideAttribs >
table.stdWrap.HTMLparser.tags.table.fixAttrib.class {
default = table
list = table
}
table.stdWrap.HTMLparser.tags.table.fixAttrib >
}
nonTypoTagStdWrap.encapsLines {
addAttributes.P.class >
Expand Down
7 changes: 4 additions & 3 deletions Configuration/PageTS/tsconfig.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ RTE {
showButtons = *

// Toolbar order
toolbarOrder = formatblock, blockstyle, textstyle, linebreak, bold, italic, underline, strikethrough, bar, orderedlist, unorderedlist, bar, left, center, right, copy, cut, paste, bar, undo, redo, removeformat, bar, link, unlink, linkcreator, bar, imageeditor, bar, line, insertparagraphbefore, insertparagraphafter, bar, chMode
toolbarOrder = formatblock, blockstyle, textstyle, linebreak, bold, italic, underline, strikethrough, bar, orderedlist, unorderedlist, bar, left, center, right, copy, cut, paste, bar, undo, redo, removeformat, bar, link, unlink, linkcreator, bar, imageeditor, bar, line, insertparagraphbefore, insertparagraphafter, bar, chMode, linebreak, table, tableproperties, tablerestyle, bar, rowproperties, rowinsertabove, rowinsertunder, rowdelete, rowsplit, bar, columnproperties, columninsertbefore, columninsertafter, columndelete, columnsplit, bar, cellproperties, cellinsertbefore, cellinsertafter, celldelete, cellsplit, cellmerge

RTEHeightOverride = 700
RTEWidthOverride = 700
Expand Down Expand Up @@ -182,10 +182,10 @@ RTE {
overruleMode = ts_css
dontConvBRtoParagraph = 1
remapParagraphTag = p
allowTags = a, abbr, acronym, address, blockquote, b, br, caption, cite, code, div, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield, span, strike, strong, sub, sup, u, ul
allowTags = a, abbr, acronym, address, blockquote, b, br, caption, cite, code, div, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, link, ol, p, pre, q, sdfield, span, strike, strong, sub, sup, u, ul, table,thead,tfoot,tbody,tr,th,td
denyTags >
keepPDIVattribs = xml:lang,class,style,align
allowTagsOutside = img,hr,h1,h2,h3,h4,h5,h6,br,ul,ol,li,pre,address,span,blockquote
allowTagsOutside = img,hr,h1,h2,h3,h4,h5,h6,br,ul,ol,li,pre,address,span,blockquote,table
allowTagsInTypolists = br,font,b,i,u,a,img,span
dontRemoveUnknownTags_db = 1
preserveTables = 0
Expand All @@ -198,6 +198,7 @@ RTE {
tags.img >
tags.div.allowedAttribs = class,style,align
tags.p.allowedAttribs = class,style,align
tags.table.allowedAttribs = class,style
removeTags = center, font, o:p, sdfield, strike, u
keepNonMatchedTags = protect
}
Expand Down
7 changes: 6 additions & 1 deletion Resources/Public/Css/rte.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ a.btn-default {}
a.btn-primary {}
a.btn-success {}
a.btn-warning {}
a.btn-block {}
a.btn-block {}

table.table {}
table.table-bordered {}
table.table-striped {}
table.table-hover {}

0 comments on commit a164e5a

Please sign in to comment.