180

TL;DR: We are testing our new open source Stacks editor that offers both Markdown and rich text input options. If you’re interested in testing it out and giving us feedback, you can opt in by visiting your preferences page and enabling the Stacks Editor. You can opt out at any time but it will take up to 10 minutes to revert to the old editor. Note, the new editor will only be active when drafting or editing answers on MSE or MSO during the alpha test.


About six months ago, our product teams and Community team began exploring whether we could bring to our public sites the Stacks rich text post editor that launched on Stack Overflow for Teams (or Teams) over the summer. We’ve been spending that time discussing the needs internally and also talking with some of our most highly-engaged users about the new editor - our Moderators and members of the Charcoal group - to understand what might need to change or be included to make using the new editor an easy change-over from the old editor.

Through this process, we’ve received dozens of answers with ideas for improvements, bugs that needed to be squashed, and UX confusion that needed to be ironed out. We’ve addressed many of the concerns these two groups mentioned and are ready to bring it to the larger community through an opt-in alpha test on MSE and MSO. We are asking for your constructive feedback to see where there’s room for improvement to make it into a tool both people who are comfortable with Markdown and those who may be more comfortable with rich text can use successfully.

Here's what the two views look like - you can click to view a larger image:

Screenshot of the new editor window in Markdown mode with the text of this post input the text is monospaced and the Markdown in the post is visible, though sections in bold appear bold Screenshot of the new editor window in rich text mode with the text of this post input. The post is in Arial with bold and headers and horizontal rules being visible rather than the Markdown.

The test

The goal of this alpha test is to get an initial understanding of how well this new editor would be received and to also discover any concerns that would break workflows for users who like the current editor or prefer to work in Markdown. We also want to consider users who may not be familiar with Markdown, too, as they make up many of the users on our non-technical sites. This is the first public phase in a process where we hope to fully test and refine the editor so that, when it launches network-wide, people will find it easy to use and to be a major improvement over the current editor.

We understand that rich text entry is a difficult thing to get right and realize that it may take several months to find the right solutions before we can make this live network-wide - and that comes with the understanding that there may be unsurmountable issues - but we feel that working through this process with y’all will, at minimum, help improve the new editor experience on Teams and may end up with a great new editor for everyone to use.

This is part of a multi-part test that will look something like this:

  • Initial release on Teams with feedback from highly-engaged users (e.g. Moderators) (Completed Summer 2020). The goal of this was to get feedback and get a good idea of how much we need to change the editor so that it will work for our public platform community. This allowed us to test many (though not all) of the features with a small group of people without impacting the public site.
  • Testing on MSE and MSO through an opt-in alpha test. The goal here is to further refine and identify solutions that will help the new editor be openly adopted by users, primarily active members of the community.
  • Usability testing sessions with users of several different experience levels. The goal here is to make sure that the features and UX we create after responding to our highly-engaged users is still transparent to others. We’ll watch how users of varying experience levels interact with the editor to identify and make additional improvements with the goal of an intuitive user experience that has sufficient guidance where needed.

As to a timeline, this is expected to take a while to work through. One of the benefits of the alpha test is that people can enable and disable it as they wish. For the rest of 2021 Q1, our plan is to leave the test running so that y’all can try it out in a more long-term way if you wish. While we’ll be fixing major bugs, we won’t be prioritizing new features or adjustments until we start digging into your feedback from this test and the feedback from the usability sessions in the second quarter of 2021. See a bit more on this in the giving feedback section below.

Assuming these tests go well and we find solutions that make post creation and editing easier than the current system, we’ll move into a gradual rollout phase, starting again with MSE and MSO and then to the sites with standard editing tools, reserving the sites with specialized editor add-ons for the end so that we can make sure that their tools work correctly upon launch.


Why are we working to bring a rich text editor to our sites?

While there have been some requests for a rich text entry option over the years (this one going all the way back to 2009), there’s never been much support for them from users - in fact, many of the requests get strong disagreement from other users. Markdown is a great tool and many users are or have grown accustomed to it - I admit to regularly trying to use Markdown in rich text spaces. That said, many of these requests have been to replace Markdown with rich text and that’s not something we want to do.

As a platform that is largely used by programmers, Markdown is generally a familiar format for many and they’re very comfortable using it, particularly now that we follow the CommonMark standards. For those who don’t know Markdown, we’ve expected them to learn and we give them some assistance but, in many cases, posts end up poorly formatted and need participation from the community to improve. Many of my edits on English Language Learners are purely to improve post formatting.

Additionally, our editor has been around since the beginning with few improvements in that time, so a major upgrade is in order and, in looking forward, we feel that a redesigned editor using Stacks will be more easily maintained and improved as we go forward.

Teams needed a rich text option

We have a great team who works to enhance the Teams product to meet the needs of companies and organizations who are using it for internal knowledge sharing. One frequent pain point from these users was the lack of a rich text editor - here’s a statement from Ham, one of the Teams developers:

We started building the new Stacks Editor as a response to feedback from our Stack Overflow for Teams customers. While Markdown has become a widespread and successful format for writing content - not only at Stack Exchange but across the web - some of our Teams customers told us that they’re not comfortable writing their content in Markdown. They didn’t know the syntax and faced a learning curve before they could start writing the way they wanted to. Writing questions and answers wasn’t as easy as they were used to from other places. For us it’s important to make contributing as easy as possible. Writing questions and answers should feel natural and come without a lot of friction.

This makes sense. Copy and pasting from a rich text editor like Google Docs or Word is much more common within a company where you may be transferring information from existing documentation to a Team, whereas much of our public site content is created from scratch. That said, it’s not unheard of to copy content in the form of quotes into posts, where a rich text detection feature would be helpful so that adding the Markdown manually wasn’t necessary.

The main driving force for the development of the new editor was to improve the experience of Teams for our existing users and give it a feature set that would attract additional users. That said, since many of the people using Teams are developer-centric groups, they also are often comfortable with Markdown, so we wanted to ensure that both options were available. More from Ham:

The new Stacks Editor tries to be the best of both worlds. If you’re happy with writing Markdown and liked the way the old editor helped you with that, the new editor will feel very familiar. You can write Markdown, use familiar keyboard shortcuts, upload images and more. If Markdown is not your strong suit, Stacks Editor allows you to switch over to the new rich text mode that allows you to write in a more WYSIWYG kind of fashion.

We still think that Markdown is the way to go, but we also see the benefits of a rich text editor for less technical users and/or network sites who may be more accustomed to a WYSIWYG style editing. With the new Stacks Editor, Markdown continues to be the leading format for your content and everything you write will be transformed and stored as Markdown at the end of the day.

So, our focus in building the new editor was to add the option of rich text but still maintain a Markdown focus because we love Markdown and think it’s a great experience for those who already know how to use it and is relatively simple to learn but we also want to simplify or improve the experience for people who may be copy-pasting into posts or who don’t know Markdown.

More than just rich text, we’re simplifying future work for development

