FUEL-CMS icon indicating copy to clipboard operation
FUEL-CMS copied to clipboard

Prolem when create page from fuel admin page

Open sontq opened this issue 2 years ago • 15 comments

Dear team,

Please help me, when i create page from fuel admin (lastest version) successfull. But, after view page body content have remove some html tag (input tag, button tag, i tag html icon...). How to create page content include input tag, button tag, i tag html icon ... from admin page ?

Thanks team

sontq avatar Dec 09 '22 07:12 sontq

That sounds like something that the HTML purifier may be stripping out as a default security setting. Try changing the fuel/application/config/purifier.php by updating the HTML.allowed to include the tags you need to enter in.

daylightstudio avatar Dec 09 '22 14:12 daylightstudio

That sounds like something that the HTML purifier may be stripping out as a default security setting. Try changing the fuel/application/config/purifier.php by updating the HTML.allowed to include the tags you need to enter in.

I changed config HTML.allowed but HTML purifier not support input tag, div tag data attribute. And html font awesome still removed (). Please help me check.

Thanks team

sontq avatar Dec 11 '22 02:12 sontq

There is an "enabled" parameter in the fuel/application/config/purifier.php that you can set to FALSE.

daylightstudio avatar Dec 12 '22 15:12 daylightstudio

There is an "enabled" parameter in the fuel/application/config/purifier.php that you can set to FALSE.

Dear team,

I have disable purifier but html tag i not content inside ( icon css fontawesome ) still removed.

sontq avatar Dec 12 '22 19:12 sontq

What is the HTML code you are trying to put in your page?

daylightstudio avatar Dec 12 '22 19:12 daylightstudio

I use html icon font awaresome at here https://fontawesome.com/v4/icons/

sontq avatar Dec 13 '22 00:12 sontq

Right, but what is the code you are entering in the Pages module that is getting stripped out... and is it in the "Body" field or some other template field?

daylightstudio avatar Dec 13 '22 01:12 daylightstudio

Screenshot Here, I put html code in body field. I disable purifier but html tag i (red rectangle in screenshot) still removed after save page.

sontq avatar Dec 13 '22 05:12 sontq

I'm having a hard time replicating that problem. Can you paste in the text you are using in the screenshot here?

daylightstudio avatar Dec 13 '22 15:12 daylightstudio

test.txt Please help me check content in test.txt file. I can't send content from git editor because git remove html tag in content.

Thanks

sontq avatar Dec 13 '22 16:12 sontq

Try using the add code button: image

daylightstudio avatar Dec 13 '22 16:12 daylightstudio

I can't see button in tool bar. But i use source mode parse html code. Please check screenshot Screenshot

sontq avatar Dec 13 '22 16:12 sontq

Hi this is html code <i class="fa fa-download"></i>

sontq avatar Dec 13 '22 16:12 sontq

Can you send all the text you have in that body field? It may be CKEditor stripping things out. You can test by changing the text_editor config value in fuel/application/config/MY_fuel.php to the following to see if that is the problem:

$config['text_editor'] = 'markitup';

daylightstudio avatar Dec 13 '22 16:12 daylightstudio

Can you send all the text you have in that body field? It may be CKEditor stripping things out. You can test by changing the text_editor config value in fuel/application/config/MY_fuel.php to the following to see if that is the problem:

$config['text_editor'] = 'markitup';

Hi team,

I try change config editor to markitup and every ok.

Thanks a lot.

sontq avatar Dec 13 '22 16:12 sontq