// 문단 클릭, 호버 시 이동 방지 함수
function preventMovementOnInteraction() {
// 모든 텍스트 블록에 호버 이벤트 리스너 추가
const textBlocks = document.querySelectorAll('.editor-styles-wrapper p, .editor-styles-wrapper h1, .editor-styles-wrapper h2, .editor-styles-wrapper h3, .editor-styles-wrapper h4, .editor-styles-wrapper h5, .editor-styles-wrapper h6, .editor-post-title__input, .block-editor-rich-text__editable');
textBlocks.forEach(function(block) {
// 마우스 진입 시
block.addEventListener('mouseenter', function(e) {
e.target.style.outline = 'none';
e.target.style.backgroundColor = 'transparent';
e.target.style.transform = 'none';
e.target.style.position = 'static';
e.target.style.left = '0';
e.target.style.margin = 'inherit';
e.target.style.padding = 'inherit';
});
// 클릭 시
block.addEventListener('mousedown', function(e) {
e.target.style.outline = 'none';
e.target.style.backgroundColor = 'transparent';
e.target.style.transform = 'none';
e.target.style.position = 'static';
e.target.style.left = '0';
});
// 포커스 시
block.addEventListener('focus', function(e) {
e.target.style.outline = 'none';
e.target.style.backgroundColor = 'transparent';
e.target.style.transform = 'none';
e.target.style.position = 'static';
e.target.style.left = '0';
}, true);
});
} /* 인용구 들여쓰기 유지하면서 여백 통일 */
body.wp-admin .wp-block-quote,
body.wp-admin .editor-styles-wrapper .wp-block-quote,
body.wp-admin .editor-styles-wrapper blockquote {
border-left: 4px solid #eeeeee !important;
padding-left: 1.5em !important;
padding-right: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
margin-top: 1.5em !important;
margin-bottom: 1.5em !important;
width: 100% !important;
box-sizing: border-box !important;
font-style: italic !important;
color: #666666 !important;
background-color: transparent !important;
/* 인용구 이동 방지 */
position: static !important;
left: 0 !important;
right: 0 !important;
transform: translateX(0) !important;
transition: none !important;
animation: none !important;
}
/* 리스트는 기본 들여쓰기 유지하면서 여백 통일 */
body.wp-admin .editor-styles-wrapper ul,
body.wp-admin .editor-styles-wrapper ol,
body.wp-admin .wp-block-list {
padding-left: 1.5em !important;
padding-right: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
margin-top: 1.2em !important;
margin-bottom: 1.2em !important;
width: 100% !important;
box-sizing: border-box !important;
font-size: 20.2px !important;
color: #333333 !important;
background-color: transparent !important;
} /* 에디터 내부 블록 너비 및 여백 균일화 */
body.wp-admin .wp-block {
max-width: 100% !important;
width: 100% !important;
margin-left: 0 !important;
margin-right: 0 !important;
padding-left: 0 !important;
padding-right: 0 !important;
box-sizing: border-box !important;
}
/* 에디터 제목 블록 너비 및 여백 균일화 */
body.wp-admin .editor-post-title {
max-width: 100% !important;
width: 100% !important;
padding-left: 0 !important;
padding-right: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
box-sizing: border-box !important;
}
body.wp-admin .editor-post-title__block {
max-width: 100% !important;
width: 100% !important;
padding-left: 0 !important;
padding-right: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
box-sizing: border-box !important;
}
/* 에디터 컨텐츠 영역 균일한 여백 보장 */
body.wp-admin .editor-styles-wrapper .is-root-container {
padding: 0 !important;
margin: 0 !important;
width: 100% !important;
box-sizing: border-box !important;
}
/* 블록 호버 시 컨트롤 버튼 영향으로 인한 여백 변화 방지 */
body.wp-admin .block-editor-block-list__layout .block-editor-block-list__block {
padding-left: 0 !important;
padding-right: 0 !important;
margin-left: 0 !important;
margin-right: 0 !important;
box-sizing: border-box !important;
max-width: 100% !important;
width: 100% !important;
}
Warning: Cannot modify header information - headers already sent by (output started at /bitnami/wordpress/wp-content/mu-plugins/minimalist-editor.php:1) in /bitnami/wordpress/wp-content/mu-plugins/mwzd-redirect-url-to-post.php on line 112