#spButtonPrimary { margin-top: 10px; }
/* ### editor ### */
-#spEditorContent { border: 1px solid rgb(224, 224, 224); border-top-width: 0; height: 100px; }
+#spEditorContent { border: 1px solid rgb(224, 224, 224); border-top-width: 0; min-height: 100px; padding: 10px; }
+#spEditorTable { border-collapse: collapse; border-spacing: 0; margin: 10px 0; min-width: 60%; }
+#spEditorTable td { border: 1px solid rgb(221, 221, 221); padding: 10px; }
/* ### dropdown ### */
#spDropdown { display: inline-block; float: none; position: relative; visibility: visible; z-index: 10; }
<li><a><span class="icon icon16 fa-strikethrough"></span></a></li>
</ul>
</div>
- <div id="spEditorContent"></div>
+ <div id="spEditorContent">
+ <table id="spEditorTable" data-region="wcfEditorTable">
+ <tr>
+ <td>Lorem</td>
+ <td> </td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td>Ipsum</td>
+ <td> </td>
+ <td> </td>
+ </tr>
+ </table>
+ </div>
</div>
<div class="spHeadline">Dropdown</div>
<p>{lang}wcf.acp.style.colors.description{/lang}</p>
<p><br></p>
<p><sup class="spApiVersion">3.1</sup> <small>{lang version='3.1'}wcf.acp.style.colors.description.apiVersion{/lang}</small></p>
+ <p><sup class="spApiVersion">5.2</sup> <small>{lang version='5.2'}wcf.acp.style.colors.description.apiVersion{/lang}</small></p>
</div>
{foreach from=$colors key=spCategory item=spColors}
'wcfEditorButtonText': '#spEditor .redactor-toolbar a { color: VALUE; }',
'wcfEditorButtonTextActive': '#spEditor .redactor-toolbar a:hover, #spEditor .redactor-toolbar a.dropact { color: VALUE; }',
'wcfEditorButtonTextDisabled': '#spEditor .redactor-toolbar a.redactor-button-disabled { color: VALUE; }',
+ 'wcfEditorTableBorder': '#spEditorTable td { border-color: VALUE; }',
'wcfDropdownBackground': '#spDropdown { background-color: VALUE; } __COMBO_RULE__ #spDropdown::before { border-bottom-color: VALUE; }',
'wcfDropdownBorderInner': '#spDropdown .dropdownDivider { border-color: VALUE; }',
'wcfDropdownText': '#spDropdown li { color: VALUE; }',
'wcfEditorButtonBackgroundActive' => '3.1',
'wcfEditorButtonText' => '3.1',
'wcfEditorButtonTextActive' => '3.1',
- 'wcfEditorButtonTextDisabled' => '3.1'
+ 'wcfEditorButtonTextDisabled' => '3.1',
+
+ // 5.2
+ 'wcfEditorTableBorder' => '5.2',
];
/**
'wcfTabularBox' => 'wcfTabularBox',
'wcfInput' => ['wcfInput', 'wcfInputDisabled'],
'wcfButton' => ['wcfButton', 'wcfButtonPrimary', 'wcfButtonDisabled'],
- 'wcfEditor' =>'wcfEditorButton',
+ 'wcfEditor' => ['wcfEditorButton', 'wcfEditorTable'],
'wcfDropdown' => 'wcfDropdown',
'wcfStatus' => ['wcfStatusInfo', 'wcfStatusSuccess', 'wcfStatusWarning', 'wcfStatusError'],
'wcfFooterBox' => ['wcfFooterBox', 'wcfFooterBoxHeadline'],
'wcfButtonPrimary' => ['background', 'text', 'backgroundActive', 'textActive'],
'wcfButtonDisabled' => ['background', 'text'],
'wcfEditorButton' => ['background', 'backgroundActive', 'text', 'textActive', 'textDisabled'],
+ 'wcfEditorTable' => ['border'],
'wcfDropdown' => ['background', 'borderInner', 'text', 'link', 'backgroundActive', 'linkActive'],
'wcfStatusInfo' => ['background', 'border', 'text', 'link', 'linkActive'],
'wcfStatusSuccess' => ['background', 'border', 'text', 'link', 'linkActive'],
* list of supported API versions
* @var string[]
*/
- public static $supportedApiVersions = ['3.0', '3.1'];
+ public static $supportedApiVersions = ['3.0', '3.1', '5.2'];
- const API_VERSION = '3.1';
+ const API_VERSION = '5.2';
const PREVIEW_IMAGE_MAX_HEIGHT = 64;
const PREVIEW_IMAGE_MAX_WIDTH = 102;
--- /dev/null
+/*
+ * Special styles for changes introduced in WoltLab Suite 5.2 that
+ * are not compatible with styles created for earlier versions.
+ */
+@include requireApiVersion(52) {
+ .htmlContent table,
+ .table {
+ tr:hover > td {
+ background-color: $wcfTabularBoxBackgroundActive;
+ }
+ }
+
+ .redactor-layer table {
+ th,
+ td {
+ border-color: $wcfEditorTableBorder;
+ }
+ }
+}
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonText', 'rgba(255, 255, 255, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonTextActive', 'rgba(255, 255, 255, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorButtonTextDisabled', 'rgba(165, 165, 165, 1)');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfEditorTableBorder', 'rgba(221, 221, 221, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfFontFamilyFallback', '"Segoe UI", "DejaVu Sans", "Lucida Grande", "Helvetica", sans-serif');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfFontFamilyGoogle', 'Open Sans');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfFontLineHeight', '1.48');