Jump to content

Recommended Posts

I've updated PW to 2.5 and had installed CKEditor before. Module is 1.1.9 and editor is 4.4.2.

Now I have major problems using CKEditor. How can I deinstall the old module in my sites folder? Or do I have to update "InputfieldCKEditor" in my sites folder?

Share this post


Link to post
Share on other sites

ProcessWire should have detected and given you a message about deleting the old one in your sites folder. Did you see those instructions on updating PW to 2.5? You are better off uninstalling your 'old' CKEditor (the one in your /site/modules/). The one in wire (the default that now ships with PW) will work just fine.

Share this post


Link to post
Share on other sites

Sorry, for the delay and thanks for your help. I haven't done the update myself, thus not seen that message. I have now copied my settings and changes of CKEditor to the one in my wire folder. Had to click on the refresh button before everything works fine, but now it is :-) Most of the problems are gone with the new version. But two are still present in this release. Anyhow, that's nothing for PW this comes from CKEditor.

  • Like 1

Share this post


Link to post
Share on other sites

Settings for the CKeditor in the wire folder should actually be put in the inputfieldCKeditor directory in the site/modules folder, so they do not get overwritten by Wire updates. That also includes any additional plugins you might install.

  • Like 4

Share this post


Link to post
Share on other sites

@Suntrop,

Just to echo what Joss has said and I realise my post above was probably ambiguous....

CKEditor the module is a core module and lives in /wire/modules/Inputfield/InputfieldCKEditor/ - Don't touch this :-)

However, custom settings should be done/placed in /site/modules/InputfieldCKEditor/. Here you will find the following files + folder

  1. README.txt
  2. mystyles.js
  3. config-body.js
  4. config.js
  5. plugins
  6. contents-inline.css
  7. contents.css

Read the contents of those files + see these guides for how to customise your CKEditor

https://processwire.com/blog/posts/august-2014-core-updates-2/#upgrades-to-ckeditor

https://github.com/ryancramerdesign/ProcessWire/tree/dev/site-default/modules/InputfieldCKEditor

http://www.flamingruby.com/blog/processwire-weekly-13/#1-1

http://www.flamingruby.com/blog/processwire-weekly-13/#1-2

  • Like 3

Share this post


Link to post
Share on other sites

Hmm I definitely need to be able to do this globally somewhere. Ive read the docs but everything points to site specific, is anyone using multi-site where they need all their ckeditor instances to be basically teh same from site to site to site?

Here's a brief rundown...

1. we as mentioned are using a multi-site setup and will have likely eventually 100 sites using the processwire core files

2. each site will have many ckeditor instances (ie. different editable areas of the site), easily 10+ in total in order to allow an end user access to modify their website content so customizing each 1 individually and for 100 sites is a no go unfortunately. Basically when we get a new website we will be doing some basic config items (ie. dbase connections and we have a config file page as well and copy and paste a known good site so all the files etc we would need). If we had to go into each editor instance and do up things like extra allowed content or showing all the toolbar options we need we'd increase our setup time significantly which isnt an option unfortunately. Not to mention if we decide we need modifications down the road to any ckeditor items so these types of things have to be global in nature where each site points to 1 area and we can update their accordingly.

Is there no way to have for instance 1 ckeditor config file that many sites can point to? All our sites are in the same Cpanel account with 1 master domain (it contains the processwire core codebase - wire) so each site can include files via the file system as they are technically local to each other, not on remote servers etc.

Im sure I might be missing something here but having to edit each and every instance of a ckeditor field would be insane for our staff to handle.

I'm hoping there is some sort of work around. Im not looking to hack the core by any means, I get that, but our past cms we used this global/central approach was a key item and easy to implement.

Thanks again

Share this post


Link to post
Share on other sites

Thanks Joss and kongondo! I am just about to make some additions to the editor in contents-inline.css and the config file. I'll copy those files to my sites folder later.

Great to be in the PW community :-)

@Chris Have you thought of using a symbolic link?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By prestoav
      Hi all and thanks for the great work on PW!

      One thing I find I have to do on any new site is add the Justify plugin to textarea fields as it is such a widely required feature for text headings in content.

      ANy chance this could be added to the core an automatically be installed on new textarea fields using CKEditor?

      Thank you!
    • By AndréPortuga
      Does anyone knows if there is a way of selecting a iframe inside a textfield(using ckEditor)? 
      I mean I have a Iframe with this code:
      <iframe allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" frameborder="0" height="315" scrolling="no" src="https://www.youtube.com/embed/PMaFJjZDrYM" width="100%"></iframe></p>
       
      but it's not getting responsive in iPhones.. So anyone know how can I select it via code for making it responsive?
       
      Thank you,
    • By dragan
      On one particular site, CKEditor behaves rather weird:
      When I copy and paste "normally", i.e. CTRL + V, there is an alert popping up "do you really want to leave this page?". If you cancel, the text is pasted into the field. If not, you get redirected to the frontend of the page you just edited, and the changes are lost.
      The "paste from Word" button doesn't work. CTRL + SHIFT + V works, but all formatting is lost (apart from paragraphs).
      I'm using inline editor mode, ACF + Purifier are activated. I know that if I disable those two, CTRL + V works, but I won't do that, since CKE then saves all the garbage code from MS-Office.
      Has anyone ever come across this issue? I tried with Chrome + FF. No JS errors.
    • By alanxptm
      Hi, I have already tried in different ways and many times to migrate but I always have issues at the end.
      Here's what I have done so far:
       
      case 1:
      1. Install PW on live server (all normal)
      2. Import local DB into live DB
      3. Front page site seems to work but I cannot login into admin page
      case 2 (I'm currently on this stage):
      1. Copied all files from local to live server
      2. Import local DB into live empty DB
      3. Front page works, but any other page and admin page are 404
       
      In both cases:
      - I have changed config.php info accordingly to live server (DB name, DB user and pwd, userauthsalt code)
      - Uncommented RewriteBase / and RewriteBase /pw/ lines on .htaccess
      - applied owner and group permissions to www-data for PW location
      - applied permissions to folders and files accordingly
      - applied a2enmod rewrite to apache2 on live server and restarted service
       
      I have read some posts (Ryan's too) about migration and it seems to me that I'm doing it fine, don't know what it fails-
      I'm on VMWare machine, Ubuntu Server 18.04, php 7.2, phpMyAdmin 5.0.1
      Hope you can help me, thanks in advance
    • By AndZyk
      Hello,
      I am currently building a intranet which will be hosted on the local network of a company. This intranet has many links to files on their fileserver with the protocol file://.
      So for example the links look like this file://domain.tld/filename.ext
      When I try to insert such a link into a URL field, I get the error, that only the protocol http:// is allowed. When I try to insert such a link into a CKEeditor link, it gets stripped out. Is it possible to insert such links into the FieldType URL and CKEditor.
      I know that I could use a FieldType Text or insert a RewriteRule in the .htaccess file, but I am looking for a more elegant solution. 😉
      Regards, Andreas
×
×
  • Create New...