-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
1 parent
4f699f2
commit a2c88fd
Showing
14 changed files
with
535 additions
and
230 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<div class="sticky-header"> | ||
Sticky header. Table balloon toolbar should not overlap with this header at any point when scrolling down. | ||
</div> | ||
<div class="sticky-footer"> | ||
Sticky footer. | ||
</div> | ||
|
||
<h1>Other webpage content</h1> | ||
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Officia itaque eum necessitatibus possimus adipisci mollitia dolor quia molestias voluptate dignissimos? Optio architecto dicta dolorum laborum nam nulla minus aspernatur iste.</p> | ||
<div id="editor"> | ||
<h2>Short table</h2> | ||
<table> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
</table> | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
<h2>Very long table</h2> | ||
<table> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
<tr><td></td><td></td></tr> | ||
</table> | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
<h2>Short image</h2> | ||
<figure class="image"> | ||
<img src="./sample.jpg" alt="Autumn fields" /> | ||
</figure> | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
<h2>Very tall image table</h2> | ||
<figure class="image"> | ||
<img src="./sample-very-tall.jpg" alt="Very tall image" /> | ||
</figure> | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
</div> | ||
|
||
<style> | ||
.manual-test-container { | ||
padding-top: 100px; | ||
} | ||
|
||
#editor { | ||
margin: 0 auto; | ||
max-width: 800px; | ||
} | ||
|
||
.ck-block-toolbar-button { | ||
transform: translateX( -10px ); | ||
} | ||
|
||
.sticky-header, | ||
.sticky-footer { | ||
display: flex; | ||
display: none; | ||
opacity: .9; | ||
position: fixed; | ||
left: 48px; | ||
right: 48px; | ||
align-items: center; | ||
height: 100px; | ||
padding-left: 10px; | ||
background-color: hsl(0, 0%, 90%); | ||
z-index: 999; | ||
} | ||
|
||
.sticky-header { | ||
top: 0; | ||
} | ||
|
||
.sticky-footer { | ||
bottom: 0; | ||
} | ||
</style> |
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,37 @@ | ||
/** | ||
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
|
||
/* globals window, document, console:false */ | ||
|
||
import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'; | ||
import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset'; | ||
import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties'; | ||
import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties'; | ||
|
||
ClassicEditor | ||
.create( document.querySelector( '#editor' ), { | ||
image: { toolbar: [ 'toggleImageCaption', 'imageTextAlternative' ] }, | ||
plugins: [ ArticlePluginSet, TableProperties, TableCellProperties ], | ||
toolbar: { | ||
items: [ 'heading', '|', 'insertTable', '|', 'bold', 'italic', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ], | ||
viewportTopOffset: 100 | ||
}, | ||
table: { | ||
contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells', '|', 'tableProperties', 'tableCellProperties' ], | ||
tableToolbar: [ 'bold', 'italic' ] | ||
}, | ||
ui: { | ||
viewportOffset: { | ||
top: 100, | ||
bottom: 100 | ||
} | ||
} | ||
} ) | ||
.then( editor => { | ||
window.editor = editor; | ||
} ) | ||
.catch( err => { | ||
console.error( err.stack ); | ||
} ); |
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,5 @@ | ||
## Table toolbar does not respect viewportTopOffset configuration [#9892](https://github.com/ckeditor/ckeditor5/issues/9892) | ||
|
||
- select the long table | ||
- scroll down when balloon toolbar visible | ||
- toolbar shouldn't go above the main toolbar and overlap with sticky header |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.