Laravel Backpack 使用自定义构建的 CKEditor。

huangapple go评论58阅读模式
英文:

Laravel Backpack use custom build for ckeditor

问题

我正在使用 Laravel 10 + Backpack 6。
Backpack 6 在底层使用了 ckeditor5。

我想要使用自定义构建的 ckeditor,并添加一些额外的插件。
我已经按照这篇帖子中提到的所有步骤进行了设置 - Backpack 中的 CKEditor 工具栏
以下是我的文件结构以及字段的定义:
Laravel Backpack 使用自定义构建的 CKEditor。

不幸的是,它没有起作用。在浏览器中,我看到服务器返回了我的脚本的 404 错误:
Laravel Backpack 使用自定义构建的 CKEditor。

英文:

I am using Laravel 10 + Backpack 6.
Backpack 6 used ckeditor5 under the hood.

I want to use custom build of ckeditor with some additional plugins.
I did everything is mention in this post - CKEditor toolbars in Backpack
and here is my file structure with defenition of field:
Laravel Backpack 使用自定义构建的 CKEditor。

Unfortunately it does not work. In browser i see that server returns 404 for my scripts:
Laravel Backpack 使用自定义构建的 CKEditor。

答案1

得分: 1

确保您将文件放置在正确的路径下:\resources\assets\ckeditor\ckeditor.js

确保您只放置了构建文件夹中的内容。

\translations\
\ckeditor.js
\ckeditor.js.map

如果路径正确,请转到 basset 文件夹(默认为\public\storage\basset\)并检查文件是否已缓存在其中,位于\public\storage\basset\resources\assets\ckeditor\ckeditor.js

我假设对于您来说,basset 正常工作,并且管理员面板没有问题,所以应该与这些路径有关 👌

如果文件在那里,它应该正常工作。
如果文件不在那里,文件的放置可能有问题。

请告诉我 🙌

英文:

Make sure you placed the files in the correct path: \resources\assets\ckeditor\ckeditor.js.

Make sure you only placed there what's inside the build folder.

\translations\
\ckeditor.js
\ckeditor.js.map

If that path is correct, please go to basset folder (default is \public\storage\basset\) and check if the files are cached there, at \public\storage\basset\resources\assets\ckeditor\ckeditor.js.

I'm assuming basset is working properly for you and the admin panel has no issues, so it should be related with this paths 👌

If the files are there, it should work.
If the files aren't there, something is wrong with the placement of the files.

Let me know 🙌

huangapple
  • 本文由 发表于 2023年7月31日 22:53:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/76804811.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定