1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

import bbcode

Discussion in 'Installation, Upgrade, and Import Support' started by ankurs, Aug 12, 2011.

  1. ankurs

    ankurs Well-Known Member

    source vb post

    PHP:
    [center]
    something
    [code]
    1
    2
    3
    4
    5
    [/code]
    [/
    center]
    becomes something like below

    PHP:
    [center]something[/center]
    [
    code]
    [
    center]1[/center]
    [
    center]2[/center]
    [
    center]3[/center]
    [
    center]4[/center]
    [
    center]5[/center][/code]
    this messes up the alignment in code data to centre, anyway to fix this ?
     
  2. yavuz

    yavuz Well-Known Member

    This came up several times, even had reported as a bug but was marked as a "Editor" problem (TinyMCE)

    I'm also waiting someone to come up with a solution for this.
     
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Try disabling the rich editor in your user prefs:

    http://xenforo.com/community/account/preferences
    > Use the rich text editor to create and edit messages

    The rich editor hijacks the formatting and BB code. The code may be correct in the post, but when you edit it using the rich editor it gets messy. I have lots of manually formatted posts that I can't edit using the rich editor because it will mess up the code.
     
  4. ankurs

    ankurs Well-Known Member

    how to make data inside
    Code:
     1
    2
    3
    
    by default to left align ?
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Don't wrap the code block in center tags if you don't want it to be centered.
     

Share This Page