More pad on the page edit box, +added styles

This commit is contained in:
Simon Martens
2026-01-15 22:02:25 +01:00
parent a2857a3038
commit ab984442ec
3 changed files with 29 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -73,12 +73,14 @@
license_key: "gpl", license_key: "gpl",
menubar: false, menubar: false,
branding: false, branding: false,
plugins: "advlist lists link code autoresize", plugins: "advlist lists link table code autoresize",
toolbar: "undo redo | blocks | bold italic | bullist numlist | outdent indent | link | code removeformat", toolbar: "undo redo | blocks | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent | link table | code removeformat",
block_formats: "Absatz=p;Überschrift 2=h2;Überschrift 3=h3;Zitat=blockquote;Vorformatiert=pre", block_formats: "Absatz=p;Überschrift 2=h2;Überschrift 3=h3;Zitat=blockquote;Vorformatiert=pre",
forced_root_block: "p", forced_root_block: "p",
autoresize_bottom_margin: 16, autoresize_bottom_margin: 16,
content_style: "body { font-family: inherit; font-size: 1rem; } p { margin: 0 0 0.75rem; }", content_css: "/assets/style.css",
body_class: "text",
content_style: "html, body { outline: none !important; box-shadow: none !important; } body, body.text { padding: 0 0 0 1.5rem !important; font-size: 1rem; } .mce-content-body { outline: none !important; }",
init_instance_callback: function (editor) { init_instance_callback: function (editor) {
if (editor && editor.targetElm) { if (editor && editor.targetElm) {
editor.targetElm.style.visibility = ""; editor.targetElm.style.visibility = "";

View File

@@ -344,9 +344,29 @@
.msr-staged-role-select { .msr-staged-role-select {
@apply px-2 py-1 text-sm rounded-md border border-gray-300 bg-white outline-none text-gray-700; @apply px-2 py-1 text-sm rounded-md border border-gray-300 bg-white outline-none text-gray-700;
} }
.msr-staged-role-select:focus { .msr-staged-role-select:focus {
@apply focus:border-gray-500 focus:ring-1 focus:ring-gray-400; @apply focus:border-gray-500 focus:ring-1 focus:ring-gray-400;
} }
.tox-tinymce:focus-within,
.tox-tinymce--focus {
@apply outline-none ring-0;
box-shadow: none !important;
}
.tox-tinymce:focus-within .tox-edit-area,
.tox-tinymce:focus-within .tox-edit-area__iframe,
.tox-tinymce .tox-edit-area__iframe:focus,
.tox-tinymce .tox-edit-area__iframe:focus-visible {
outline: none !important;
box-shadow: none !important;
}
.tox.tox-edit-focus .tox-edit-area::before,
.tox .tox-edit-area::before {
border: 0 !important;
opacity: 0 !important;
}
.msr-staged-cancel-btn { .msr-staged-cancel-btn {
@apply w-5 h-5 bg-gray-200 text-gray-600 rounded-full text-sm leading-none cursor-pointer; @apply w-5 h-5 bg-gray-200 text-gray-600 rounded-full text-sm leading-none cursor-pointer;