xchwarze / ckeditor-phpbb Goto Github PK
View Code? Open in Web Editor NEWCKEditor integration for phpBB
CKEditor integration for phpBB
Hi, i have a phpbb board with CKEditor-phpbb version 1.6.1 and everything is working fine. When i try to update to version 1.7.0 there is an error 500 when users try to load a topic.
here the error:
[26-May-2024 14:25:23 UTC] PHP Fatal error: Uncaught Twig\Error\LoaderError: Unable to find template "@dsr_ckeditor/js/ckeditor/adapters/jquery.js" (looked into: public_html/community/ext/dsr/ckeditor/styles/all/template, public_html/community/ext/dsr/ckeditor/styles/all/template) in "@dsr_ckeditor/event/overall_footer_after.html" at line 3. in public_html/community/vendor/twig/twig/src/Loader/FilesystemLoader.php:250
Stack trace:
#0 public_html/community/phpbb/template/twig/loader.php(135): Twig\Loader\FilesystemLoader->findTemplate('@dsr_ckeditor/j...', true)
#1 public_html/community/vendor/twig/twig/src/Loader/FilesystemLoader.php(150): phpbb\template\twig\loader->findTemplate('@dsr_ckeditor/j...')
#2 public_html/community/phpbb/template/twig/environment.php(328): Twig\Loader\FilesystemLoader->getCacheKey('@dsr_ckeditor/j...')
#3 public_html/community/cache/production/twig/14/14a80f471900bf32eecf97893bb54424b09feeb78af4978ea3ab98616081e6cb.php(60 in public_html/community/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 250
[26-May-2024 14:25:26 UTC] PHP Fatal error: Uncaught Twig\Error\LoaderError: Unable to find template "@dsr_ckeditor/js/ckeditor/adapters/jquery.js" (looked into: public_html/community/ext/dsr/ckeditor/styles/all/template, public_html/community/ext/dsr/ckeditor/styles/all/template) in "@dsr_ckeditor/event/overall_footer_after.html" at line 3. in public_html/community/vendor/twig/twig/src/Loader/FilesystemLoader.php:250
Stack trace:
#0 public_html/community/phpbb/template/twig/loader.php(135): Twig\Loader\FilesystemLoader->findTemplate('@dsr_ckeditor/j...', true)
#1 public_html/community/vendor/twig/twig/src/Loader/FilesystemLoader.php(150): phpbb\template\twig\loader->findTemplate('@dsr_ckeditor/j...')
#2 public_html/community/phpbb/template/twig/environment.php(328): Twig\Loader\FilesystemLoader->getCacheKey('@dsr_ckeditor/j...')
#3 public_html/community/cache/production/twig/14/14a80f471900bf32eecf97893bb54424b09feeb78af4978ea3ab98616081e6cb.php(60 in public_html/community/vendor/twig/twig/src/Loader/FilesystemLoader.php on line 250
the folder adapters with the jquery.js file is MISSING
Restoring the file from the previous version fix the error 500, but CKEditor it's not visible and these are the new errors:
i have been called by a customer to resolve this issue for him as no new line or new paragraphe where interpreted.
I have solved this issues for him but you need to config this in your plugin.
so
in the file :
This line
'forcePasteAsText' => (bool)$this->config['dsr_cke_force_paste_as_text'],
this can hold other value than bool !
and one of them is 'allow-word' which resolve this issue
So i think you have to reflect this in your setup and config
Have a nice day
Great addon, much more convenient than a bare BBCode editor for end users.
I'm just trying to make it work with the Media Embed phpBB Plugin. I'm a bit lost on how to achieve this.
First of all, when both CKEditor phpBB Plugin and Media Embed phpBB Plugin are enabled, the last one doesn't work. [media]
tags are not interpreted and stay as is in the submitted post.
Then, I've tried to add a custom [media]
BBCode, but it doesn't work either. When flagging it as to be displayed on posting, I got the button, but no more luck: it isn't transformed into an embed media. For this specific test, two points:
[media]
BBCode doesn't work as Media Embed phpBB Plugin works a bit specially. It isn't registered as a custom BBCode and is based on event listener mechanism and works with s9e TextFormatter
,[acronym]
and it doesn't work either).Last, I also look the Embed Plugin and Semantic Embed Plugin for CKEditor, much more powerful than the YouTube Plugin provided in CKEditor phpBB Plugin. Those plugins are based on the oEmbed convention and the Iframely providing this service. It's quite conflicting with the principle of Media Embed phpBB Plugin as this one is based on a list of websites configured inside phpBB itself.
TLDR; I don't know how to get those two plugins working together.
See also Media embed plugin - CKEditor 4 asking for the same thing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.