Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Based on help here ( Use of Javascript with Dojo/Dijit on a WordPress page) I got Dijit half way working using a custom template.

But, I still can't figure out why WP inserts breaks where it does. I'd like to keep as much of the page in the WP Page, and as little in the template as possible. Worst case, I guess I do it all in a template. Right now, I have the header in the template, and the form-stuff in the page.

Specifically, why doesn't Width and the textbox for Width show up on the same line (all browsers)?

What I typed in (I put it all one big long line to try to avoid the breaks):

<label for="controlWidth">Width:</label><input type="text" name="controlWidth" value="99" dojoType="dijit.form.TextBox" trim="true" id="controlWidth" propercase="false" style="width: 50px">

What WP puts out:

<p>        <label for="controlWidth">Width:</label><br />
<input type="text" name="controlWidth" value="99" dojoType="dijit.form.TextBox" trim="true" id="controlWidth" propercase="false" style="width: 50px">

Secondly, the ColorPalatte looke good in IE, but not FireFox 5 nor Chrome 12.

share|improve this question
add comment

1 Answer 1

It was a bug in wpautop() which treated <input> as a block element. It is fixed now. See ticket #16456.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.