Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions resources/views/plugins/common/wysiwyg.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,22 @@
</script>
<script type="text/javascript">
tinymce.init({
// see) https://www.tiny.cloud/docs/tinymce/latest/content-filtering/#sandbox-iframes-exclusions
sandbox_iframes: true,
// ホワイトリストにはTinyMCEのデフォルト値を設定
sandbox_iframes_exclusions: [
'youtube.com',
'youtu.be',
'vimeo.com',
'player.vimeo.com',
'dailymotion.com',
'embed.music.apple.com',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GoogleMapを埋め込むことがあるかと思うので、google.comを追加されてはいかがでしょうか?アルファベット順に並んでいるので、embed.music.apple.comの下に。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gakigaki 指摘ありがとうございます。
動作確認ミスってて正常に動作しているものと勘違いしておりました。

'google.com',
'open.spotify.com',
'giphy.com',
'dai.ly',
'codepen.io'
],
@if(isset($target_class) && $target_class)
selector : 'textarea.{{$target_class}}',
@else
Expand Down