Multiple bugs editing table content within the rich text mode in content editor for issue descriptions
Summary
The following bugs can be found when you add a table to the content editor and switch between markdown
and rich text
modes.
-
Cannot copy and paste labels (for example, ~group::runner
) inrich text
mode. It glitches and ends up being blank. If you switch back tomarkdown
, there is no label added. -
If there are existing labels in the table in markdown
mode, and you switch torich text
, then back tomarkdown
, the labels turn into numbers when editing (for example,~group::runner
turned into~11448658
). They still display the correct labels when saved. I couldn't get a video of this happening, but it did happen once when I tried copying and pasting a label inrich text
. -
Copying and pasting existing emoji + text in rich text
will add randomHTML
inmarkdown
. -
Switching between rich text
andmarkdown
will sometimes cause the whole table inmarkdown
to separate. See the video. This seemed to happen after I ran into all of the bugs above. -
Pasting a link in any cell in rich text
does not allow you to switch between the different URL display options we have (for example, showing the title with+
instead of the#
of issue or even adding the milestone and assignee with+s
inmarkdown
).
Steps to reproduce
- Create a table in an issue description.
- Follow the individual bugs added in
summary
section.
Example Project
What is the current bug behavior?
-
Cannot copy and paste labels (for example, ~group::runner
) inrich text
mode. It glitches and ends up being blank. If you switch back tomarkdown
, there is no label added. -
If there are existing labels in the table in markdown
mode, and you switch torich text
, then back tomarkdown
, the labels turn into numbers when editing (for example,~group::runner
turned into~11448658
). They still display the correct labels when saved. I couldn't get a video of this happening, but it did happen once when I tried copying and pasting a label inrich text
. -
Copying and pasting existing emoji + text in rich text
will add randomHTML
inmarkdown
. -
Switching between rich text
andmarkdown
will sometimes cause the whole table inmarkdown
to separate. See the video. This seemed to happen after I ran into all of the bugs above. -
Pasting a link in any cell in rich text
does not allow you to switch between the different URL display options we have (for example, showing the title with+
instead of the#
of issue or even adding the milestone and assignee with+s
inmarkdown
).
What is the expected correct behavior?
-
Should be able to copy and paste labels within table cells in rich text
. -
Switching between rich text
andmarkdown
modes should not change any content in tables in the editor. -
Pasting emojis should not add extra HTML
in tables. -
Should be able to select which display mode you want for URLS in rich text
mode.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Edited by Himanshu Kapoor