Giray Posted May 24, 2023 Posted May 24, 2023 I screwed up. I wanted to upload a new button and uploaded a new 'empty' CKE editor instead. It is now gone from my installation. Any idea how I revert back to the standard IPS CKE editor? Thx.
Solution Nathan Explosion Posted May 24, 2023 Solution Posted May 24, 2023 (edited) This post was recognized by Marc! Nathan Explosion was awarded the badge 'Helpful' and 5 points. By clicking the big button? Edited May 24, 2023 by Nathan Explosion Giray 1
Giray Posted May 24, 2023 Author Posted May 24, 2023 FYI, I was trying to add one of their plugins. I have not yet figured out how to do so.
Nathan Explosion Posted May 24, 2023 Posted May 24, 2023 You click the 'Add button' button and upload the zip file for the plugin. Which plugin is it you wish to use? (link)
Giray Posted May 24, 2023 Author Posted May 24, 2023 A few of my members wanted to play around with chat GPT. So I thought this one might be worth trying:https://ckeditor.com/cke4/addon/cowriter
Nathan Explosion Posted May 24, 2023 Posted May 24, 2023 (edited) Installs fine (but you'll likely not be able to use it immediately as it requires additional configuration elements to be put in place, which appear easy enough to put in place) Which button did you press on that page? 'Download' or 'Add to my editor' or 'Build my editor'? Edited May 24, 2023 by Nathan Explosion
Giray Posted May 24, 2023 Author Posted May 24, 2023 I believe I tried both, but I’m leaving the house right now and won’t be able to test again. As soon as I get back online I will and revert. Thanks so much for your help.
Nathan Explosion Posted May 24, 2023 Posted May 24, 2023 6 minutes ago, Giray said: I believe I tried both, You should only use use 'Download', as that does what it says on the tin...it downloads the plugin. The other options will add the plugin to an editor, and the resulting download is then the Editor itself. Not surprised if that caused your problems. Regarding this: 26 minutes ago, Nathan Explosion said: ...as it requires additional configuration elements to be put in place, which appear easy enough to put in place Edit your globalTemplate in your theme and after this entry: <title>{expression="output.getTitle( $title )"}</title> Add the following (replacing the obvious placeholders with your own information): <script> const OPENAI_KEY = 'YOUR-KEY' const OPENAI_ORG = 'org-YOUR-ORG-KEY' </script> Â Afrodude, Giray and abobader 2 1
Clover13 Posted May 24, 2023 Posted May 24, 2023 Speaking of CKEditor plugins, I wish that rotate picture one worked!
Giray Posted May 24, 2023 Author Posted May 24, 2023 So, I go to the plugin page, I download it. Because I'm on a Mac, it unzips it. That's fine, I zip it back up. I then go to the 'Add button' page in the Editor toolbar section on IPS and I upload the plugin (cowriter_0). The result is now an empty editor again. What am I doing wrong? 🥸 Just in case, I will try on my PC/W11
Giray Posted May 24, 2023 Author Posted May 24, 2023 (edited) Now when adding the plugin (ckeditor-cowriter-1.0.1.zip) I get: TypeError: closedir(): Argument #1 ($dir_handle) must be of type resource or null, string given (0) #0 /home/mysite/public_html/applications/core/modules/admin/editor/toolbar.php(531): closedir('/home/hamcomm/p...') #1 /home/mysite/public_html/system/Dispatcher/Controller.php(107): IPS\core\modules\admin\editor\_toolbar->addPlugin() #2 /home/mysite/public_html/applications/core/modules/admin/editor/toolbar.php(91): IPS\Dispatcher\_Controller->execute() #3 /home/mysite/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\admin\editor\_toolbar->execute() #4 /home/mysite/public_html/admin/index.php(13): IPS\_Dispatcher->run() #5 {main} Â Wait... maybe.... I think I might have fixed it. Going into template next. Edited May 24, 2023 by Giray
Recommended Posts