Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prolem when create page from fuel admin page #601

Open
sontq opened this issue Dec 9, 2022 · 15 comments
Open

Prolem when create page from fuel admin page #601

sontq opened this issue Dec 9, 2022 · 15 comments

Comments

@sontq
Copy link

sontq commented Dec 9, 2022

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

@daylightstudio
Copy link
Owner

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.

@sontq
Copy link
Author

sontq commented Dec 11, 2022

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

@daylightstudio
Copy link
Owner

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

@sontq
Copy link
Author

sontq commented Dec 12, 2022

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.

@daylightstudio
Copy link
Owner

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

@sontq
Copy link
Author

sontq commented Dec 13, 2022

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

@daylightstudio
Copy link
Owner

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?

@sontq
Copy link
Author

sontq commented Dec 13, 2022

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.

@daylightstudio
Copy link
Owner

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

@sontq
Copy link
Author

sontq commented Dec 13, 2022

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

@daylightstudio
Copy link
Owner

Try using the add code button:
image

@sontq
Copy link
Author

sontq commented Dec 13, 2022

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

@sontq
Copy link
Author

sontq commented Dec 13, 2022

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

@daylightstudio
Copy link
Owner

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';

@sontq
Copy link
Author

sontq commented Dec 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants