Marcel Posted August 28, 2018 Share Posted August 28, 2018 Hey, on my local machine I had some html in Source and it worked perfectly. I used the Export Profile Module and so Processwire is now on my server. I have access to it and it's all good. The page was displayed like on the local machine. But on the server I tryed to test the CKEditor like normal. But suddenly all the html code is gone in CKEditor>Source. But the website is displayed WITH the html which is weired. Local: CKEditor>Source> html is there Server: CKEditor>Source>html gone and does not accept any html. (and if I save new all the html on the website is gone) So the CKEditor on the server does not accept any html code. I try to save it and it does not save it. What is going on? Link to comment Share on other sites More sharing options...
Marcel Posted August 28, 2018 Author Share Posted August 28, 2018 Local backend: Use ACF is on yes. Either way if yes or no html code is accepted and works Server backend: Use ACF -> I switched to no and now it workes... Is that normal? Link to comment Share on other sites More sharing options...
szabesz Posted August 29, 2018 Share Posted August 29, 2018 Can you please provide screenshots and/or screengrabs (e.g. by using https://www.cockos.com/licecap/) ? Also, is HTML Purifier on or off? Link to comment Share on other sites More sharing options...
Marcel Posted August 29, 2018 Author Share Posted August 29, 2018 Hey, Screenshot 1: Backend Screenshot 2: Code snippet in Source Screenshot 3: Field>Fieldname>Use ACF Screenshot 4: Field>Fieldname>Extra allowed Content Link to comment Share on other sites More sharing options...
szabesz Posted August 29, 2018 Share Posted August 29, 2018 If you want to allow css classes, you need parentheses and not brackets. Are you sure you configured both sites the same (dev vs production)? Link to comment Share on other sites More sharing options...
Marcel Posted August 30, 2018 Author Share Posted August 30, 2018 I used the profile-export-module and when I accessed the website via server everything looked the same like on the dev system. But when I checked the source in CKEditor I noticed that all the code was gone. But all styles where displayed in the browser. I then saved the CKEditor (prod) of one page where I use styles in source. And then all styles where gone. The configurations where the same like on both systems. On the prod-system I switched Use ACF to No and suddenly the code in the prod-System CKEditor was saved. Where do I need to switch the brackets to parentheses? Link to comment Share on other sites More sharing options...
szabesz Posted August 31, 2018 Share Posted August 31, 2018 21 hours ago, Marcel said: Where do I need to switch the brackets to parentheses? I was referring to your last screenshot of Extra Allowed Content: img(*) instead of img[*] I have not used the site profile export feature for years, so I do not have recent experience. Maybe others use it more often than me. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now