Jump to content

Include my own HTML code


Lemoratoire
 Share

Recommended Posts

Hi guys, 
For a school work, I need to be able to write my own HTML code in the editor, but when it comes to "complexe" code such as a .DIV or a SRC, the "source" page doesn't recognize it. 

So my question is the following: Is there a possiblity for me to enable the fact that I could work on a page by using my own html, without touching the .php doc?

Link to comment
Share on other sites

The CKEditor of Processwire allows for using your own html tags. You just have to go to settings in the field where you are using the CKEditor and add your tags there.  You can find many posts in the forum showing how to do that.

Link to comment
Share on other sites

Hi @Lemoratoire, welcome to the forums.

You need to change the field settings. So, go to /setup/field/ find the Body field and on the Input tab change you can add some tags to the "Extra allowed content'" field or, for a full control of what HTML tags you can use, you'll need to disable the "ACF" and the "Use HTML Purifier" options. But beware that this opens a security risk if someone else is entering code beside yourself.

  • Like 1
Link to comment
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
 Share

×
×
  • Create New...