英文:
Laravel Backpack use custom build for ckeditor
问题
我正在使用 Laravel 10 + Backpack 6。
Backpack 6 在底层使用了 ckeditor5。
我想要使用自定义构建的 ckeditor,并添加一些额外的插件。
我已经按照这篇帖子中提到的所有步骤进行了设置 - Backpack 中的 CKEditor 工具栏,
以下是我的文件结构以及字段的定义:
不幸的是,它没有起作用。在浏览器中,我看到服务器返回了我的脚本的 404 错误:
英文:
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:
Unfortunately it does not work. In browser i see that server returns 404 for my scripts:
答案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 🙌
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论