+
@@ -47,10 +47,10 @@
{{ __('Instructor Notes') }}
@@ -148,6 +148,9 @@ const renderEditor = (holder) => {
holder: holder,
tools: getEditorTools(true),
defaultBlock: 'markdown',
+ i18n: {
+ direction: document.documentElement.dir === 'rtl' ? 'rtl' : 'ltr',
+ },
onChange: async (api, event) => {
enablePlyr()
},
@@ -533,8 +536,15 @@ usePageMeta(() => {
max-width: none;
}
+.ce-toolbar__actions,
.codex-editor--narrow .ce-toolbar__actions {
- right: 100%;
+ right: auto;
+ left: auto;
+ inset-inline-end: 100%;
+}
+
+.codex-editor--narrow .codex-editor__redactor {
+ margin-inline: 0;
}
.ce-toolbar__content {
@@ -570,8 +580,8 @@ usePageMeta(() => {
border-radius: 0 0 20px 2px;
padding: 2px 26px;
padding-top: 0;
- padding-right: 0;
- text-align: left;
+ padding-inline-end: 0;
+ text-align: start;
cursor: pointer;
border: none !important;
outline: none !important;
@@ -579,7 +589,7 @@ usePageMeta(() => {
.codeBoxSelectDropIcon {
position: absolute !important;
- left: 10px !important;
+ inset-inline-start: 10px !important;
bottom: 0 !important;
width: unset !important;
height: unset !important;
@@ -640,7 +650,7 @@ iframe {
}
.tc-table {
- border-left: 1px solid #e8e8eb;
+ border-inline-start: 1px solid #e8e8eb;
}
.ce-toolbox__button[data-tool='markdown'] {
@@ -677,14 +687,13 @@ iframe {
padding: 8px;
}
+.ce-popover,
.codex-editor--narrow .ce-toolbox .ce-popover,
.codex-editor--narrow .ce-toolbar__actions .ce-popover {
- right: unset;
- left: initial;
-}
-
-.ce-popover {
border-radius: 12px;
+ right: auto;
+ left: auto;
+ inset-inline-start: 0;
}
.cdx-search-field {
@@ -714,6 +723,11 @@ iframe {
height: 15px;
}
+.ce-popover-item__icon {
+ margin-right: unset;
+ margin-inline-end: 10px;
+}
+
.ce-popover--opened {
max-height: unset !important;
}
@@ -724,7 +738,7 @@ iframe {
}
.cdx-search-field__icon {
- margin-right: 5px;
+ margin-inline-end: 5px;
}
.cdx-block.embed-tool {