Commit graph

78 commits

Author SHA1 Message Date
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
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
44ecff5e55 Fix #1556 fix auto-detection of dark mode even when it is disabled 2021-01-10 00:39:53 +09:00
Kijin Sung
3258aec031 Revert e725455a 2021-01-08 02:12:24 +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
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
c4cb246b3d Add uicolor settings
uicolor 설정을 이용해서 moono-lisa 스킨의 다크모드를 구현합니다.
2021-01-07 11:32:43 +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
Kijin Sung
8ef75ea63f Fix $css_content being set to null in iOS 2020-07-23 20:22:17 +09:00
Kijin Sung
ece4ce90c2 Exclude enterkey plugin in iOS 2020-07-08 15:33:16 +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
ddb2a8afa1 Fix CKEditor Korean line break issue in iOS #932
- iOS에서는 divarea 플러그인과 @largeden 님의 ios_enterkey 플러그인을 사용
- iOS에서는 divarea 플러그인과 호환되지 않는 에디터 컴포넌트를 로딩하지 않음
  - 추후 호환성 문제가 해결되면 다시 사용하도록 변경할 수 있음
- 기본 폰트 등의 스타일이 cke_wysiwyg_div 클래스에도 적용되도록 조치함
2018-03-08 14:23:47 +09:00
Kijin Sung
dd93a40e05 Remove enterkey plugin for CKEditor on iOS
- xpressengine/xe-core#2207
- rhymix/rhymix#932
- 실제 이 패치로 해결될 것 같지는 않으나 일단 XE와 맞춤
2018-03-07 02:45:02 +09:00
Kijin Sung
9ba0b1e3e6 Add option to control focus on CKEditor
https://www.xetown.com/qna/801549
2017-11-21 15:33:24 +09:00
Kijin Sung
6a9c82284d Fix #865 set height of CKEditor container more intelligently 2017-07-05 12:21:52 +09:00
Kijin Sung
aed5c0fc6a Fix CKEditor extraPlugins and removePlugins support 2017-07-05 12:11:51 +09:00
Kijin Sung
c96d586827 Fix scripts where broken jQuery might cause issues
서드파티 자료에서 jQuery의 $를 덮어써 버릴 경우 발생할 수 있는 문제를
미리 차단하기 위해 다소 보수적으로 코딩함
2017-07-02 00:48:52 +09:00
Kijin Sung
2533db414b Always treat CKEditor as producing HTML content 2017-06-29 19:42:52 +09:00
Kijin Sung
399bebd5c9 Implement option to specify additional plugins for CKEditor 2017-06-27 18:37:55 +09:00
Kijin Sung
63160bf5bf Implement simple toolbar option for CKEditor 2017-06-27 18:16:12 +09:00
Kijin Sung
4adf223524 Implement control of whether to hide the editor toolbar 2017-06-27 18:04:26 +09:00
Kijin Sung
0d257b6b67 Respect PC and mobile editor height settings in CKEditor and textarea 2017-06-27 17:42:28 +09:00
bnu
4ed2597d1a fix #2108 CKEditor에서 비어있는 태그를 제거하는 기능으로 인해 일부 코드가 제거되는 문제 고침
- ins, i
2017-06-26 13:38:48 +09:00
Kijin Sung
43f3d41543 Make enter key insert a BR tag instead of P when used on iOS 2017-04-08 17:22:00 +09:00
Kijin Sung
cd80bcb3a7 Fix #494 add option to control auto-insertion of images in editor 2016-12-18 00:24:59 +09:00
Kijin Sung
2f342bcf4e Enable additional CSS inside CKEditor 2016-10-01 18:07:08 +09:00
Kijin Sung
44e5f44c59 Reduce editor height in mobile mode 2016-10-01 17:38:12 +09:00
Kijin Sung
5c64fec920 Auto-detect inherited style in editor if no font is specified 2016-05-05 15:17:35 +09:00
Kijin Sung
a6b5ee32f1 Work around old IE versions not supporting Array.prototype.map() 2016-04-28 20:40:18 +09:00
Kijin Sung
b8b71530a3 Display system font names and sizes in CKEditor 2016-04-28 14:34:01 +09:00
Kijin Sung
40ab69f225 Always apply paragraph spacing, even if it is zero 2016-04-28 01:03:52 +09:00
Kijin Sung
a1fc06f645 Make the default editor styles more configurable 2016-04-28 00:52:29 +09:00
YJSoft
f51b6f9b45 fix #1648 CKEditor에도 자동 저장 기능 추가
기존 XpressEditor에 있던 자동저장 기능을 추가합니다. 50초마다 자동으로 저장되며 기존 XpressEditor처럼 설정에서 자동 저장 사용 여부를 바꿀 수 있습니다.
2015-07-17 13:10:45 +09:00
bnu
f5f57aacd3 fix #1421 CKEditor의 custom config 파일의 존재 유무를 확인하도록 개선 2015-07-13 13:57:04 +09:00