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

Editor: HTML code inside shortcodes does not show up in the Visual editor #329

Closed
designsimply opened this issue Nov 20, 2015 · 2 comments
Closed
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Normal Schedule for the next available opportuinity. [Type] Bug
Milestone

Comments

@designsimply
Copy link
Contributor

The editor appears to interpret html inside shortcodes when it shouldn't.

Example shortcode:

[wpcomideas tags='242' status='open' limit='25' before='
<ul style="list-style-type: none;">' after='</ul>']

In the Visual tab, you cannot see <ul> markup:

screen shot 2015-11-14 at sat nov 14 5 15 46 am

Here's how the same shortcode looks in the HTML tab:

screen shot 2015-11-14 at sat nov 14 5 21 36 am

From kriskarkoski

WP Admin doesn't seem to handle it any better.

@designsimply designsimply added [Type] Bug [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Normal Schedule for the next available opportuinity. labels Nov 20, 2015
@designsimply designsimply added this to the Editor: Next milestone Nov 20, 2015
@lancewillett lancewillett changed the title Editor: html inside shortcodes does not show up in the Visual editor Editor: HTML code inside shortcodes does not show up in the Visual editor Oct 18, 2016
@designsimply
Copy link
Contributor Author

Steps to reproduce:

  1. Go to My Sites > Blog Posts > Add.
  2. Switch to HTML mode.
  3. Add any shortcode which contains HTML.
  4. Switch to Visual mode.

Result: I expected the HTML to look the same in both HTML and Visual but the HTML is interpreted in Visual even though it's inside a shortcode.

Sample code:

[quiz]
[question]<ul style="list-style-type: disc;"><li>Insert Question here</li></ul>[/question]
[/quiz]

Another sample shortcode:

[wpcomideas tags='242' status='open' limit='25' before='
<ul style="list-style-type: none;">' after='</ul>']

HTML mode:

screen shot 2017-12-20 at wed dec 20 4 14 50 pm

Seen at https://wordpress.com/post/design5279.wordpress.com/11657 using Firefox 57.0.1 on macOS 10.13.2.

Visual mode:

screen shot 2017-12-20 at wed dec 20 4 14 55 pm

Seen at https://wordpress.com/post/design5279.wordpress.com/11657 using Firefox 57.0.1 on macOS 10.13.2.

@designsimply
Copy link
Contributor Author

designsimply commented Dec 20, 2017

#bug-scrub #pre-gutenburg-bug-purge

Closing due to inactivity and because it is a minor issue. Please re-open if it comes up again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Normal Schedule for the next available opportuinity. [Type] Bug
Projects
None yet
Development

No branches or pull requests

1 participant