Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from cksource/t/16971
Improve background color detection in tabletools plugin.
- Loading branch information
Showing
6 changed files
with
68 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/plugins/tabletools/manual/transformations/mixedBackground.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<div id="editor"> | ||
<p></p> | ||
</div> | ||
|
||
<script> | ||
CKEDITOR.replace( 'editor' ); | ||
</script> |
22 changes: 22 additions & 0 deletions
22
tests/plugins/tabletools/manual/transformations/mixedBackground.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@bender-tags: 4.7.0, tc, 16971 | ||
@bender-ui: collapsed | ||
@bender-ckeditor-plugins: wysiwygarea, toolbar, tabletools, sourcearea | ||
|
||
1. Open source area using "Source" button. | ||
1. Insert following HTML: | ||
```html | ||
<table border="1" style="width:300px"> | ||
<tbody> | ||
<tr> | ||
<td style="background:#00cc99 no-repeat center"> </td> | ||
<td> </td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
``` | ||
1. Go back to wysiwyg mode, by clicking "Source" button again. | ||
**Expected:** Background in the first cell is different than the other. | ||
1. Right click the first cell, and use "Cell / Cell Properties". | ||
**Expected:** "Background Color" property is set. | ||
|
||
Note there's an issue that the value in the dialog is displayed in `rgb()` format, it's an unrelated issue. You can verify the transformation by checking source once again. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters