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

Paralax Section Content Editor inserts html #31

Open
Sighter opened this issue Nov 16, 2018 · 2 comments
Open

Paralax Section Content Editor inserts html #31

Sighter opened this issue Nov 16, 2018 · 2 comments

Comments

@Sighter
Copy link

Sighter commented Nov 16, 2018

Hey,

I am using Shapely and do like it so far. Though there is bug for me.

The Paralax sections do have a editor for the content text. This editor has two tabs. One of them is a WYSIWYG-Editor and the other one is for inserting text and html code. I can insert text in both and on the first save everything is shown correctly. But when I leave the customizer for example, and navigate to the widget editor again, html was added to the content. Mostly linebreaks are added. Short said, the saved markup does not stay consistent over saves. Is there a possibility for me change this editor to an html editor somehow? ( I can write php and js) Or do you have other ideas?

I am using shapely 1.2.2 and the companion plugin is installed with version 1.2.3

Greets
Sascha

@Sighter
Copy link
Author

Sighter commented Nov 20, 2018

I think i found the problem. It is actually in the companion plugin. See here:

<?php echo wp_kses( nl2br( $instance['body_content'] ), $allowed_tags ); ?>

The nl2br function is used there, which if called repeatly, adds html
tags and keeps the new line.

Removing the call does it for me.

Cheers

@pulketo
Copy link

pulketo commented Apr 10, 2019

This has not been fixed yet... :(

@cristian-raiber cristian-raiber removed their assignment Oct 15, 2019
@mahendrapratap4022 mahendrapratap4022 transferred this issue from ColorlibHQ/shapely Jul 30, 2021
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

3 participants