"Auto-correct" when editing post Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
4 posters

    "Auto-correct" when editing post

    Lauqe Rm
    Lauqe Rm
    New Member


    Posts : 6
    Reputation : 1
    Language : Vietnamese

    Solved "Auto-correct" when editing post

    Post by Lauqe Rm June 15th 2016, 2:02 am

    This is my forum: http://gskvn.forumvi.com/
    Somehow I have been encountering a weird problem: A simple formatted post can be ruined by simply clicking on "Edit". A formatted text as basic as
    Code:
    [size=24][color=#FF0000][center]ABCXYZ[/center][/color][/size]
    "Auto-correct" when editing post Yy3QD6I0
    when revised, would somehow turn into
    Code:
    [center]ABCXYZ[/center]
    "Auto-correct" when editing post C8j7A34b
    This problem is annoying, because our users are forced to hesitate whenever they want to edit a formatted post. The problem quickly went from annoying to pure destructive in long and complex post, which has been greatly hindering our effort.
    I haven't use any custom script in my forum yet.
    As a result, I would like to know whether this problem is about Forumotion or SCEditor or something else? And how it could be solved?
    Any help would be appreciated.


    Last edited by Lauqe Rm on June 16th 2016, 1:53 pm; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51514
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Auto-correct" when editing post

    Post by SLGray June 15th 2016, 2:24 am

    Are you switching modes: normal and WYSIWYG?



    "Auto-correct" when editing post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Lauqe Rm
    Lauqe Rm
    New Member


    Posts : 6
    Reputation : 1
    Language : Vietnamese

    Solved Re: "Auto-correct" when editing post

    Post by Lauqe Rm June 15th 2016, 2:58 am

    No I'm not, I keep using normal mode all the time.
    -----
    Besides when I write my post in normal mode and press switch button, that problem happend too.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51514
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Auto-correct" when editing post

    Post by SLGray June 15th 2016, 5:56 am

    Are you manually adding the BBCode or using the buttons in the editor?  Does this happen in all browsers?

    It does look like you are switching the modes, because switching them will remove some formatting.



    "Auto-correct" when editing post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Lauqe Rm
    Lauqe Rm
    New Member


    Posts : 6
    Reputation : 1
    Language : Vietnamese

    Solved Re: "Auto-correct" when editing post

    Post by Lauqe Rm June 15th 2016, 6:07 am

    The problem happend either when I use the button or manually write the code myself.
    All I do is write the post, posting it, and when I press the edit button everything is gone.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51514
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Auto-correct" when editing post

    Post by SLGray June 15th 2016, 8:35 pm

    Do you have the WYSIWYG mode set to default?  If you do, do you switch to normal mode before posting a post or editing a post?



    "Auto-correct" when editing post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Lauqe Rm
    Lauqe Rm
    New Member


    Posts : 6
    Reputation : 1
    Language : Vietnamese

    Solved Re: "Auto-correct" when editing post

    Post by Lauqe Rm June 16th 2016, 3:09 am

    No, the default mode in the editor is normal mode. And when I post or edit a post its mode is normal mode, too.
    ----------
    I have try another type of format, and I figured out that the problem only happend when "center" tag is inside another tag. For example:
    Code:
    [b][size=18][color=#ff0000][center]abcdee[/center][/color][/size][/b]
    This will cause the problem to happend, which remove all tags and only the center tag is left.
    Code:
    [center]abcdee[/center]
    but if I move the center tag outside other tags, it will work normally in both mode, and no problem happend when I switch editor mode when write the post
    Code:
    [center][b][size=18][color=#ff0000]abcdee[/color][/size][/b][/center]
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51514
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Auto-correct" when editing post

    Post by SLGray June 16th 2016, 3:40 am

    I just remembered that it does matter the order of the BBCode tags.



    "Auto-correct" when editing post Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Lauqe Rm
    Lauqe Rm
    New Member


    Posts : 6
    Reputation : 1
    Language : Vietnamese

    Solved Re: "Auto-correct" when editing post

    Post by Lauqe Rm June 16th 2016, 10:34 am

    Yeah... But it seems that this forum dont have this problem at all, its display normally no matter what order I use, is there a difference in the two forums?
    Is there a solution at the "universal" level, that does not involve making every user remember the correct order of tags?
    An
    An
    Forumember


    Posts : 44
    Reputation : 24
    Language : English

    Solved Re: "Auto-correct" when editing post

    Post by An June 16th 2016, 12:25 pm

    The reason this occurs is because the SCEditor is attempting to correct your tag placement. The color and size tags are inline elements, and the center tag is a block-level element. Inline elements cannot contain block-level elements, hence the hackish correction. I'd recommend installing the following script from the tutorial below on your forum to override these corrections, because they're more bothersome than helpful.

    https://help.forumotion.com/t135105-correct-the-formatting-of-the-new-editor-in-source-code-mode
    Lauqe Rm
    Lauqe Rm
    New Member


    Posts : 6
    Reputation : 1
    Language : Vietnamese

    Solved Re: "Auto-correct" when editing post

    Post by Lauqe Rm June 16th 2016, 1:52 pm

    That is exactly what I needed. Thank you very much!
    My problem is solved.
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19357
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: "Auto-correct" when editing post

    Post by Ape June 16th 2016, 2:02 pm

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    "Auto-correct" when editing post Left1212"Auto-correct" when editing post Center11"Auto-correct" when editing post Right112
    "Auto-correct" when editing post Ape_b110
    "Auto-correct" when editing post Ape1010