如何在 Drupal CKEditor 5 中添加内联 JS 代码?

问题描述 投票:0回答:0

尝试使用 CKEditor 5 将我的 JS 代码添加到 Drupal 9.5.3 中的自定义块。但是 JS 代码没有在那里运行。

custom block

我尝试使用 CKEditor 工具栏中的代码按钮添加代码。但不起作用。

在旧版本的 Drupal 8 中,我曾经在自定义时钟本身中编写 JS 脚本。

那么,如何在编辑器中添加我的 JS 脚本?

javascript php drupal ckeditor ckeditor5
© www.soinside.com 2019 - 2024. All rights reserved.