1

Topic: <center> tag not working with Editor Alignments

Hello there,
I am facing one issue related to HTML tags and i have added below code:

//
force_br_newlines: true,
            inline_styles: false,
            formats: {
                bold: { inline: 'b', exact: true },
                italic: { inline: 'i', exact: true },
                underline: { inline: 'u', exact: true },
                strikethrough: { inline: 'strike', exact: true }
            },
valid_elements: "b/strong,i/em,u/span,strike/span"
            + "a[accesskey|charset|class|coords|dir<ltr?rtl|href|id|lang"
      + "|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
      + "|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev"
      + "|shape<circle?default?poly?rect|style|tabindex|title|type],"
    + "blockquote[dir|style|cite|class|dir<ltr?rtl|id|onclick|ondblclick"
      + "|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
      + "|onmouseover|onmouseup|style|title],"
    + "br[class|id|style|title],"
    + "button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|name|onblur"
      + "|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown"
      + "|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type"
      + "|value],"
    + "div[align|class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
     + "h1[class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "h2[class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "h3[class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "h4[class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "h5[class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "h6[class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "hr[class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "img[alt|class|dir<ltr?rtl|height"
      + "|id|longdesc|onclick|ondblclick|onkeydown"
      + "|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
      + "|onmouseup|src|style|title|width],"
    + "li[class|dir<ltr?rtl|id|onclick|ondblclick|onkeydown|onkeypress|onkeyup"
      + "|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],"
    + "ol[class|dir<ltr?rtl|id|onclick|ondblclick|onkeydown"
      + "|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
      + "|onmouseup|style|title],"
    + "p[align|class|dir<ltr?rtl|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|style|title],"
    + "pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|onclick|ondblclick"
      + "|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout"
      + "|onmouseover|onmouseup|style|title],"
    + "select[class|dir<ltr?rtl|disabled<disabled|id|multiple<multiple|name"
      + "|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup"
      + "|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style"
      + "|tabindex|title],"
    + "small[class|dir<ltr?rtl|id|onclick|ondblclick|onkeydown|onkeypress"
      + "|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
      + "|title],"
    + "span[class|dir<ltr?rtl|id|onclick|ondblclick|onkeydown"
      + "|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
      + "|onmouseup|style|title],"
    + "style[dir<ltr?rtl|media|title|type],"
    + "sub[class|dir<ltr?rtl|id|onclick|ondblclick|onkeydown|onkeypress"
      + "|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
      + "|title],"
    + "sup[class|dir<ltr?rtl|id|onclick|ondblclick|onkeydown|onkeypress"
      + "|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
      + "|title],"
    + "table[border|cellpadding|cellspacing|class"
      + "|dir<ltr?rtl|frame|height|id|onclick|ondblclick|onkeydown|onkeypress"
      + "|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules"
      + "|style|summary|title|width],"
    + "td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class"
      + "|colspan|dir<ltr?rtl|headers|id|onclick"
      + "|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove"
      + "|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup"
      + "|style|title|valign<baseline?bottom?middle?top],"
    + "tr[abbr|align<center?char?justify?left?right|char|charoff|class"
      + "|rowspan|dir<ltr?rtl|id|onclick|ondblclick|onkeydown|onkeypress"
      + "|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style"
      + "|title|valign<baseline?bottom?middle?top],"
    + "ul[class|dir<ltr?rtl|id|onclick|ondblclick|onkeydown"
      + "|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover"
      + "|onmouseup|style|title]",
            // + "p[align<center?justify?left?right]",
            toolbar: "bold italic underline strikethrough"
//

but did not find any thing for <center> tag instead <p text-align:"center">.
Now, issue which i am facing is as below:

e.g:- I have pasted HTML code and there is a center tag like below line:
<center>Hello I am in center</center>

if above html is rendered then (Left, Right and Center alignment operation is not working. Its only works with <p> tag (paragraph)
e.g:-
<center><p>Hello</p></center>

Kindly help me on this that tiny mce editor alignments can work without <p> tags for <center> tag or let me know if any concern.

Thanks
Vikram