공개 저장소 이슈 gnuboard/g7 (@bigmsg) 제보에서 출발한 작업이다. 브라우저가 화면을 그리려고 제3자 CDN 에 도달해야 하면, 그 도달 실패는 예외도 로그도 남기지 않고 화면 기능만 조용히 사라진다. 폐쇄망·방화벽·광고차단기에서 재현되는데 자체 서버 로그에는 흔적이 없어 운영자가 원인을 특정할 수 없다. 제보된 것은 편집기 하나였지만 같은 구조가 아이콘·글꼴·코드편집기·압축 라이브러리·설치 마법사·개발 대시보드에 똑같이 있었으므로, 번들 확장과 템플릿 전체를 자체 제공으로 옮겼다. 런타임에 외부로 나가는 것은 주소 검색 서비스 하나만 남았다. 자체 제공만으로는 부족하다 — 자기 서버에서 받는 파일도 실패할 수 있고, 종전에는 그 실패가 무음이었다. CSS 경로에 재시도 계층을 세우고(스크립트 경로와 동형), 서버가 HTML 에 직접 심는 externals 까지 실패를 붙잡아 안내 배너와 [다시 시도]로 표면화했다. 편집기·코드편집기는 확보 실패 시 평문 입력으로 내려앉되 저장 계약을 유지한다. 두 번째 축은 운영자가 CSS 를 덧붙일 자리가 없던 문제다(sir.kr 문의). 확장 디렉토리의 custom/ 을 운영자 소유로 정해, 확장 교체가 그 디렉토리만은 보존하게 했다. 출처에 의존하지 않는 서술자로 해석하므로 나중에 다른 출처가 붙어도 소비자는 바뀌지 않는다. 확장 자산과 같은 메커니즘으로 정적 게시되어 CSS 내부 상대 url 도 해석되고, 파일을 고치면 그 변경을 감지해 재게시까지 예약된다. FTP 접근이 없는 운영자에게는 그 자리도 없는 것과 같으므로 레이아웃 편집기에서 직접 넣고 고칠 수 있게 했다. 모듈·플러그인·템플릿이 한 엔드포인트를 공유한다 — 타입별로 나누면 같은 검증이 세 벌로 갈리고 그중 약한 하나가 우회로가 된다. 여기서 올린 스크립트는 그 레이아웃 한 장이 아니라 사이트 전 화면에서 실행되므로 레이아웃 편집과 분리된 전용 권한으로 연다. 운영자 CSS 가 화면을 조작 불능으로 만들면 그것을 고칠 화면에도 같은 CSS 가 실려 스스로 갇히므로, 서버가 목록을 비우는 탈출구(?custom=off)를 함께 뒀다. 동봉 자산은 재생성 경로에 버전 대조 가드를 붙였다. 선언과 다른 버전을 버전 디렉토리에 써 넣는 조용한 거짓말은 배포된 뒤에는 드러나지 않는다.
112 lines
5.9 KiB
JSON
112 lines
5.9 KiB
JSON
{
|
|
"editor": {
|
|
"data_source": {
|
|
"settings": "Editor Settings",
|
|
"ckeditor5Uploads": "Uploaded Image List"
|
|
},
|
|
"asset": {
|
|
"label": "Editor",
|
|
"style_label": "Editor styles",
|
|
"fallback_notice": "Could not load the editor. Switched to a plain text box. What you write is still saved."
|
|
}
|
|
},
|
|
"admin": {
|
|
"uploads": {
|
|
"title": "Editor Uploads",
|
|
"description": "Review images uploaded through the editor and clean up the ones that are no longer used.",
|
|
"refresh": "Refresh",
|
|
"open_settings": "Open cleanup settings",
|
|
"reference_notice": "Reference status is determined by scanning registered content such as posts, pages, and product descriptions. An image used only by an external extension that has not registered a reference source may appear as \"Unreferenced\", so verify before deleting.",
|
|
"scan_limited_notice": "The reference status filter evaluates the most recent {{count}} uploads. Older images are not shown in this list.",
|
|
"empty": "No uploaded images.",
|
|
"col": {
|
|
"thumbnail": "Preview",
|
|
"original_name": "Original name",
|
|
"file_size": "Size",
|
|
"uploader": "Uploaded by",
|
|
"created_at": "Uploaded at",
|
|
"referenced": "Reference"
|
|
},
|
|
"badge": {
|
|
"referenced": "In use",
|
|
"unreferenced": "Unused"
|
|
},
|
|
"filter": {
|
|
"search_placeholder": "Search by original name or hash",
|
|
"search_button": "Search",
|
|
"referenced_all": "All statuses",
|
|
"referenced_only": "In use only",
|
|
"unreferenced_only": "Unused only",
|
|
"date_from": "From",
|
|
"date_to": "To",
|
|
"clear": "Clear filters"
|
|
},
|
|
"delete": {
|
|
"button": "Delete",
|
|
"confirm_title": "Delete this image?",
|
|
"confirm_message": "The image file and its record will both be deleted. This cannot be undone.",
|
|
"success": "The image has been deleted.",
|
|
"failed": "Failed to delete the image."
|
|
},
|
|
"bulk_delete": {
|
|
"button": "Delete selected",
|
|
"selected": "{{count}} selected",
|
|
"confirm_title": "Delete the selected images?",
|
|
"confirm_message": "The files and records of the {{count}} selected images will both be deleted. This cannot be undone."
|
|
}
|
|
}
|
|
},
|
|
"settings": {
|
|
"title": "CKEditor5 Settings",
|
|
"description": "CKEditor5 WYSIWYG editor plugin configuration",
|
|
"notice": "CKEditor5 is loaded via CDN. An internet connection is required. It is free to use without a separate license.",
|
|
"section_toolbar": "Editor Settings",
|
|
"section_image": "Image Settings",
|
|
"section_cleanup": "Unused Image Cleanup",
|
|
"section_preview": "Editor Test",
|
|
"section_preview_hint": "Preview CKEditor5 with the current settings applied.",
|
|
"cleanup": {
|
|
"toggle_label": "Auto cleanup unused images",
|
|
"toggle_hint": "Off by default — the operator must turn it on. When on, files and records of unused images past the retention period are deleted once a day.",
|
|
"retention_label": "Retention period (days)",
|
|
"retention_hint": "Only unused images older than this period are eligible for cleanup. (1 ~ 3650 days)",
|
|
"manual_hint": "To see what would be removed first, run this command on the server: php artisan sirsoft-ckeditor5:prune-unused-images --dry-run",
|
|
"open_uploads": "Open editor uploads"
|
|
},
|
|
"preview_placeholder": "Type here to test the editor.",
|
|
"fields": {
|
|
"toolbar": {
|
|
"label": "Toolbar Type",
|
|
"hint": "Select the toolbar button configuration for the editor.",
|
|
"minimal": "Minimal (Bold, Italic, Underline, Link)",
|
|
"standard": "Standard (Heading, Format, Alignment, Link, List, Table)",
|
|
"full": "Full (Standard + Media, Colors, Code Block, Source Editing)"
|
|
},
|
|
"image_upload": {
|
|
"label": "Enable Image Upload",
|
|
"hint": "Enable direct image upload in the editor. When disabled, only URL input is available."
|
|
},
|
|
"image_max_size": {
|
|
"label": "Max Image Size (MB)",
|
|
"hint": "Maximum allowed size for uploaded images. (1 ~ 10 MB)"
|
|
},
|
|
"public_asset_disk": {
|
|
"label": "Public Asset Disk",
|
|
"hint": "Select to use a different disk for this plugin only. Leave empty to follow the core public asset disk setting.",
|
|
"follow_core": "Follow core setting"
|
|
},
|
|
"editor_height": {
|
|
"label": "Editor Height (px)",
|
|
"hint": "Set the minimum height of the editor in pixels. (200 ~ 2000 px)"
|
|
}
|
|
},
|
|
"guide": {
|
|
"title": "Usage Guide",
|
|
"step1": "Once activated, CKEditor5 is automatically applied to areas using extension_point html_editor and html_content in layouts. Areas using HtmlEditor/HtmlContent components directly (e.g., mail templates) are not affected.",
|
|
"step2": "Select the toolbar type to adjust the features displayed in the editor. Choose a toolbar that fits your use case.",
|
|
"step3": "Enabling image upload allows users to paste or upload images directly in the editor. Uploaded images are stored on the server.",
|
|
"step4": "Changes take effect immediately after saving. No page refresh is required.",
|
|
"step5": "When deactivated, editors revert to the default HtmlEditor and content display reverts to the default HtmlContent."
|
|
}
|
|
}
|
|
} |