The current editor has been around since 2008 and, while we’ve made changes along the way, it’s largely unchanged and now makes building new features difficult. Additionally, by adopting and improving the Teams editor on our public network, we’re simplifying future work on ask, answer and edit pages and maintaining similar features between Teams and the network. My final quote from Ham:

Our old editor has served us well for many years, but due to a number of issues (reverse-engineered code that is hard to work with, inadequate API for handling cross-browser issues, and bare-bones content-editable support) we are unable to use it as the base for any major upgrades. Additionally, there are many advantages from basing an editor on a modern foundation (like we have done here on top of prosemirror), which can take care of many of the nasty "content-editable" concerns and keep things safer and more cross-browser compatible.

Being around for so long, it has accumulated quite some cruft and has become hard to maintain and evolve the way we would love to. Over the past years we tried revamping the editor a couple of times only to find out that it would be too hard to do. When we started building the new editor for Teams, we knew this would be a good opportunity to greenfield a new editor overhaul that would ultimately benefit all our users across the network.

On top of this, we’re opening the editor up for everyone to use and contribute to. Like Stacks, the new editor is open sourced, so if you’re interested in how it’s built or want to contribute to improving it, you can find it on the Stacks-Editor repo.

Building editors is hard - particularly when dealing with rich text

I’ve learned the quirks of a variety of different editors over the years, whether it was BBCode on the forums I participated in, Wikitext on MediaWikis, Markdown here on Stack Exchange, or any of the various rich text or hybrid editors on the various platforms I’ve used (e.g. Jira, FreshDesk)… so I’m comfortable adapting to new styles, but I also find that some editors make assumptions that frustrate and confuse me and make me not want to use them any more. We want to avoid this frustration!

Because our focus is on Markdown, with the addition of special formatting for tables and spoilers, we’re able to limit what our rich text editor has to do - we’re not increasing which formatting options are available (e.g. colorful text or underlines) which is one way we’re working to keep our rich text implementation and the conversion between rich text and Markdown simple, easy-to-understand, and as frustration-free as we can.

The major changes

Other than the optional rich-text entry, there are a bunch of other changes, big and small, that you’ll see in this test. Below are some of the biggest ones including a brief overview of how rich text entry works. A lot of what’s written below was penned by Ben Kelly, who’s done a lot of work with Ham to get this editor going and is supremely knowledgeable of the features, so big thanks to him for that!

Rich text mode

This editing mode was designed to largely resemble traditional word processing software that many users are used to. However, we've added in some extra features:

  • Markdown-style "input rules" for block level syntax
    • Typing # , ## , etc creates a header; typing > creates a quote; * creates a list, and so on
    • We’ve got inline input rules (bold, italics, inline code, etc.) on a list of things to investigate for a future release
  • Link and image editing tools will allow editing link URLs for links and the addition of an image description and title for images.
  • Intelligent copy/paste support - Pasting external content from e.g. Google Docs or code from your editor of choice will retain most of its existing formatting, provided that formatting is in Markdown.

Ultimately, the rich text editor is converted back to Markdown and should support everything you can do in Markdown, with some caveats:

  • Pasting rich text from outside sources isn't perfect, especially with very complicated content
  • What we can support in rich text mode is restricted by our backing Markdown implementation, so things like merged cells in tables or super/subscript aren’t supported, even when we do support the HTML (see next bullet).
    • This is really more of a feature than a drawback. We <3 Markdown and are committed to supporting it first-class for the foreseeable future
  • HTML support is HARD. We make no promises that any HTML written in Markdown mode will be editable in rich text mode
    • We recommend using the equivalent commonmark syntax when available. We’re looking to extend our supported Markdown syntax so users won't need to type HTML anymore.
    • Don't ask why HTML is hard. It's a long story that could be a blog post of its own.

The Markdown - rich text switcher

Two screenshots in one - on top, the Markdown switcher in Markdown mode with the switch background green and the selector on the right; on the bottom, the Markdown switcher in rich text mode with the background grey and the selector on the left.

To allow for movement between rich text and Markdown modes, we’ve added a switch. When the dot is on the right (green background), you’re in Markdown mode; on the left (grey background), you’re in rich text mode. The current default for all users is Markdown but, after you use the editor, the system will remember your last-used option as your default. So, if you submit a post or edit while in Markdown view, you’ll see that the next time you open the editor; if you do so in rich text, that will be the view you have when you next use it. The default configuration for users can be changed per-site, so if a site feels that rich text makes more sense as their default, we can allow for that.

Preview is collapsed into the rich text view

Over the years we’ve gotten lots of questions about whether we could optimize the preview so that it didn’t take up so much space on the screen. If you’ve ever written long posts, you may be familiar with the feeling of doing a lot of scrolling to get from the end of a preview back to the edit window. With the new editor, you see the preview by using the Markdown toggle to switch between Markdown and rich text modes and, because the rich text preview is part of the editor, you can edit right in the preview rather than having to find the edit window again. This is a lot more convenient for mobile users, too, with their smaller screens where scrolling through even a short post can mean a lot of work.

Aaron, our Principal Product Designer for Design systems explains the value of an editable preview:

We think this is more than a layout issue. We could put these previews side by side, or toggle between them like GitHub does, but I think having a preview at all is something we can move beyond. Tiny sidenote: I worked on GitHub’s editor in 2016! We could explore alternatives like having a button that launches a full screen preview, but I think that’s wasted effort when we could be writing directly in the preview experience.

The web has matured past the point of requiring Markdown syntax and discrete previews. Why should any text editing offer a read-only preview state in 2021? Is writing, previewing, noticing a mistake, and moving back to the editor truly better than simply being able to edit the text? Would you accept this interaction model in your word processor? In Notion? In Google Docs? In Medium?

We feel this is a positive change for these and many other reasons but we do understand that it’s a big departure from the current format. Please take some time to see how this new workflow feels and let us know what you think and how we can improve this. I know that many of the prior requests have been for a side-by-side preview to cater to the wider screens that many people have, particularly as this matches many other Markdown editors. Unfortunately, this can be complicated on smaller screens, which would require different placement and it’s pretty common to have previews separate from the entry form, like with GitHub’s two-tab format.

We do have a few known issues here:

  • While switching between modes does maintain your approximate scroll position, it doesn’t remember where your cursor was. Any time you switch, your cursor will move back to the top of the post rather than staying where you were.
  • There’s no history when switching modes, so flipping between views will cause you to lose the ability to undo/redo the changes from the other view.
  • Since the rich text preview will interpret your Markdown, any incorrect Markdown (MD) may be escaped out by the rich text editor. When you return to MD view, you will be able to fix these errors.

Syntax highlighting in Markdown mode

You’ll notice your Markdown experience is a bit less monotonous because it now responds to the Markdown you use by changing the text in the pane - headings will be larger, bold text will appear bold, as will italics, and links will be in blue and code will be in grey. I’ve found this really helpful in drafting posts as it identifies a lot of the Markdown errors I might have made, making it so I’m less likely to even need to look at the preview. This isn’t currently CommonMark compliant but we’re working on improving it.

Changes to formatting buttons

