This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

p.caruso8613739
p.caruso8613739

I can insert text, markdown and {% %} but as soon as an html tag

es. a div

is in the editor (page, layout, content, partial is the same) the save button wont give the green alert (just stops spinning after a while) and nothing is saved.

Last updated

loicbellemare16703
loicbellemare16703

Same here! Everything works except the tag. I get a modal with the code of the 403 page. If I check the network tab in Chrome, I get a 403 error.

This is the data that is sent : fileName:test3.htm settings[description]:main theme markup:

test

code: formWidgetAlias:formLayoutb64ef766d9dbd4d2558a77549039b3ad5761f8bc51c54 templateType:layout templatePath:test3.htm theme:demo templateMtime:1465837630 templateForceSave:0

loicbellemare16703
loicbellemare16703

I also have the problem when using inline css : style="background-image: url(storage\photo-1419041082630-1e98debd0a6a.jpg)"

Crazymodder
Crazymodder

Do you add this inline css to normal html part of you template?

loicbellemare16703
loicbellemare16703

Yes it's in a normal div tag. I tested more and it seems to only be a problem with certain CSS attributes or HTML tags. I tried in Chrome, Edge and Firefox and they all had the same problem.

Here is a link with the picture of what works and what fails : !(https://1drv.ms/f/s!AohbiZbX_aR5l-8QPCurT3kA1Pn-8g)[https://1drv.ms/f/s!AohbiZbX_aR5l-8QPCurT3kA1Pn-8g]

This works :

<div>
    Hello World!
<div>
<div style="color: #fff">
    Hello World!
<div>
<div style="background-color: #fff">
    Hello World!
<div>
<div style="color: #fff">
    Hello World!
<div>
<!-- Notice the missing "b" in the next exemple -->
<div style="ackground-image: url(test/test.png)">
    Hello World!
<div>

But this doesn't work (save) :

<div style="background-image: url(test/test.png)">
    Hello World!
<div>
<div style="background-image: test">
    Hello World!
<div>
<html>

<html>

Last updated

loicbellemare16703
loicbellemare16703

Little precision : I tested each div individually

loicbellemare16703
loicbellemare16703

Another precision: I transferred the website on my local machine (Windows) and it works perfectly! The problem seems to only be on my server (shared host - https://funio.com/en/).

Eoler
Eoler

loicbellemare16703 said: Another precision: I transferred the website on my local machine (Windows) and it works perfectly! The problem seems to only be on my server (shared host - https://funio.com/en/).

"403 forbidden" on a shared host is usually sign of too restrictive ModSecurity rules. Talk to your host...

1-8 of 8

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.