Commit graph

129 commits

Author SHA1 Message Date
Kijin Sung
88ac7ef65d Disable clipboard image handling in CKEditor 2024-04-24 10:35:45 +09:00
Kijin Sung
117023817d Eliminate unnecessary AJAX calls to file.getFileList
에디터 로딩 직후, 파일 업로드 직후, 파일 삭제 직후
첨부목록 갱신을 위해 file.getFileList를 호출하도록 되어 있는데,
첨부목록을 직전 요청의 응답과 함께 반환하도록 변경하여
불필요한 AJAX 요청이 발생하지 않도록 하고, 로딩 속도를 개선함.
2024-04-16 22:38:53 +09:00
Kijin Sung
c235f6b8b3 Adjust min-height to Prevent layout shift when CKEditor is loaded
https://xetown.com/questions/1801094
2023-12-31 16:21:05 +09:00
Kijin Sung
7a8b62448d Add rx_ckeditor class to ckeditor wrapper div
https://xetown.com/questions/1801094
2023-12-30 20:15:04 +09:00
Kijin Sung
b299dd02dc Fix spurious "sandbox" attribute being added to all iframes, due to CKEditor change
https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-iframe_attributes
2023-12-12 18:55:55 +09:00
Kijin Sung
72ab8ea8fc Disable CKEditor 4.22 version check AJAX request 2023-10-26 23:10:05 +09:00
Kijin Sung
a6f918fbf9 Fix undefined variable 2023-09-25 22:06:55 +09:00
Kijin Sung
2fc94f55aa Ensure that CKEditor.timestamp is string 2023-09-25 10:33:39 +09:00
Kijin Sung
283380ed0f Replace CKEditor default LESS file with SCSS, and clean up related code in editor.html
- LESS 컴파일러 라이브러리 유지보수 중단으로, 모든 LESS는 SCSS로 변환 필요
- CKEditor 쪽에서 PHP 변수, JS 변수, CSS 변수 서로 전달하는 방식은 추가 개선 필요
2023-09-25 02:07:28 +09:00
Kijin Sung
c8638d2548 Change cache-busting query string format from ?YYYYMMDDHHMMSS to ?t=UnixTime
- 날짜, 유닉스 타임스탬프, 16진수(CKEditor) 등 여러 가지 포맷을 혼용하고 있던
  캐시 방지용 쿼리스트링의 형태를 "유닉스 타임스탬프"로 통일
- 표준 시간대 처리 등 은근히 많은 자원을 소모하는 date() 함수를 사용하지 않음
- t=를 붙여서 정상적인 쿼리스트링 구조가 나오도록 하여, 웹방화벽이나 CDN
  등에서 문제를 일으킬 가능성을 줄임
