Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
144 additions
and
19 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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
There's only sense testing rules with specificity 11 | ||
because CKEditor's reset is not able to override higher ones. | ||
It also only makes sense to test some reasonable selectors. | ||
It is of course possible to do: | ||
.styled * { float: left } | ||
but it's unrealistic and it would be a developer's fault. | ||
Realistic, imprecise styles are based on specific tag names like `a` or `table`. | ||
*/ | ||
|
||
* { | ||
box-sizing: border-box; | ||
font-family: Courier; | ||
font-size: 20px; | ||
} | ||
|
||
input, textarea, a, label { | ||
border: solid 5px blue; | ||
padding: 5px; | ||
text-decoration: underline; | ||
} | ||
|
||
table { | ||
table-layout: fixed; | ||
width: 800px; | ||
float: right; | ||
border: solid 2px blue; | ||
} | ||
|
||
p, h1 { | ||
color: red; | ||
} | ||
|
||
iframe { | ||
width: 500px; | ||
border: solid 2px green; | ||
} | ||
|
||
/* Links are pretty often styled with similar styles | ||
and are used by us in many places in the UI. */ | ||
.styled a { | ||
text-decoration: underline; | ||
border: solid 2px green; | ||
color: red; | ||
font-size: 15px; | ||
background: blue; | ||
padding: 5px; | ||
} | ||
|
||
.styled textarea { | ||
margin: 20px; | ||
padding: 10px; | ||
border: solid 5px red; | ||
width: 200px; | ||
background: red; | ||
} |
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,18 @@ | ||
<head> | ||
<link rel="stylesheet" href="_assets/styles.css"> | ||
</head> | ||
|
||
<body class="styled"> | ||
<div id="editor"> | ||
<p>Foo</p> | ||
<p>Foo</p> | ||
<p>Foo</p> | ||
<p>Foo</p> | ||
</div> | ||
|
||
<script> | ||
CKEDITOR.replace( 'editor', { | ||
toolbarCanCollapse: true | ||
} ); | ||
</script> | ||
</body> |
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,10 @@ | ||
@bender-tags: 4.5.0, tc | ||
@bender-ckeditor-plugins: wysiwygarea, sourcearea, toolbar, basicstyles, colorbutton, image, font,about, language, elementspath, resize, justify, undo | ||
@bender-ui: collapsed | ||
|
||
Test whether skin of the editor was not affected by page's styling. Check: | ||
|
||
* Links in the elements path. | ||
* All dialogs. | ||
* Sourcearea. | ||
* Button states. |
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,19 @@ | ||
<head> | ||
<link rel="stylesheet" href="_assets/styles.css"> | ||
</head> | ||
|
||
<body class="styled"> | ||
<div id="editor"> | ||
<p>Foo</p> | ||
<p>Foo</p> | ||
<p>Foo</p> | ||
<p>Foo</p> | ||
</div> | ||
|
||
<script> | ||
CKEDITOR.replace( 'editor', { | ||
skin: 'kama', | ||
toolbarCanCollapse: true | ||
} ); | ||
</script> | ||
</body> |
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,10 @@ | ||
@bender-tags: 4.5.0, tc | ||
@bender-ckeditor-plugins: wysiwygarea, sourcearea, toolbar, basicstyles, colorbutton, image, font, about, language, elementspath, resize, justify, undo | ||
@bender-ui: collapsed | ||
|
||
Test whether skin of the editor was not affected by page's styling. Check: | ||
|
||
* Links in the elements path. | ||
* All dialogs. | ||
* Sourcearea. | ||
* Button states. |