The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

"Auto-correct" when editing post

View previous topic View next topic Go down

Solved "Auto-correct" when editing post

Post by Lauqe Rm on 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]

when revised, would somehow turn into
Code:
[center]ABCXYZ[/center]

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

Lauqe Rm
New Member

Posts : 6
Reputation : 1
Language : Vietnamese

http://gskvn.forumvi.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

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

Are you switching modes: normal and WYSIWYG?


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


SLGray
Administrator
Administrator

Male Posts : 35620
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by Lauqe Rm on 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.

Lauqe Rm
New Member

Posts : 6
Reputation : 1
Language : Vietnamese

http://gskvn.forumvi.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by SLGray on 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.


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


SLGray
Administrator
Administrator

Male Posts : 35620
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by Lauqe Rm on 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.

Lauqe Rm
New Member

Posts : 6
Reputation : 1
Language : Vietnamese

http://gskvn.forumvi.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by SLGray on 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?


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


SLGray
Administrator
Administrator

Male Posts : 35620
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by Lauqe Rm on 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]

Lauqe Rm
New Member

Posts : 6
Reputation : 1
Language : Vietnamese

http://gskvn.forumvi.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

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

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


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


SLGray
Administrator
Administrator

Male Posts : 35620
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by Lauqe Rm on 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?

Lauqe Rm
New Member

Posts : 6
Reputation : 1
Language : Vietnamese

http://gskvn.forumvi.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by An on 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.

http://help.forumotion.com/t135105-correct-the-formatting-of-the-new-editor-in-source-code-mode

An
Forumember

Posts : 42
Reputation : 23
Language : English

http://help.forumotion.com

Back to top Go down

Solved Re: "Auto-correct" when editing post

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

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

Lauqe Rm
New Member

Posts : 6
Reputation : 1
Language : Vietnamese

http://gskvn.forumvi.com/

Back to top Go down

Solved Re: "Auto-correct" when editing post

Post by APE on June 16th 2016, 2:02 pm

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





APE
Manager
Manager

Male Posts : 8309
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum