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.
The forum of the forums
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 Wed 15 Jun - 2:02

    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 Thu 16 Jun - 13:53; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: "Auto-correct" when editing post

    Post by SLGray Wed 15 Jun - 2:24

    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 Wed 15 Jun - 2:58

    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 : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Auto-correct" when editing post

    Post by SLGray Wed 15 Jun - 5:56

    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 Wed 15 Jun - 6:07

    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 : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Auto-correct" when editing post

    Post by SLGray Wed 15 Jun - 20:35

    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 Thu 16 Jun - 3:09

    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 : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: "Auto-correct" when editing post

    Post by SLGray Thu 16 Jun - 3:40

    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 Thu 16 Jun - 10:34

    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 Thu 16 Jun - 12:25

    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 Thu 16 Jun - 13:52

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


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

    Solved Re: "Auto-correct" when editing post

    Post by Ape Thu 16 Jun - 14:02

    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

      Current date/time is Mon 23 Sep - 0:27