We’ve removed some buttons and added some new buttons to the ones available for formatting. Here’s what the formatting bar looks like now:

A screenshot of the post formatting bar showing the various buttons. In order from left to right there's the header button, bold, italic, inline code, links, quotes, block code formatting, image uploading, tables, ordered lists, unordered lists, horizontal rule, and a question mark for help. On the far right is the "Markdown" switch

Removed:

  • Undo/redo - these features still work with your standard key combinations but we’ve removed the buttons themselves - we’ve also improved undo/redo history support to be much more reliable overall.
  • Stack Snippets (temporary) - We couldn't get Snippets built into the initial alpha test, so if you need to add a snippet to a post, you'll need to disable the alpha to do so.

Updated / New:

  • Tables - this button will create a default three-row, two-column table and have special menu options when in rich text mode that allows adding/removing rows and columns.
    A screenshot of the formatting bar with the table tool open and the various options to remove and insert columns and rows visible
  • Headers - this button has been redesigned and moved to the first position.
  • Inline code / code blocks / Stack snippets buttons - one piece of feedback from our early tests was that for rich text, we need to differentiate between inline code and code blocks but on Teams we reused the same icon for code blocks that we currently use for Stack Snippets - to allow all three options, we created new icons. Snippets are disabled for the alpha but you can see the new trio of buttons (left to right - inline code, code blocks, snippets)
    The new icons for the code markup buttons - a pair of angled brackets "<>" with no background for inline code, a pair of angled brackets with a background for code blocks, and a pair of angled brackets in a stack of icons for snippets.

We're planning to add keyboard shortcuts to the formatting buttons but they aren't part of this initial alpha test.

Markdown mode is your go-to for fine-tuning posts

Markdown mode will give you fuller control of your posts, as it already does. Here are a few places you’ll want to stick to MD when composing or editing posts:

  • Adding a language to a code block for syntax highlighting purposes - while we’re looking to add this to rich text, for now it’ll require MD. The system will still auto-detect languages based on tags as it usually does but if you need to call out a specific language, you’ll need to use Markdown mode.
  • Markup that requires HTML - we still support some HTML in posts but the rich text mode won’t create it, so if you need to include HTML in your posts for formatting such as subscript or superscript, you’ll need to enter Markdown mode for this.
  • Spoilers - like HTML, they're supported but we don't have a button for it, so you'll need to use Markdown mode to add them.
  • Creating complex lists - this is possible in rich text mode, but it’s not as intuitive as using Markdown, particularly in special cases such as lists with indented code blocks.
  • Fine-tuning images - resizing or adding links to sources or full-sized images will need Markdown mode.

Inline text and image links are the norm

The image and link tools will now add images and links inline rather than in the bibliography format. While the latter will still work, you’ll have to create it manually. Right now, images don’t have their image plus link formatting but we’re working on getting that added in a future release.

How to participate

Screenshot of the user preferences page with the alpha test opt in option circled.

If you’d like to opt-in to the alpha test, visit your preferences page and opt in by enabling the Stacks Editor opt in option. At the outset the new editor will only be available on answers - you won’t see it on questions, profile pages, tag editing pages or any other editing forms around the site. Opting in is global, so if you opt in on MSE, you’ll also see the new editor if you’re on MSO. If you decide you’d like to opt out, you can do so in the same way, switching the slider on your preferences, though it may take up to ten minutes for the editors to return to normal.

Giving feedback

This feedback phase is an incredibly important part of this process so we really appreciate any of you who take the time to try the editor out. If you run into bugs, usability issues or if you think of features that would improve your experience with the new editor, please leave an answer here - one per answer - so that we can review and respond to each. Steps to reliably reproduce are always appreciated along with which browser/s you're experiencing the bug in, and especially so when it comes to obscure edge cases or subtle usability issues. Additionally, because this project is open sourced, for truly technical bugs, you can file them as an issue on the GitHub repo - if you feel comfortable with that - if we get reports filed in both places, we’ll link them.

Our plan is to transfer issues from our internal system to the GitHub repository and add any new ones that come up here so that anyone who’s interested can see what we’re working on and how we’re prioritizing this work.

While it’s great to hear your overall thoughts about the editor, if there’s too much in one post it can make responding difficult so try to keep each answer relatively concise. You’ll have until the end of the alpha to add the answers here. Once it’s over, we’ll let you know how best to give feedback.

Thanks

This project couldn’t have been possible without the work of so many people and they all deserve a ton of credit. In particular I’d like to recognize Ben Kelly, Ham Vocke, Aaron Shekey, Des Darilek and Adam Lear for all of the effort that they’ve put in. Additionally, to those who have taken the time to test and give feedback while the editor was in Teams only, thank you!

45
  • 7
    I like this editor, I've been using it in SO for Teams for a while now. Tooltips are great. And thank you for giving us an option. – Ollie Jan 26 at 19:32
  • 5
    This post is getting more answers than upvotes. Popular, you think? – Ollie Jan 26 at 20:41
  • 6
    @Ollie sorry, my fault. I can only upvote it once... – Glorfindel Jan 26 at 21:13
  • 61
    "in many cases, posts end up poorly formatted" - I doubt that's the fault of markdown. Many askers are just too lazy to apply formatting or grammar. – Bergi Jan 27 at 0:14
  • 37
    @Bergi I mean... that's a possibility... but I really don't think that everyone, network-wide, who fails to perfectly format posts are all just lazy. And, honestly, it's kinda uncharitable to assume that. I'd much rather give people more options to make their post look great and honor that's at least part of the problem. – Catija Jan 27 at 0:55
  • 3
    Watch the terminology around this. Searching for "Stacks Editor" in Google comes up with StackEdit, which isn't built by Stack Exchange. (Incidentally, it seems to be a much more feature-rich markdown editor which also solves many of the problems users have shared in answers below. Play around here) – Robotnik Jan 27 at 4:52
  • 25
    On the sites which have mathjax enabled, the MathJax source will be shown in both views, right? Or does the rich text view actually show rendered MathJax? – Martin Jan 27 at 6:56
  • 7
    @Robotnik we've come full circle. If you check out StackEdit's GitHub repo you can see how they built it on Stack Overflow's previous markdown engine. Personally, I'm not worried about the name. Ultimately, it's gonna become the editor component in our Stacks design system so people can find it there if they're looking for it. – Ham Vocke Jan 27 at 8:35
  • 3
    How about you use the official sandbox post for that @ouflak – Luuklag Jan 27 at 13:51
  • 10
    "Why should any text editing offer a read-only preview state in 2021?" - arguably, WYSIABNQEUWYG editors that a lot of old forums had and that universally failed at anything more complicated than bold, italic and underline are exactly what the Internet has been moving away from. – Maciej Stachowski Jan 28 at 7:37
  • 44
    @Catija "I think having a preview at all is something we can move beyond" Please, please no. Especially if there's still bugs to work out that wreck your formatting, nixing preview should be a nonstarter. – TylerH Jan 28 at 22:54
  • 5
    @TylerH: I know what it is. It is a UI catastrophe. Every place that uses them generally also includes some additional means to try and make clear whether left or right means the feature is activated. Look how much text was spent in describing the feature that went into describing how to turn it on and off. Notice that it also changes color to help make clear when it is on. Compare that to an unambiguous check box that needs no explanation. The sliders suck. – JRE Jan 29 at 6:40
  • 7
    @JRE .... So post a passionate posted about why a checkbox would be better rather than having your point of view forgotten, mouldering in the comments. The whole point of this is to try to get these things sorted out – Journeyman Geek Jan 29 at 12:01
  • 23
    Chiming in with others. This must be site specific. Killing the preview will introduce difficulties in Math.SE and other MathJax -using sites. I might manage myself, but others needing more complicated formulas and such are seriously hampered. I am also very worried about our new users who have not written thousands of pages of LaTeX like I have. They need the help of a preview pane. Typically they start with simpler pieces when the need to scroll much is not so pressing. – Jyrki - No Shog9 - No SE Feb 2 at 19:36
  • 4
    @T.J.Crowder It's not active on SO, only on MSO and MSE. :) To answer your specific question, no, there's no limit. – Catija Feb 10 at 13:58

