Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CK editor not working on nodcms version 3.4.1 #114

Closed
DEV-byoos opened this issue Jan 16, 2023 · 2 comments
Closed

CK editor not working on nodcms version 3.4.1 #114

DEV-byoos opened this issue Jan 16, 2023 · 2 comments

Comments

@DEV-byoos
Copy link

Hello,
the CKeditor text editor is no longer displayed in the forms
admin-blog
admin-articles
admin-potfolio
...
I am looking for a solution please
version NodCms 3.4.1
CI 4.3.0-0
PHP8.2
thanks dev's

@DEV-byoos
Copy link
Author

//error js load ckeditor, a slash "/" is missing between the public segment and assets
Échec du chargement pour l’élément <script> dont la source est « http://localhost/1__codeigniter_dev/1__2023/cms/nodcms_v3-4-1c_new/publicassets/plugins/ckeditor/config.js?t=MAUD ». 17:1:1
Échec du chargement pour l’élément <script> dont la source est « http://localhost/1__codeigniter_dev/1__2023/cms/nodcms_v3-4-1c_new/publicassets/plugins/ckeditor/lang/fr.js?t=MAUD ».

here is the cause of the ckeditor display problem,
now we have to find the fix???

I'm working on it

@DEV-byoos
Copy link
Author

It's OK for FIX

//error js load ckeditor, a slash "/" is missing between the public segment and assets
Échec du chargement pour l’élément <script> dont la source est « http://localhost/1__codeigniter_dev/1__2023/cms/nodcms_v3-4-1c_new/publicassets/plugins/ckeditor/config.js?t=MAUD ». 17:1:1
Échec du chargement pour l’élément <script> dont la source est « http://localhost/1__codeigniter_dev/1__2023/cms/nodcms_v3-4-1c_new/publicassets/plugins/ckeditor/lang/fr.js?t=MAUD ».

I have reassembled the construction circuit for "javascript", here is the result:

IN /root/public/assets/nodcms/js/common.js
window.CKEDITOR_BASEPATH = $('body').attr('data-base-url')+'assets/plugins/ckeditor/';

data-base-url is from /root/nodcms-layout/View/admin/layout.php
add ."/" to the end of base_url()

">

This is from the update from 3.1.5 to 3.4.1

FYI the CONFIG_BASE_URL constant used to end with a slash /

CKEDITOR is displayed correctly
best regard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant