Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.



In the above example, using the google chrome web browser, while in visual mode in the post editor, highlight shortcode 1 by triple-clicking and click the delete key to remove it (remove the entire shortcode 1 element, open and close tags).

Now, click over to the "Text" view of the editor. The resulting html is:

<span style="line-height: 1.5em;">[shortcode2]</span>[/shortcode2]

I should also mention that I have an editor-style.css file which contains the following css rules:

@charset 'utf-8';
html .mceContentBody{max-width: 550px;}
    color: #555;
    font-family:'Calibri', Helvetica, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    vertical-align: baseline;

I believe the editor is picking up the line-height:1.5em from the editor-style.css , but why?

Update: I'm using Google Chrome Version 26.0.1410.65

share|improve this question
"I believe the editor is picking up the line-height:1.5em from the editor-style.css"-- if you change the value in the stylesheet does the editor "pick up" a different value? – s_ha_dum Apr 20 '13 at 4:10
Yes, that's exactly what's happening. – Scott B Apr 20 '13 at 10:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.