Conversation
Contributor
Author
|
@gakigaki レビューお願いします。 |
gakigaki
requested changes
May 23, 2025
gakigaki
left a comment
Contributor
There was a problem hiding this comment.
ご対応ありがとうございます!
ご確認お願いします。
| tinymce.PluginManager.add('cc_template', function(editor, url) { | ||
| // アイコン定義 see) https://fontawesome.com/search?q=stamp&o=r ※svgコードそのままコピペでは表示されない為、widthとheightを指定 | ||
| editor.ui.registry.addIcon( | ||
| 'clone', |
Contributor
There was a problem hiding this comment.
editor.ui.registry.addIcon()は使わないで、editor.ui.registry.addButton()のiconに 'template' を指定する方がいいかもしれません。
editor.ui.registry.addButton('cc_template', {
icon: 'template',
tooltip: 'テンプレートの挿入',
.......
}
addIcon()はTinyMCEのicon群に使いたいものがないときのカスタム用の関数のようです。
template用のiconは用意されているので、そちらを使っていいのではないかと思いました。
https://www.tiny.cloud/docs/tinymce/latest/editor-icon-identifiers/
Contributor
Author
There was a problem hiding this comment.
なるほど、ありがとうございます。
このドキュメントは見落としてました。
| const template = templates[selected_idx] || {}; | ||
| preview.innerHTML = ` | ||
| <div> | ||
| <div>${template.description || ''}</div> |
Contributor
Contributor
Author
Comment on lines
+152
to
+160
| if (File::exists($templates_path)) { | ||
| $templates_file = File::get($templates_path); | ||
| } | ||
| else if (File::exists($templates_group_default_path)) { | ||
| $templates_file = File::get($templates_group_default_path); | ||
| } | ||
| else if (File::exists($templates_default_path)) { | ||
| $templates_file = File::get($templates_default_path); | ||
| } |
Contributor
There was a problem hiding this comment.
改行の仕方がコード規約違反ですが、他の個所もこうなっていましたね。
ここだけ直すかはお任せします!
Contributor
Author
There was a problem hiding this comment.
bladeは上手く動作しないのかな?
ツールでポンなら直したかったけど、全部で22カ所あったので今回は見送ります。
指摘ありがとうございます。
> ./vendor/bin/phpcbf --standard=phpcs.xml C:\sites\connect_cms_php_8030\htdocs\resources\views\plugins\common\wysiwyg.blade.php
PHP Warning: Module "openssl" is already loaded in Unknown on line 0
Warning: Module "openssl" is already loaded in Unknown on line 0
No violations were found
Time: 103ms; Memory: 10MB
Contributor
Author
|
@gakigaki 確認ありがとうございます!再レビューおねしゃす! |
Contributor
|
修正ありがとうございました! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



概要
主な変更点
補足
レビュー完了希望日
5/29(木)
関連Pull requests/Issues
#2190
参考
イメージ1(ウィジウィグのツールバー)
イメージ2(ダイアログ画面)
DB変更の有無
なし
チェックリスト