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.

Bug in table when posting body and switching editor mode

3 posters

Go down

In progress Bug in table when posting body and switching editor mode

Post by zims July 2nd 2020, 7:05 am

When switching the editor mode, It seems like add more new line in the editor, this post is the example:






here is the step by step screenshot at how this happen:
1.)insert the table :Bug in table when posting body and switching editor mode 111
Bug in table when posting body and switching editor mode 211
2.change to BBcode mode
Bug in table when posting body and switching editor mode 310
3.Change back
Bug in table when posting body and switching editor mode 410
Now,you have a lot of unnecessary blank space need to edited out and remove by hand. If this changing a lot there will create more a lot blank space.

I think this bug is cause by the space here when switching the editor mode:
Bug in table when posting body and switching editor mode 510
zims
zims
Forumember

Posts : 52
Reputation : 2
Language : 繁體中文

http://testing123.forumotion.asia/

Back to top Go down

In progress Re: Bug in table when posting body and switching editor mode

Post by tikky July 2nd 2020, 8:11 am

Hey @zims,

As far as I'm know this is not a "bug" from Forumotion and yes by SCEditor so there is no current solution, there is a kind of shortcut that was created to remove spaces but the forums Forumotion don't have. One trick you can use to fix it is to create a class to remove all line breaks:
in CSS
Code:
.table-nobr br {
  display: none;
}

in table
Code:
[table class="table-nobr"][tr][td][/td][/tr][/table]

see that the CSS code can be improved is just an idea
tikky
tikky
Forumember

Posts : 923
Reputation : 160
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

In progress Re: Bug in table when posting body and switching editor mode

Post by zims July 2nd 2020, 10:25 am

pedxz wrote:Hey @zims,

As far as I'm know this is not a "bug" from Forumotion and yes by SCEditor so there is no current solution, there is a kind of shortcut that was created to remove spaces but the forums Forumotion don't have. One trick you can use to fix it is to create a class to remove all line breaks:
in CSS
Code:
.table-nobr br {
  display: none;
}

in table
Code:
[table class="table-nobr"][tr][td][/td][/tr][/table]

see that the CSS code can be improved is just an idea

I'm quite sure it's a bug, and not related with SCEditor .
here is the website for SCEditor and github for it:
https://github.com/samclarke/SCEditor
https://www.sceditor.com/
they don't seem like having any problem, as showed by the image below, and you can try it your self:
Bug in table when posting body and switching editor mode A110
Bug in table when posting body and switching editor mode A210
Bug in table when posting body and switching editor mode A310

The css is a work around, however, telling every members to compromise and change their posting steps for a bug that not supposed to happen do not make sense for me.

I'm more inclined to believe that the way this happen is when customizing the SCE editor, Forumotion decide to add an Enter to make it look better when reading BBcode, but overlook this may happen.
zims
zims
Forumember

Posts : 52
Reputation : 2
Language : 繁體中文

http://testing123.forumotion.asia/

Back to top Go down

In progress Re: Bug in table when posting body and switching editor mode

Post by tikky July 2nd 2020, 10:45 am

I'm quite sure it's a bug, and not related with SCEditor
https://github.com/samclarke/SCEditor/issues/356
https://github.com/samclarke/SCEditor/issues/294

So:
If the <br> is the last child of a block and the previous sibling is inline, then the <br> will be collapsed in all browsers except from IE < 11. In order for the new line to show there needs to be two <br> elements.

The code to do this is already in the editor so adding an option to enable it for all blocks shouldn't be too difficult.


You're right, it should really have consistent behaviour. I'm just not sure which, if any, should be the default.

Maybe the best solution is to have an option like CKEditor so you can choose between the default browser behaviour, newlines or blocks. It shouldn't be too difficult implement or increase the code size as the code to do it's already there.


they don't seem like having any problem, as showed by the image below, and you can try it your self:
Possibly there was some update to fix this
tikky
tikky
Forumember

Posts : 923
Reputation : 160
Language : 🇵🇹

https://www.forumotion.com/create-forum/modernbb

Back to top Go down

In progress Re: Bug in table when posting body and switching editor mode

Post by zims July 2nd 2020, 11:00 am

For now Forumotion don't seems to have these 2 problem:
It only happen when table is involve....

Possibly there was some update to fix this
However, I think we can agree that this is an issues that need to be solved and already have solution lying around.
zims
zims
Forumember

Posts : 52
Reputation : 2
Language : 繁體中文

http://testing123.forumotion.asia/

Back to top Go down

In progress Re: Bug in table when posting body and switching editor mode

Post by SLGray July 2nd 2020, 10:40 pm

This is a known issue that has been here since we started using this editor.

There is a topic somewhere that has a code that fixes the formatting of the editor.  I will try to locate it for you.

Try This:  https://help.forumotion.com/t135105-correct-the-formatting-of-the-new-editor-in-source-code-mode#909385


Bug in table when posting body and switching editor mode Slgray10

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

Male Posts : 51576
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Bug in table when posting body and switching editor mode

Post by zims July 3rd 2020, 7:04 am

SLGray wrote:This is a known issue that has been here since we started using this editor.

There is a topic somewhere that has a code that fixes the formatting of the editor.  I will try to locate it for you.

Try This:  https://help.forumotion.com/t135105-correct-the-formatting-of-the-new-editor-in-source-code-mode#909385

Tried, seems like not work for ModernBB.
Or, I'm doing it wrong some where.
Bug in table when posting body and switching editor mode 1210
zims
zims
Forumember

Posts : 52
Reputation : 2
Language : 繁體中文

http://testing123.forumotion.asia/

Back to top Go down

Back to top

- Similar topics

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