Jump to content

Recommended Posts

Posted

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?

Posted

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? 

Posted

Hey,

Screenshot 1: Backend

Screenshot 2: Code snippet in Source

Screenshot 3: Field>Fieldname>Use ACF

Screenshot 4: Field>Fieldname>Extra allowed Content

scrshot1.JPG

scrshot2.JPG

scrshot3.JPG

scrshot4.JPG

Posted

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)?

Posted

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?

 

Posted
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.

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.
×
×
  • Create New...