92 Answers 92

8

Selecting a word with a double-click does not work for links

As said in my other answer, it’s standard practice to double-click to select a single word. That works! Except when the word being selected is part of a link’s text. See demo below.

Double-clicking a word doesn't select properly

It looks like it only selects the clicked letter and the ones to its right. When the click occurs between two letters, nothing is selected.

Compare that to what happens in MS-Word, for example:

Double-clicking works well in MS-Word

It also works very well on other websites' RT fields, like Reddit, for instance.

8
  • hmm. I wonder if the triple click to select line is something to consider too – Journeyman Geek Feb 2 at 7:47
  • @JourneymanGeek A triple-click works in RT mode but not in MD mode regardless of links, and that's what my other answer (linked above) addresses. Is that what you're referring to? – 41686d6564 Feb 2 at 7:50
  • The double click also appears to select part of the popup. For me (Firefox Nightly 87.0a1, Linux), if I double-click the left half of a letter, it selects the letter and the rest of the word to the right and everything in the popup; otherwise, if I double-click the right half of a letter, it selects the letter and the rest of the word to the left and everything in the popup; if I double-click the right half of the last letter of the link, the non-link word next to it, to the right, is also selected. – Sebastian Simon Feb 3 at 5:07
  • If I didn’t enter a valid link, however (e.g. left it as https://), then selection is very broken, and the input in the popup constantly overrides focus and selection. It’s definitely the popup’s fault, as it gets inserted in the middle of the word. – Sebastian Simon Feb 3 at 5:07
  • @Sebastian If by "the popup" you mean the one where you enter the link, it works well for me (Chrome, Win10). – 41686d6564 Feb 3 at 5:11
  • On Chrome for Linux I can reproduce this report more closely: double-clicking the left half of a letter (to be clear: a letter of a word within a link) behaves like on Firefox. Double-clicking the left half of a space between two words of the same link selects the space; double clicking the right half of it selects nothing. Double-clicking the right half of a letter selects nothing; but double-clicking the right half of the last letter selects only the space to the right of it — the popup doesn’t appear. – Sebastian Simon Feb 3 at 5:20
  • @41686d6564 Yes, that’s the popup: the <span class="w0 ProseMirror-widget">. What do you mean by “it works well for me”? Does it select the whole word? Does it not select the popup? – Sebastian Simon Feb 3 at 5:23
  • Oh, you mean selecting text in the editor causes the popup to be selected too? Yes, I can repro this. I thought you meant selecting text in the popup's textbox itself. Selecting text in the popup works as expected. – 41686d6564 Feb 3 at 5:27
7

When having two tables in the rich text editor, selecting everything and pressing backspace only deletes one table, not everything selected.

To reproduce:

  • Add two tables one after the other
  • Select both tables with your mouse and hit backspace
    • Using ctrl + a to select works as expected
1
  • 5
    Oh, this is a strange one. Everything deletes as expected when selecting with CTRL+A, but not when selecting with a mouse. Thanks for the report! – Ben Kelly Jan 26 at 22:08
7

When in Rich editor mode having an image at the end of your post makes the behaviour unpredictable.

If you press the down arrow to get to the end of your input field your cursor disappears. The only way to regain it is pressing the enter key until it pops back up.

1
  • 2
    I'm able to reproduce this. I'm seeing a trend of errors regarding end of document content, so hopefully we can squash them in one fell swoop. Thanks for the report! – Ben Kelly Jan 26 at 22:49
7

In Markdown mode, Ctrl+K inserts single backticks (inline code) instead of creating a code block like the old editor.

In the old editor, the only time inline code will be used is when only part of a line is selected. However, when an entire line is selected, multiple lines are selected, or nothing is selected at all, a code block is created. Right now, the only way to turn some lines into a code block (other than doing it manually) is by clicking the toolbar button.

4
  • 1
    I'm pretty sure this is status-bydesign. Ctrl+M used to insert an HTML/CSS/Javascript snippet; it inserts the code block in this new editor because those snippets don't exist anymore. – Ollie Jan 27 at 18:46
  • @Ollie Yeah, you're right about Ctrl+M. I rarely use code snippets, so I didn't know that before. The only thing is that they said the code snippets are temporarily absent in the alpha test and I'm assuming it'll be re-added when the new editor goes live. I guess they're going to use a different keyboard shortcut for code snippets then. – 41686d6564 Jan 27 at 20:06
  • You're right, yeah. So maybe status-planned then. – Ollie Jan 27 at 21:18
  • 1
    Thanks for the report! We're likely going to revisit keyboard shortcuts for the different code types when adding in snippets. We tend to prefer not regressing behavior for these sorts of things, but that isn't a hard rule. Marking as "review" for now, until we decide on the final behavior. – Ben Kelly Jan 27 at 23:02
7

Images aren’t shown as selected, e.g. in the following I selected from “Google Document” to “blah” and the image wasn’t shown as selected (tested on Chrome with native dark mode+Windows):

1
  • 2
    Thanks for the report! I can reproduce this locally. Clicking an image shows it as "selected" (with a focus ring), but not when it is part of a cursor selection range – Ben Kelly Jan 29 at 22:10
7

The following Markdown will produce two images next to each other, but the preview will show them under each other:

![enter image description here](https://i.stack.imgur.com/SQfjes.png)
![enter image description here](https://i.stack.imgur.com/E7aHes.png)

enter image description here enter image description here

This is what the editor shows:

enter image description here

1
  • 5
    I didn't even realise you could put images side by side at all. ._. – Journeyman Geek Jan 30 at 13:08
7

Blockquotes are rendered automatically in rich-text mode, but spoilers aren't.

spoiler not rendered automatically in rich-text mode

2
  • 1
    Spoilers might be tricky I think because the text is hidden by default and needs to be shown by clicking on it first. – Dan Feb 5 at 16:54
  • 2
    Thanks for the report! This is simply because we haven't registered a input rule for them yet. It should be a pretty quick feature to add though – Ben Kelly Feb 8 at 19:36
7

Tag badges can't be created from rich-text mode.

tag badges can't be created from rich-text mode

1
  • 2
    Thanks for the suggestion! This is something we'd like to add in the near term, but there needs to be some discovery on how the UI would look first (extra button vs dropdown vs ...) – Ben Kelly Feb 8 at 19:39
6

When making the screen of my browser smaller, some other buttons (undo/redo) become visible and the Markdown label for the toggle switch becomes a logo:

enter image description here

The same happens on Safari on my iPhone (though I have to scroll the toolbar sidewards for the other buttons to become visible).

4
  • 2
    This seems like odd behavior to me too. I understand logic of why it was done this way. They are hidden by default (intentionally) and only appear at smaller screen widths because it assumes you are on mobile at the small of a width, and thus would not have access to Mod-Z and Mod-Y keyboard shortcuts. That assumes everyone likes using those and if there's space available, and removes the options for people who might be browsing the site in desktop mode on their phone. Curious if there was some other reason why it was designed this way. – animuson Jan 26 at 20:13
  • 1
    This is the desired functionality. In the spirit of responsive design, we reduce the "Markdown" text to an image to provide more horizontal room for the rest of the toolbar and show the undo/redo buttons since the majority of the cases where the screen is this small are mobile/touchscreen devices. As you note, on very small screens there is a potential for the toolbar still being too big and needing some scrolling. – Ben Kelly Jan 26 at 22:21
  • 1
    I don't think adding new buttons is in keeping with "the spirit of responsive design". – Cody Gray Jan 29 at 0:45
  • 1
    @BenKelly What about people on tablets, which have big screens, but no keyboard? – Paŭlo Ebermann Feb 2 at 17:45
6

/

Pressing Ctrl+Enter inserts a newline instead of saving the post. In the old editor, this provided a convenient way to save the post from the keyboard. Since one can enter a newline by simply pressing Enter, Ctrl+Enter has no other special functionality, Since the special functionality it has (leaving code blocks) is also handled by Shift+Enter (and could also be addressed in other ways), it would by ideal if Ctrl+Enter continued to save the post as it did previously.

6
  • CTRL+Enter have now special feature, take a look here: meta.stackexchange.com/a/360070/915027 – Michał Lipok Jan 26 at 23:12
  • 1
    Shift+enter also (perhaps counterintuitively?) exits a code block. That said, I think your idea would eliminate the need for either unintuitive key combination to be required to exit a code block. – Ryan M Jan 26 at 23:15
  • 1
    Normally/usually Enter and SHIFT+Enter is used to add two different kind of new line, and CTRL+Enter for post message (or to add/jump to next page in "document" editors). Currently there is a problem with SHIFT+Enter (wondering how to describe the issue I notice) – Michał Lipok Jan 26 at 23:26
  • 1
    SHIFT+Enter pasted between two lines makes editor unable to normally use KeyDown and KeyUp key’s to go up/down between the entered text. – Michał Lipok Jan 26 at 23:40
  • In Rich Text Mode, Enter starts a new paragraph, while Ctrl+Enter is only a newline. This is pretty standard for rich text editing and follows how most text editing software does it. – Polygnome Jan 28 at 9:01
  • 1
    @Polygnome That's not my experience. A lot of text-editing software uses Shift+Enter to enter a newline. Ctrl+Enter creates a page break in both Microsoft Word and Google Docs. – Ryan M Jan 28 at 9:07
6

Fine-tuning images: resizing or adding links to sources or full-sized images will need Markdown mode.

That'd be convenient to have a way to resize images in the non-Markdown mode, as I've seen many people resizing images by lowering the resolution instead of using the HTML to change the image's dimension (which is a bit of a pain to type).

7
  • 3
    Thanks for the suggestion! We actually had a rough implementation of this really early on in the development cycle, but we removed it since there's no standards compliant way to set size attributes on an image in Commonmark (other than using html, which I prefer to avoid if possible). I'd love to get some sort of support for this use case in place though, so marking as "review" for now. – Ben Kelly Jan 27 at 23:05
  • @BenKelly It may be helpful to mention that, on public, unlike on Teams, the fact we upload to imgur allows for us to use imgur's resizing links - if you add certain letters to the URL, it will display the image in different sizes or formats. Since this is just a change to the URL rather than any sort of HTML, perhaps it might be easier to implement? Here's the list of letters that will change the image size - meta.stackexchange.com/questions/298818/… – Catija Jan 27 at 23:15
  • @Catija thanks the issue with these links is that they have images with lower resolution. – Franck Dernoncourt Jan 27 at 23:30
  • @BenKelly that'd be very cool, thanks! – Franck Dernoncourt Jan 27 at 23:30
  • @FranckDernoncourt Personally, anyway, this is why I always default the linked image to the full-size image. This is simple in our current scheme - I copy the image URL and add it to the list at the bottom a second time. Then I change the number for the second one, add an m to the first link, and then change the reference link in the post body to refer to the second link as the image link... if that all makes sense. :D If we implemented this well, that would all be automatic when uploading, say - I upload, pick a size and the MD automatically links to the full size image. – Catija Jan 27 at 23:33
  • 2
    @Catija thanks, got it, makes sense but I think it is preferable to display the image with the highest resolution but rescaled to a lower dimension – Franck Dernoncourt Jan 27 at 23:39
  • Good to know - I guess I've been lucky. I don't tend to have issues with the resized images being legible on my end but I think I have heard that some do have issues with it. I don't have a great solution - but, as the person who's written our internal guide on using HTML to resize images on our Team - I know it can be janky to try and do manually. :D – Catija Jan 27 at 23:41
6

A lot of elements, such as spoilers, tags, blockquotes etc., rendered immediately in the preview as soon as you finished typing them in the old editor. In this editor, I have to toggle between Markdown and Rich mode in order to get them to render. I get it in Markdown mode, since it’s supposed to show only Markdown, but it would be nice if they rendered immediately in Rich mode.

2
  • 1
    I'm not quite sure I understand the issue being reported. We do support a few input rules where a limited amount of markdown typed in rich-text mode gets converted into a styled block (typing > or # for instance), but otherwise any text typed is just text. What behavior is it that you're seeing and what behavior is that that you are expecting to see? – Ben Kelly Jan 29 at 21:23
  • 1
    @BenKelly In Rich mode (the old editor's equivalent of a preview, I guess) spoilers, tags and a few others don't render immediately, like they did in the old editor's preview. Is Rich mode too different from that? – Ollie Jan 29 at 21:27
6

When copy-pasting a post when Markdown is switched off, it’ll add plenty of new lines and some components such as tags are not copied properly. (tested on Chrome+Windows)

E.g., before copy (https://meta.stackexchange.com/a/360077/178179):

after copy:

3
  • That might be hard to do as you are copying the rendered output which doesn't carry information about markdown code. It would be the same as trying to copy from the preview in the existing editor. A simple workaround would just be to turn on markdown mode before copying. – Kodos Johnson Jan 27 at 17:42
  • 3
    Thanks for the report! Some info about copy/paste that you didn't ask for, but I'll explain anyways: When copying into the clipboard we actually get the html representation of the content. On paste, we try to take that html representation, figure out what it maps to on our end and then add the correct nodes to the document structure. This is why copying from e.g. Google Docs tends to carry over the formatting on paste. As you can see with the pasted tag, we don't have this perfect quite yet, but we're working on it ;) – Ben Kelly Jan 29 at 22:15
  • @BenKelly thanks for the information! Getting some info on points we didn't raise is typically a great way to learn. – Franck Dernoncourt Jan 29 at 22:23
5

On Google Chrome on Android, one can't access the table menu to alter the table structure (add/del rows/cold).

5

DDon't double the first letter of the text.

FF Android.


Reproduction steps

  • On Firefox on Android, start in either editor mode
  • Type a single character, followed by any other character
  • Note that the very first character appears twice
    • This happens to the first character on any line
2
  • 1
    Thanks for the report. I can reproduce on Firefox Focus on Android, but not FF 84 on Android. I've edited your post to include clearer reproduction instructions as well. – Ben Kelly Jan 29 at 22:04
  • 2
    @BenKelly Thanks for reviewing this. --- The exact version of my browser is: 85.0.0-beta.9 (Build #2015787947) - AC: 70.0.14, 0de6d8b65 - GV: 85.0-20210115192513 - AS: 67.2.0 (From Google Play Store). – Rob Jan 29 at 22:49
5

When tapping Shift+Enter next to a list item, a new line under that bullet is created but the cursor does not jump to this new line. Even if I click on that line with my mouse, the cursor jumps back to the line above. Check the video below for a demo.

4
  • No idea what you mean or how it's related to the new feature. This is not the place to bring up old bugs with the existing editor. – Shadow Wizard is Vaccinating Jan 27 at 16:39
  • This issue is quite annoying actually, but please explain bugs in better way. Adding a list with random characters will not help. I suggested an edit to your post to add details. – Dan Jan 27 at 17:40
  • 2
    FYI, this problem also happens for the last item in the list too. A way around it is to type the whole sentence, then add a line break with Shift+Enter in the middle of that sentence. – Dan Jan 27 at 17:43
  • 3
    Ah, fun with soft breaks! Thanks for the report, I'm seeing a few different bugs around soft breaks that will (hopefully) be fixed in one swoop – Ben Kelly Jan 29 at 22:21
5

Image in the table causes some periodic movement (Windows 7 SP1 x64 Ultimate + Google Chrome Version 88.0.4324.146 (Official Build) (64-bit)):

Markdown code:

| header 1 | header 2 | header 3 |
| --- | --- | --- |
| cell 1 | cell 2sd   sdf |  |
| sdfcell 3 | klkl<Bjjj![](https://i.stack.imgur.com/MIT9D.png) |  |
| cell 4sdf | cell 5 | cell 6 |
| cell 7 | cell 8 | cell 9 |

jk,
jk,

jk,jk,
2
  • 2
    Oh, who doesn't like perodically moving tables? ;) Good catch! – FZs Feb 7 at 9:08
  • 2
    Oh, fun... Thanks for the report! We'll look into it. – Ben Kelly Feb 8 at 19:40
5

When adding a picture, you can click it in rich text mode, and a popup will appear (you may need to scroll due to this bug) where you can enter the image source, the image description and a title text. Similar to this related bug, the popup is displayed inside a <div draggable>, together with the picture. Since a mouse down or mouse up will be interpreted as a drag start or drag end, respectively, and moving the mouse while holding it down is interpreted as a drag action, it is difficult to select text within the popup or to place the cursor at a specific point.

  • On Firefox, the drag always starts, no matter what you do. You can only focus a specific text box with your mouse, but beyond that you have to use your keyboard.
  • On Chrome, you can actually use text boxes normally, but click-and-drag to select text is only possible if you’re clicking in the boundary of the text itself; clicking the padding of the text box still triggers the drag action. Double-clicks and triple-clicks work fine.

Example below. You can click the edit link, enable rich text mode, click the image, and try to adjust (or even read) the text in the image description and the title text (and the image source) using your mouse.

Some very long description. Try to select some text here with your mouse

Example picture is 1000 years Old Thanjavur Brihadeeshwara Temple View at Sunrise from Wikimedia Commons; public domain.

3
  • If I start drawing my mouse on the text, it works form me as expected, but it's still a bit annoying that even if it's one pixel off of the text (not the textbox), it starts dragging. – FZs Feb 10 at 14:50
  • 1
    @FZs Ah, there’s a difference between Firefox and Chrome! On Firefox, it doesn’t work at all. – Sebastian Simon Feb 10 at 15:20
  • Oh, yes, I used Chrome. – FZs Feb 10 at 15:25
5



Looks like there is a bug if you post in both modes. That is, you start off posting in Markdown mode, then finish the post out of Markdown mode. Most notably, the text gets pushed into a code block by default. If you toggle the Markdown a bit back and forth, it seems to sort itself out....

EDIT: Ok I think I’ve figured out what’s going on and how to reproduce it. If you copy some text from a post that is in Markdown, and then paste that text into a post without Markdown, the pasted text will be in a code block of some kind with the word ‘plaintext’ off to the right.

All subsequent text is also captured in the ‘code block’. If you delete the code block, or toggle in and out of Markdown mode enough times, the block eventually gets rendered out of existance and the text looks correct.

[tag:feature-request][tag:mobile-chrome] This was copy/pasted from another post on this thread that had Markdown enabled to demonstrate what's happening.
4
  • 1
    Yep, had a similar problem as well. meta.stackexchange.com/a/360137/172297 – Dan Feb 5 at 16:17
  • I was about to report this. I'm guessing its auto-detecting 'code' and markdown looks code-like enough to trigger it. Switching to markdown to paste the text seemed to work though – Journeyman Geek Feb 18 at 0:23
  • @JourneymanGeek, Yes the work-around is 'easy' I suppose. But, as was explained in the comments to the other answer pointing out this issue, I think the vast majority of the human population expect to copy some text, and have that and only that pasted into whatever else they paste into. If they want to implement a paste special, even if they have that on by default (but allow for a paste-as-plain-text-option), fine. Otherwise it's a clear bug. – ouflak Feb 18 at 11:11
  • Oh, I agree its a bug. Its also something likely to bite more experienced users in the ankle :D – Journeyman Geek Feb 18 at 11:14
5

Seeing that the editor does exactly what you tell it to do, I've tagged this as FR, and not as a bug.


If you select part of your text to format it in bold the new editor wraps it in double asterixes (as is expected):

Here is some text to test with a **bold part** in it.

If I now select an overlapping part of text, say "test with a bold" and make that bold as well the editor wraps it in double asterixes again (as expected):

Here is some text to **test with a **bold** part** in it.

This now renders as:

Here is some text to test with a bold part in it.

Which is technically correct, but I think it would be more convenient if the result would simply be:

Here is some text to **test with a bold part** in it.

Which is similar to what text editors like MS Word do.

ps. This holds for the other buttons, like Italics and inline code as well.

5

Tables don't copy and paste from Google Docs

I attempted to copy and paste a table from Google Docs in the editor.

enter image description here

The editor brought it an as plain text. enter image description here

1
  • 1
    I'm pretty sure they won't paste from Office 365 either. Or a desktop word processor for that matter. I don't expect this to work from a Google Sheet either (checked it, and indeed it doesn't paste a table) but restricting to the Sheets format might be easier to implement. – rene Feb 18 at 16:39
4

SHIFT + PAGE UP does not select the entire text when Markdown is switched off. E.g.:

The money goes directly to your PayPal Cash or PayPal Cash Plus balance where you can use it as you normally would.

How long does it take to receive money from selling crypto?

Usually, the money you receive from selling crypto will be available instantly in your PayPal Cash or PayPal Cash Plus balance. As with all transactions, crypto sales are subject to review and could be delayed or stopped if there's an issue.

if the mouse cursor is placed at the end, SHIFT + PAGE UP fails to select the entire text (only the last paragraph becomes selected). Tested on Chrome + Windows.

0
4

Overlapping bold/italic formatting leads to incorrect formatting when toggling to Markdown mode.

  1. In rich text mode, write some text.
    • this is bold, now italic, and now?!
  2. Select part of the text.
  3. Make the selection italic.
    • this is bold, now italic, and now?!
  4. Select some overlapping text.
  5. Make the selection bold.
    • this is bold, now italic, and now?!

(Now bold and italic formatting is correctly applied to overlapping portions of the text.)

When switching to Markdown, the formatting is screwed up because Markdown doesn’t support overlapping formatting in this way: adjacent */** is ambiguous at the best of times, but Markdown wouldn’t support this even when using _ to format italics.

Here’s what the editor generates:

**this is bold, *now italic****, and now?!*

… but as mentioned, even the following isn’t really supported by Markdown as far as I’m aware (it certainly isn’t on this site):

**this is bold, _now italic**, and now?!_
4
  • 1
    The editor seems to have functioned correctly here. It split the italics. So you have a **this is bold, *now italic*** using three asterisks to close the bold and italics and then a *, and now?!* to re-enter the remainder of the italics for the part that was outside of the bold. The problem is that the parsers we have do not handle the scenario of four consecutive asterisks because of the ambiguity. I'm not sure how that's supposed to be handled. – animuson Jan 27 at 16:11
  • @animuson It could potentially be handled by using _ for italics but personally I’d be more comfortable with forbidding overlapping formatting, but that’s admittedly fairly opinionated since it (arguably) prevents “valid” markup. – Konrad Rudolph Jan 27 at 16:12
  • 1
    Ah, this is clever. In a way, you've created illegal content in the rich-text editor that isn't actually supportable in the backing markdown. The editor is "smart" enough to generate what would be sane markdown, but isn't actually valid due to the introduced ambiguity. I guess the solution here is to default weak emphasis back to _ in the case of an overlap since that is valid – Ben Kelly Jan 29 at 22:34
  • 2
    There's still some edge cases here I can think of, even using _. This is going to require a bit of thought and a few unit tests. Thanks for the report! – Ben Kelly Jan 29 at 22:43
4

Pasting a text with a link in a table results in the text getting cut:

enter image description here

Markdown used in the demo:

| Column A | Column B |
| --- | --- |
|  | A margin call occurs when the value of an investor's  |
| [Federal call](https://www.investopedia.com/terms/f/federal-call.asp) | A federal call is a legally mandated margin call pursuant to Regulation T. Investors will receive a federal call when their margin account lacks sufficient equity to meet the initial margin requirement for new, or initial, purchases. |

A margin call occurs when the value of an investor's [margin account](https://www.investopedia.com/terms/m/marginaccount.asp) falls below the broker's required amount

fghj

Tested with Windows 7 SP1 x64 Ultimate and Google Chrome 88.0.4324.190 (Official Build) (64-bit).

1
  • 3
    For me, it pastes the whole text but without the link. Surprisingly, when copying text with a link from the table and pasting it outside, the hyperlink is also lost in this case. Demo. – 41686d6564 3 hours ago
3

When inserting a new image via CTRL + V, directly upload + insert the image, as GitHub, Gmail, Outlook, etc. do (= no need to click on "add image").

Example in GitHub:

enter image description here

16
  • 11
    This can be rather problematic for accidental image uploads. GitHub likely provides more support for deleting images. We do not. We will only ever delete images that contain sensitive information that shouldn't be in them, meaning users who accidentally upload things because e.g. they forgot it was in their clipboard are out of luck if we just auto-upload it without verification. – animuson Jan 27 at 15:48
  • Also you no longer need to wait for the upkoad to finish, you can just continue working on your draft. – Luuklag Jan 27 at 16:03
  • @Luuklag thanks, I'll edit the feature request accordingly – Franck Dernoncourt Jan 27 at 16:05
  • 2
    @animuson but as long as the post isn't submitted, the only way to see it is by guessing the URL, which is very very hard to do. And even if one see the uploaded image somehow, it can't be linked back to the one who uploaded it. Risk here is very mininal. – Shadow Wizard is Vaccinating Jan 27 at 16:43
  • @Shadow That doesn't mean people will not still write to us demanding it be removed, which we do not do. – animuson Jan 27 at 16:51
  • 2
    @animuson I can only assume the amount of people who write to you asking to add the ability to paste images is greater... and amount of people who want it and don't ask for it is much bigger. :) (the current paste works only for Chrome, and requires extra step - while not bad, people these days are spoiled) – Shadow Wizard is Vaccinating Jan 27 at 17:00
  • 5
    @Shadow This isn't requesting a feature for pasting or drag-and-drop to work in more places. It is asking for the image, once pasted, to automatically upload without any verification of the image to be uploaded (not requiring the user to click on the "Add picture" button after the paste). – animuson Jan 27 at 17:13
  • 5
    @Shadow I would say even if the amount of people asking for the feature is far greater, it's easier to ignore them. oops, I mean redirect them to MSE. But people asking to delete an image can be more problematic for SE staff especially if the image might contain sensitive information by mistake (GDPR and friends come to mind). I would still be against this feature request as long we can't delete uploaded images. – Dan Jan 27 at 17:28
  • Fair point, @Dan – Shadow Wizard is Vaccinating Jan 27 at 18:53
  • @Dan GDPR and friends are exactly why SE should have some automated process to remove images, which would then make this feature more privacy friendly. – Franck Dernoncourt Jan 27 at 19:41
  • 2
    I agree with @animuson on this. Instant upload with drag-and-drop is fine, IMO but not with Ctrl+V. One might accidentally paste something that they don't wish to have uploaded to "the web". Sure, one should be more careful when dealing with sensitive data because you can't trust what a form will do with texts/images once inserted, so it's arguably the user's fault, but still. – 41686d6564 Jan 27 at 20:26
  • @animuson There's a middle to be split here. There's strong reasons why you wouldn't want to start uploading without a confirmation step. But you can still launch that confirmation dialogue directly on copy-paste/drag-drop from the text window (without needing the extra step of clicking an "add image" button). – E.P. Jan 28 at 12:03
  • 1
    @E.P. That's how the editor behaves now, you can paste an image directly into the editor without the need to first click the add image button in the toolbar. And you get a confirmation showing you the image you pasted before uploading it to imgur – Dan Jan 29 at 14:40
  • @Dan Yeah, I realized that after posting. I guess I'll leave my big d'ough there as a warning to others ¯\_(ツ)_/¯. – E.P. Jan 29 at 14:41
  • 1
    I think it’s possible with the File API to create some fake Markdown like ![enter image description here](#image1) (or even a “reserved”, proper Imgur URL) which renders as the uploaded image, and only when hitting the Post button, the images are uploaded to Imgur. This, however, would break the workflow of copying an Imgur URL into a comment and discarding the post. Being able to delete Stack Exchange Imgur images would solve this problem and any GDPR problem in one fell swoop. – Sebastian Simon Feb 1 at 3:01
3

(tags don’t work yet in this mode either it would seem, although it may render properly given that this is ported to markdown)

Using a line break, breaks the user interface.

Steps to reproduce:

  1. Type some normal text

  2. Press shift+enter

  3. Press enter

As shown below:


normal text

7
  • Using an hr as shown above, when clicking edit and entering the rich text editor, creates a wrapper for the hr which is <div contenteditable=true> which is probably not ideal. – Travis J Jan 29 at 0:16
  • The example shown below is missing markup, presumably because the process of converting the rich text back to markdown is not 1 to 1. As such, my attempt to actually show the issue there doesn't do much in itself, aside from pointing out the lack of 1-1 mapping (which should be a requirement for any richtext environment). – Travis J Jan 29 at 0:17
  • Thanks for the report, but I'm having a little trouble understanding the bug, as "breaks the user interface" is a bit vague. Can you explain what behavior you're seeing and the behavior you're expecting to see? Additionally, is this in markdown or rich-text mode? – Ben Kelly Jan 29 at 21:30
  • 1
    @BenKelly - It is in rich-text mode. Once you have taken the steps, you can no longer select the element created by insertLineBreak, nor move past it. Instead, moving the cursor (or range tracker from a behind the scenes point of view) to the inserted line break causes the cursor to go to the prior element; perhaps a result of the tracker not recognizing the action and thinking it is somewhere it is not. – Travis J Jan 29 at 22:07
  • @BenKelly - You may want to whitelist the execCommand options that are available. – Travis J Jan 29 at 22:10
  • @TravisJ You may want to edit these details into your answer. – Sebastian Simon Feb 3 at 4:30
  • @SebastianSimon - This issue will be handled, it is similar in nature to several other bugs now that I have inspected most of what has been reported. It would seem that there is an issue with the tracker getting stuck. To be honest, there is a whole host of issues with creating a rich text environment, and this answer would turn into a melting pot if I started including all the sort of related nuances to this issue here. – Travis J Feb 3 at 6:33
3

When inserting a new image via CTRL + V, please don't place the "Add Image" button at the top of the editor, but instead place it somewhere closer to the cursor where the image is being inserted.

Example:

enter image description here

5
  • 1
    +1, especially as you can't hit Enter to get it. – Ollie Jan 26 at 23:47
  • 3
    The button should be focused anyway. Then, having it close to the cursor would be a "nice-to-have". – 41686d6564 Jan 27 at 4:33
  • @41686d6564 imho we shouldn't have to click or press any key – Franck Dernoncourt Jan 27 at 15:45
  • @Franck I thought of that too but then I quickly realized that this one might accidentally paste something that they don't wish to be uploaded (the same concern that animuson addressed in the comments below your answer). I'm fine with instant upload with drag-and-drop but not with Ctrl+V. – 41686d6564 Jan 27 at 20:10
  • 3
    Thanks for the suggestion! I understand the pain point, but I have to reflect a bit to figure out how I'd solve this. I'll pass this along to our designers and see if we can't come up with a good solution. – Ben Kelly Jan 29 at 22:18
3

Dim oCSV
Local $oConnection = ObjCreate()

I check how to post inline code and I have two comments:

  1. I can’t select a language .. is there always “auto” enabled and can’t be chosen manually?

  2. I had such an issue, that when I started my inline code, that the editor area was empty, so there was no new line. And when I was in “code segment“ then I was unable to go down below the area, with the “cursor down key”. I had to use Ctrl + Enter to go outside the box and then the cursor keys started working properly. My suggestion is to always automatically add a new line below the code area.

6
  • 1
    1. Asked/notified before here. 2. Continued here – Michał Lipok Jan 26 at 23:31
  • 1
    For 1, you can indicate the code language in Markdown mode, which is the same as it always has been. We haven't figured out how to allow this in rich text - you can see this noted in the question's section about how MD is best for fine-tuning posts. – Catija Jan 27 at 15:23
  • in the question's section about how MD is best for fine-tuning posts where ? – Michał Lipok Jan 28 at 20:37
  • 1
    Search the question for "Markdown mode is your go-to for fine-tuning posts" - it's a section towards the lower middle of the post. – Catija Jan 28 at 20:39
  • Now I see. Thanks. In the future: I would prefer to have an option in profile preferences to choose between 1 Auto mode 2 specific language/formating (my favorit) . But in the moment when I post code I should be able to change them by selecting from some kind of combo. btw. Auto option is/will be the best option for new users, but advanced should have a way to spcified the formationg in code segment. – Michał Lipok Jan 28 at 20:51
  • Thanks for the report! As you note, 1 is answered here (tl;dr, we're working on it). As for 2, I'm seeing a few different bugs that appear to have the same root cause. Hopefully, fixing one will fix them all – Ben Kelly Jan 29 at 22:25
3

My entire answer was deleted when I went to edit the question

I have not used this editor much (maybe 2-3 answers), but I discovered a fatal flaw: when in markdown mode, my answer is wiped out a few seconds after I click edit on the question (which happens inline due to me having 2k+ rep). When the answer is in WSIWYG mode, it simply wipes out what I have in code fences.

So far, this has only happened to me when I was answering the question Can we make syntax highlighting easier?. In this case I was able to recover by refreshing the page to access the autosave. I posted my answer there and the same thing happens to me when I am editing the answer then click to edit the question. It's not caused by an extension and there are no console errors.

2

If the image is above the max size (current 2 MiB), automatically resize (or change compression) to the largest image possible, or close to it.

2
  • 6
    While this is a reasonable request - the current editor doesn't have this functionality, so I'm not sure this is in scope. – Catija Jan 30 at 22:20
  • 5
    Is this actually feasible? The size restrictions are presumably there to reduce the load on the server, so the file resizing would need to happen client-side. Are there reliable solutions to do this in-browser? – E.P. Feb 1 at 11:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .