Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add z-index css to wysiwyg editor contents for IE11 #1745

Merged
merged 2 commits into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion apps/editor/src/css/contents.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
z-index basis
-1: pseudo element
20 - preview, wysiwyg
30 - wysiwyg code block language editor, tooltip, popup, context menu
*/
.ProseMirror {
font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', '나눔바른고딕',
'Nanum Barun Gothic', '맑은고딕', 'Malgun Gothic', sans-serif;
Expand Down Expand Up @@ -36,6 +42,7 @@ table.ProseMirror-selectednode {
font-size: 13px;
font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', 'Arial', '나눔바른고딕',
'Nanum Barun Gothic', '맑은고딕', 'Malgun Gothic', sans-serif;
z-index: 20;
}

.toastui-editor-contents *:not(table) {
Expand Down Expand Up @@ -424,7 +431,7 @@ table.ProseMirror-selectednode {
border: 1px solid #ccc;
border-radius: 2px;
background-color: #fff;
z-index: 100;
z-index: 30;
}

.toastui-editor-ww-code-block-language input {
Expand Down
13 changes: 6 additions & 7 deletions apps/editor/src/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
.toastui-editor-ww-container {
display: none;
overflow: hidden;
z-index: 10;
height: inherit;
background-color: #fff;
}
Expand All @@ -144,7 +143,7 @@
.toastui-editor-md-mode .toastui-editor-md-container,
.toastui-editor-ww-mode .toastui-editor-ww-container {
display: block;
z-index: 100;
z-index: 20;
}

.toastui-editor-md-mode .toastui-editor-md-vertical-style {
Expand Down Expand Up @@ -398,7 +397,7 @@
.toastui-editor-dropdown-toolbar {
position: absolute;
height: 46px;
z-index: 101;
z-index: 30;
border-radius: 2px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
border: 1px solid #dadde6;
Expand All @@ -418,7 +417,7 @@
width: 400px;
margin-right: auto;
background: #fff;
z-index: 9999;
z-index: 30;
position: absolute;
border-radius: 2px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
Expand Down Expand Up @@ -578,7 +577,7 @@
left: 0;
border: 1px solid #00a9ff;
background: rgba(0, 169, 255, 0.1);
z-index: 999;
z-index: 30;
}

.toastui-editor-popup-add-table .toastui-editor-table-description {
Expand Down Expand Up @@ -654,7 +653,7 @@
border-radius: 2px;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
border: 1px solid #dadde6;
z-index: 100;
z-index: 30;
padding: 5px 0;
background-color: #fff;
}
Expand Down Expand Up @@ -748,7 +747,7 @@
.toastui-editor-tooltip {
position: absolute;
background-color: #444;
z-index: 999;
z-index: 30;
padding: 4px 7px;
font-size: 12px;
border-radius: 3px;
Expand Down
2 changes: 1 addition & 1 deletion plugins/code-syntax-highlight/src/css/plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pre[class*="language-"] {
position: fixed;
display: inline-block;
right: 35px;
z-index: 100;
z-index: 30;
}

.toastui-editor-code-block-language-input {
Expand Down