Skip to content

Commit c1212cc

Browse files
authored
Merge pull request #2204 from opensource-workshop/wysiwyg-image-editor
[WYSIWYG]TinyMCEの画像編集機能(imagetools)代替としてToast UI Image Editorを導入しました
2 parents 2211831 + 5b5ecaa commit c1212cc

File tree

12 files changed

+1914
-41
lines changed

12 files changed

+1914
-41
lines changed

package-lock.json

Lines changed: 1507 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"sass-loader": "^12.6.0",
3232
"sortablejs": "^1.15.2",
3333
"tinymce": "^7.8.0",
34+
"tui-image-editor": "^3.15.3",
3435
"vue": "^3.5.13",
3536
"vue-loader": "^17.3.0"
3637
}

public/css/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/js/app.js.LICENSE.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@
1010
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
1111
*/
1212

13+
/*!
14+
* @copyright Copyright (c) 2017 IcoMoon.io
15+
* @license Licensed under MIT license
16+
* See https://github.com/Keyamoon/svgxuse
17+
* @version 1.2.6
18+
*/
19+
20+
/*!
21+
* TOAST UI Color Picker
22+
* @version 2.2.8
23+
* @author NHN Cloud FE Development Team <dl_javascript@nhn.com>
24+
* @license MIT
25+
*/
26+
27+
/*!
28+
* TOAST UI ImageEditor
29+
* @version 3.15.3
30+
* @license MIT
31+
*/
32+
1333
/*!
1434
* The buffer module from node.js, for the browser.
1535
*
@@ -32,10 +52,16 @@
3252

3353
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
3454

55+
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
56+
3557
/*! Axios v1.9.0 Copyright (c) 2025 Matt Zabriskie and contributors */
3658

59+
/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */
60+
3761
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
3862

63+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
64+
3965
/**
4066
* @license
4167
* Lodash <https://lodash.com/>
@@ -94,3 +120,5 @@
94120
* @author owenm <owen23355@gmail.com>
95121
* @license MIT
96122
*/
123+
124+
// @license RGB <-> HSV conversion utilities based off of http://www.cs.rit.edu/~ncs/color/t_convert.html

public/mix-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"/js/app.js": "/js/app.js?id=b18fa367e699f71a3d92a8a4b6dc29bc",
3-
"/css/app.css": "/css/app.css?id=94110667e125790f9646ca8f0c9d2382"
2+
"/js/app.js": "/js/app.js?id=e11e836611ea451c83fd5f2e76bd804d",
3+
"/css/app.css": "/css/app.css?id=369c846d4ff4ffb259bf19d2d9fcdaae"
44
}

resources/js/bootstrap.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ import './tinymce/plugins/translate/plugin.js';
132132
import './tinymce/plugins/pdf/plugin.js';
133133
import './tinymce/plugins/face/plugin.js';
134134
import './tinymce/plugins/cc_template/plugin.js';
135+
import './tinymce/plugins/cc_image_editor/plugin.js';
135136

136137
/* content UI CSS is required */
137138
import 'tinymce/skins/ui/oxide/content.js';
@@ -144,3 +145,9 @@ import 'tinymce/skins/ui/oxide/content.js';
144145
/* ダウンロードした日本語 https://www.tiny.cloud/get-tiny/language-packages/
145146
Path: resources/js/tinymce/langs/ja.js */
146147
import './tinymce/langs/ja.js';
148+
149+
// tui-image-editor本体とCSS
150+
import ImageEditor from 'tui-image-editor';
151+
window.ImageEditor = ImageEditor;
152+
import 'tui-image-editor/dist/tui-image-editor.css';
153+
import 'tui-color-picker/dist/tui-color-picker.css';
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
export const locale_ja_JP = {
2+
"3:2": "3:2",
3+
"4:3": "4:3",
4+
"5:4": "5:4",
5+
"7:5": "7:5",
6+
"16:9": "16:9",
7+
"Apply": "適用",
8+
"Arrow": "矢印",
9+
"Arrow-2": "矢印2",
10+
"Arrow-3": "矢印3",
11+
"Blend": "ブレンド",
12+
"Blur": "ぼかし",
13+
"Bold": "太字",
14+
"Brightness": "明るさ",
15+
"Bubble": "吹き出し",
16+
"Cancel": "キャンセル",
17+
"Center": "中央",
18+
"Circle": "円",
19+
"Color": "色",
20+
"Color Filter": "カラーフィルター",
21+
"Crop": "切り抜き",
22+
"Custom": "カスタム",
23+
"Custom icon": "カスタムアイコン",
24+
"Delete": "削除",
25+
"DeleteAll": "すべて削除",
26+
"Distance": "距離",
27+
"Download": "ダウンロード",
28+
"Draw": "描画",
29+
"Emboss": "エンボス",
30+
"Fill": "塗りつぶし",
31+
"Filter": "フィルター",
32+
"Flip": "反転",
33+
"Flip X": "左右反転",
34+
"Flip Y": "上下反転",
35+
"Free": "自由",
36+
"Grayscale": "グレースケール",
37+
"Hand": "手のひらツール",
38+
"Heart": "ハート",
39+
"History": "履歴",
40+
"Icon": "アイコン",
41+
"Invert": "階調の反転",
42+
"Italic": "斜体",
43+
"Left": "左",
44+
"Load": "読み込み",
45+
"Load Mask Image": "マスク画像を読み込む",
46+
"Location": "位置",
47+
"Mask": "マスク",
48+
"Multiply": "乗算",
49+
"Noise": "ノイズ",
50+
"Pixelate": "モザイク",
51+
"Polygon": "多角形",
52+
"Range": "範囲",
53+
"Rectangle": "長方形",
54+
"Redo": "やり直し",
55+
"Remove White": "白背景を削除",
56+
"Reset": "リセット",
57+
"Resize": "リサイズ",
58+
"Right": "右",
59+
"Rotate": "回転",
60+
"Sepia": "セピア",
61+
"Sepia2": "セピア2",
62+
"Shape": "図形",
63+
"Sharpen": "シャープ",
64+
"Square": "正方形",
65+
"Star-1": "星1",
66+
"Star-2": "星2",
67+
"Straight": "直線",
68+
"Stroke": "線",
69+
"Text": "テキスト",
70+
"Text size": "文字サイズ",
71+
"Threshold": "しきい値",
72+
"Tint": "色合い",
73+
"Triangle": "三角形",
74+
"Underline": "下線",
75+
"Undo": "元に戻す",
76+
"Value": "値",
77+
"ZoomIn": "拡大",
78+
"ZoomOut": "縮小",
79+
};

0 commit comments

Comments
 (0)