diff --git a/EMS/admin-ui-bundle/assets/css/core/plugins/wysiwyg.scss b/EMS/admin-ui-bundle/assets/css/core/plugins/wysiwyg.scss new file mode 100644 index 000000000..1308db696 --- /dev/null +++ b/EMS/admin-ui-bundle/assets/css/core/plugins/wysiwyg.scss @@ -0,0 +1,28 @@ +@import "@fortawesome/fontawesome-free/scss/functions"; +@import "@fortawesome/fontawesome-free/scss/variables"; + +// Specific to dialog popup +.cke_dialog { + .select2-container { + z-index:10020; + position:relative !important; + + .select2-selection--single .select2-selection__rendered .fa { + font-family: $fa-style-family !important; + } + } + + div.cke_dialog_ui_input_select { + display: block; + } +} + +// More generic change, because dialog z-index is higher than select2 dropdown. +.select2-dropdown { + z-index: 10051 !important; + position: absolute !important; +} + +.cke_combopanel { + width:350px !important; +} diff --git a/EMS/admin-ui-bundle/assets/js/core/plugins/wysiwyg.js b/EMS/admin-ui-bundle/assets/js/core/plugins/wysiwyg.js index 1d71bc6ad..4ad01e2e3 100644 --- a/EMS/admin-ui-bundle/assets/js/core/plugins/wysiwyg.js +++ b/EMS/admin-ui-bundle/assets/js/core/plugins/wysiwyg.js @@ -7,6 +7,7 @@ import { Heading } from '@ckeditor/ckeditor5-heading' import { Link } from '@ckeditor/ckeditor5-link' import { List } from '@ckeditor/ckeditor5-list' import { Paragraph } from '@ckeditor/ckeditor5-paragraph' +import '../../../css/core/plugins/wysiwyg.scss' class WYSIWYG { load (target) {