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

    Pressing Edit and my codes are disappears.

    avatar
    hub77
    New Member


    Posts : 17
    Reputation : 2
    Language : english

    Solved Pressing Edit and my codes are disappears.

    Post by hub77 July 30th 2014, 1:52 pm

    Hi, when i edit a post, my codes (color, code, spoiler, list... all of them) are disappears. Can i back to the old message box? Or can i fix this with a CSS Code?


    Last edited by hub77 on July 31st 2014, 10:04 am; edited 1 time in total (Reason for editing : Solved)
    Derri
    Derri
    Helper
    Helper


    Male Posts : 8711
    Reputation : 638
    Language : English & Basic French
    Location : Scotland, United Kingdom

    Solved Re: Pressing Edit and my codes are disappears.

    Post by Derri July 30th 2014, 2:10 pm

    The positioning of the tags seems to very important to the editor.

    For example this line:
    Code:
    [b][color=#7CBA2C]Your Name on the board:[/b][/color] Information here[/b]

    Causes the editor to react because the bold tags are seen as 'wrong' on the editor. The editor will try to correct this as it sees a fault but in fact it isn't a fault.

    If I corrected it so it looked like this:

    Code:
    [color=#7CBA2C][b]Your Name on the board:[/b][/color] Information here[/b]

    I get no problems

    So tag positioning is very important.

    Its the same if you tried to create a list like this

    Code:
    [List]

    [/list]

    Since it doesn't actually detect a list because it doesn't have this [*] then its seen as an error and will try and correct it but it usually just causes problems.

    Its not actually a bug. I've reported these issues and the technicians said that's how the editor is suppose to work. So we can't actually do anything.
    avatar
    hub77
    New Member


    Posts : 17
    Reputation : 2
    Language : english

    Solved Re: Pressing Edit and my codes are disappears.

    Post by hub77 July 30th 2014, 2:38 pm

    Yes its my problem. Ok than, thank you for answering.
    Derri
    Derri
    Helper
    Helper


    Male Posts : 8711
    Reputation : 638
    Language : English & Basic French
    Location : Scotland, United Kingdom

    Solved Re: Pressing Edit and my codes are disappears.

    Post by Derri July 30th 2014, 2:40 pm

    If you'd like you could PM me or post here the order the BBcode is put in and then I can see if we can see a way around fixing it.
    avatar
    hub77
    New Member


    Posts : 17
    Reputation : 2
    Language : english

    Solved Re: Pressing Edit and my codes are disappears.

    Post by hub77 July 30th 2014, 8:43 pm

    my problem is this:
    i write codes as i always do. when i click the edit button all codes go away. and this is just happening on my site.

    For Example:

    Code:
    [list][size=10][color=silver]Message[/color][/size][/list]

    Code:
    [list]A[/list]
    [list]B[/list]
    [list]C[/list]

    Pressing Edit and my codes are disappears. 111
    Pressing Edit and my codes are disappears. 210

    Pressing Edit and my codes are disappears. 1110
    Pressing Edit and my codes are disappears. 2210
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Pressing Edit and my codes are disappears.

    Post by SLGray July 30th 2014, 10:19 pm

    Are you using WYSIWYG mode?



    Pressing Edit and my codes are disappears. Slgray10

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


    Posts : 17
    Reputation : 2
    Language : english

    Solved Re: Pressing Edit and my codes are disappears.

    Post by hub77 July 30th 2014, 10:23 pm

    Doesn't matter. I open it, same again.
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Pressing Edit and my codes are disappears.

    Post by SLGray July 30th 2014, 10:38 pm

    Sorry, but that is how the editor is set up to work.  You will have to re-enter some BBCoding when you edit a post.



    Pressing Edit and my codes are disappears. Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Pressing Edit and my codes are disappears.

    Post by Ange Tuteur July 31st 2014, 12:28 am

    Hi hub77,

    Please try the following :
    Administration Panel > Modules > JavaScript Codes Management > Create a new script

    Title : Your choice
    Placement : In all the pages
    Paste the following code and submit :
    Code:
    $(function() {
     Â var a = $("#text_editor_textarea"), t;
     Â a.length && (t = a.val()) && $(function() {
     Â   a.sceditor && a.sceditor("instance") && a.sceditor("instance").val(t);
     Â });
    });

    This *should* stop corrections from the editor.
    avatar
    hub77
    New Member


    Posts : 17
    Reputation : 2
    Language : english

    Solved Re: Pressing Edit and my codes are disappears.

    Post by hub77 July 31st 2014, 8:28 am

    Thank you for code, it is solved.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Pressing Edit and my codes are disappears.

    Post by Ange Tuteur July 31st 2014, 11:15 am

    You're welcome

    Topic archived

    Have a good day. Smile

      Current date/time is November 11th 2024, 2:45 pm