- 덤으로, 길이도 2바이트씩 짧아짐
2023-09-12 23:15:26 +09:00
Kijin Sung
68ee78f1f8 Update CKEditor timestamp if editor module config is updated #2173 2023-09-12 23:03:12 +09:00
Kijin Sung
b65c2b5c29 Replace xGetElementById() with document.getElementById() in CKEditor script
https://xetown.com/questions/1783129#comment_1783270
2023-08-31 13:24:12 +09:00
Kijin Sung
ed7a0bd4e2 Fix RVE-2023-1 editor module XSS 2023-07-05 01:34:48 +09:00
Kijin Sung
42baab1c2c Set CKEDITOR.toolbarMode to make the current setting available in config.js 2022-12-20 12:37:08 +09:00
Kijin Sung
995068830c Fix #2037 missing "strike" button in CKEditor simple toolbar 2022-12-15 23:04:30 +09:00
Kijin Sung
78d1b6966a Fix image_link editor component popup loading even if image_link component is disabled 2021-12-31 00:19:30 +09:00
Kijin Sung
c87ddd5894 Fix #1733 insufficient unset of layout CSS values inside editor iframe 2021-06-22 00:32:28 +09:00
Kijin Sung
8cd650abfe Fix CKEditor auto dark mode not working in iOS with divarea plugin
https://xetown.com/questions/1506918
2021-01-19 21:37:03 +09:00
Kijin Sung
44ecff5e55 Fix #1556 fix auto-detection of dark mode even when it is disabled 2021-01-10 00:39:53 +09:00
Min-Soo Kim
bd7ba13d9a
자동저장 메시지 색상도 다크모드 적용 2021-01-08 02:14:05 +09:00
Kijin Sung
3258aec031 Revert e725455a 2021-01-08 02:12:24 +09:00
Min-Soo Kim
ea6d0c1b8a
!important 로 의도한 효과 내도록 수정
moono-dark 가 아닌 컬러셋과 동일한 효과가 나도록 선택자를 추가했습니다.
2021-01-08 01:56:59 +09:00
Min-Soo Kim
e725455a0e
Merge branch 'editor-dark' into pr/editor-dark-mode 2021-01-08 01:26:58 +09:00
Kijin Sung
98393b033d Remove !important 2021-01-07 23:29:53 +09:00
Kijin Sung
d9e44117cc Apply dark mode to Moono Lisa dialogs 2021-01-07 23:27:29 +09:00
Kijin Sung
7c1887b8a7 .color_scheme_dark 참조하도록 정리 2021-01-07 22:47:30 +09:00
Min-Soo Kim
9394694830
Moono-lisa darkmode 제안. 2021-01-07 11:46:35 +09:00
Min-Soo Kim
26558e4c6c
Moono-lisa 에 대한 다크모드 제안. 2021-01-07 11:44:59 +09:00
Min-Soo Kim
b45ef9f698 Fix moono-lisa darkmode function 2021-01-07 11:40:33 +09:00
Min-Soo Kim
c4cb246b3d Add uicolor settings
uicolor 설정을 이용해서 moono-lisa 스킨의 다크모드를 구현합니다.
2021-01-07 11:32:43 +09:00
Kijin Sung
9587cfd067 Fix timing issues when detecting dark mode 2021-01-06 23:41:28 +09:00
Kijin Sung
e7b49baf13 Support automatic switching to dark skin in CKEditor and SimpleEditor 2021-01-06 23:35:51 +09:00
Kijin Sung
6be4a0531d Fix #1527 autosave not working in CKEditor 2020-12-25 23:30:42 +09:00
Kijin Sung
2badc1dc69 Refresh timestamp on all CKEditor plugins if CKEditor itself is updated 2020-12-15 02:37:30 +09:00
Kijin Sung
15e66c2c6a Fix invalid default_font_size javascript error
https://xetown.com/questions/1475074
2020-10-31 15:32:45 +09:00
conory
8ccfd963b6 rhymix_content class 추가 2020-09-17 20:40:06 +09:00
Kijin Sung
1956089f8c Fix #1375 #1390 force some default styles on editor content area 2020-08-20 16:08:00 +09:00
Min-Soo Kim
c3d40f733d
에디터에 스크롤이 생기는 문제 해결 (#1377)
https://github.com/rhymix/rhymix/issues/1375
2020-08-07 09:12:11 +09:00
Kijin Sung
8ef75ea63f Fix $css_content being set to null in iOS 2020-07-23 20:22:17 +09:00
Kijin Sung
e0f5678aba Add option to select different editors for PC and mobile 2020-07-09 00:23:54 +09:00
Kijin Sung
ece4ce90c2 Exclude enterkey plugin in iOS 2020-07-08 15:33:16 +09:00
Kijin Sung
8d05a674f5 Fix #1335 support autoinsert option by file type 2020-07-03 23:56:37 +09:00
Min-Soo Kim
588f7a6df8
에디터 스킨 스타일 추가 수정 (미세 수정) (#1320)
#1308 에 대한 추가 수정입니다.
2020-06-17 21:29:08 +09:00
Min-Soo Kim
e7cb5ede82
에디터 스타일과 기본 스타일의 합병
* 기본 에디터 스타일과 기본 스타일 설정이 충돌하는 경우가 많았습니다.
 - 기본 스타일을 지정했는데, 기본 에디터 스타일 내의 스타일 지정이 있는 경우 반영이 안되는 경우, 또는 기본 에디터 스타일을 변경했는데 기본 스타일 설정 때문에 반영이 적절하게 되지 않는 경우 등.
* 기본 에디터 스타일에서도 less 또는 sass를 사용하도록 하고 싶었지만, 위지윅 에디터에서 본문에 나타날 스타일을 그대로 보여주는데 한계가 있었습니다.
 - 기본 에디터 스타일을 위지윅 에디터 내에서 나타내기 위해서 변칙적인 방법이 많이 활용되었습니다. 때문에 실제 본문에서 적용되는 스타일 시트의 우선순위와 위지윅 에디터 내에서 적용되는 스타일 시트의 우선순위에 차이가 있었습니다. 이 차이는 실제 보여지는 스타일과 작성하는 에디터 내의 스타일 차이를 크게 만들 가능성이 있었습니다.
* 기능의 의미가 많이 퇴색되었고, 의미 전달이 명확하지 않은 기능이었습니다.
 - 기능상 기본 에디터 스타일과 기본 스타일은 서로 겹치는 영역의 기능입니다. 기본으로 포함된 두 에디터 스타일 간에 차이가 크지 않기도 해서 어떤 기능인지 사용자가 알아채기도 어려웠습니다. 자료실에 배포되고 있는 에디터 스타일도 대단히 적었습니다.
* 게시판이나 각 글의 모듈 스킨에서 지정하는 스타일과 충돌할 가능성도 있습니다.

따라서, 에디터 스타일이 의도한 것 처럼 글의 스타일에 대한 관리자 통제 기능은 유지하면서, 다른 기능과 중복되거나 충돌할 수 있는 기능을 정리합니다.
가능한 많은 환경에서 테스트 하였으나, 추가로 이와 관련한 의견이 있을 경우 merge 후에도 계속 반영 해나가겠습니다.
2020-06-16 00:33:19 +09:00
Kijin Sung
c54fa8dab1 Use escape more consistently
여기저기 htmlspecialchars가 들어 있는 것을 escape로 통일
2018-10-10 15:07:51 +09:00
Kijin Sung
4b0e56b2d2 Remove invalid attribute from file input @misol 2018-08-04 21:41:29 +09:00
Kijin Sung
f12cf74dda Revert "다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리"
This reverts commit b1cb1f3f34.
2018-08-04 20:56:24 +09:00
conory
b1cb1f3f34 다른 프레임워크와 css 충돌을 피하기 위해 rhymix.less의 class/id 이름에 prefix 처리
변경전의 xe.less 파일도 rhymix.less와 함께 load 하여 호환정 유지

CSS 충돌 예)
bootstrap의 .btn
사용 예)
bootstrap 사용시엔 {Context::unloadBasicFiles('xe')}으로 unload 시키면 문제없음
2018-08-03 19:45:30 +09:00
Min-Soo Kim
b62a1322c9 Revert "Merge branch 'develop' into develop"
This reverts commit ec54bbd415, reversing
changes made to 9b12e0a71c.
2018-07-29 11:54:14 +09:00
Min-Soo Kim
d390a66a51 Remove unvalid attribute from FILE input
file input element 에서 유효하지 않는 속성을 제거합니다.
2018-05-11 22:45:49 +09:00