# Help us test the rewritten Composer

**URL:** https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679
**Category:** Feature
**Tags:** feedback
**Created:** [19.Октябрь.2015 16:51:38 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679 "2015-10-19T16:51:38Z")
**Posts on this page:** 20
**Page:** 5

<div class="post-metadata">

### Author: ![Joey\_Tuan](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Joey\_Tuan](https://meta.discourse.org/u/Joey_Tuan)
#### Post date: [12.Ноябрь.2015 18:52:10 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/92 "2015-11-12T18:52:10Z")

</div>

In case anyone is having this issue, I’ve been waiting for this latest update to hit the admin upgrade panel as well. I’m on the tests-passed branch, and within my admin I’ve been seeing this for a few days:

Version v1.5.0.beta4 +58 1.5.0.beta4 You’re up to date!

yet this does not have the latest ipad fixes.

---

<div class="post-metadata">

### Author: ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)
#### Post date: [12.Ноябрь.2015 21:08:48 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/93 "2015-11-12T21:08:48Z")

</div>

> [@Joey\_Tuan](#):
>
> I’ve been waiting for this latest update to hit the admin upgrade panel

Try going to [yourdiscoursehostname.youdomain.com/admin/upgrade](http://yourdiscoursehostname.youdomain.com/admin/upgrade) . If there hasn’t been a major version bump you don’t always get prompted to perform an upgrade even if there are _minor_ fixes available. Going to `/admin/upgrade` should let you pull the latest version.

---

<div class="post-metadata">

### Author: ![Joey\_Tuan](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@Joey\_Tuan](https://meta.discourse.org/u/Joey_Tuan)
#### Post date: [12.Ноябрь.2015 21:48:40 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/94 "2015-11-12T21:48:40Z")

</div>

Ah thank you, that did it. The two different places to upgrade obviously threw me off.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [12.Ноябрь.2015 21:49:24 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/95 "2015-11-12T21:49:24Z")

</div>

Aha! The guy who handles updating my site (me) changed me to tests-passed and now all’s well. It looks like tests-passed is not the default in spite of claims to the contrary.

Well, a comment in containers/app.yml claims

```
  ## Which Git revision should this container use? (default: tests-passed)

```

But uncommenting

```
  version: tests-passed

```

changes which version I get, so apparently that’s not quite true. If anyone else is interested, more info is in the [Change tracking branch for your Discourse instance](https://meta.discourse.org/t/change-tracking-branch-for-your-discourse-instance/17014).

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [13.Ноябрь.2015 12:51:51 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/96 "2015-11-13T12:51:51Z")

</div>

Firefox 42 on Ubuntu Gnome 15.04.

Highlighting text and pressing Ctrl+b makes the text bold as expected, but also opens the browser bookmarks pane. Similarly, Ctrl+i also opens the page info window. Previously, shortcuts used within the editor window did not trigger the browser behaviour.

Ctrl+q, which _used_ to be the shortcut for a blockquote, now simply closes the browser suddenly and unexpectedly. Yes, I know (now) that the shortcut has changed, but the only way to find it (that I know of) is to hover over the editor button with a mouse - not helpful to a keyboarder. There is no other indication that shortcuts have changed.

---

<div class="post-metadata">

### Author: ![ky\_metro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ky_metro/32/42807_2.png) [@ky\_metro](https://meta.discourse.org/u/ky_metro)
#### Post date: [13.Ноябрь.2015 13:28:40 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/97 "2015-11-13T13:28:40Z")

</div>

The new composer is handling links differently. Markdown has two methods to handle links, inline, and referenced.

Inline looks like this:

`[Meta Discourse](https://meta.discourse.org)`

Referenced looks like this

`[Meta Discourse][1]`

_somewhere at the end…_

`[1]:https://meta.discourse.org`

The old composer used referenced links, the new one is inline.

I preferred the referenced links, I’m sure others prefer inline. Maybe a switch somewhere to decide which style to use?

---

<div class="post-metadata">

### Author: ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)
#### Post date: [13.Ноябрь.2015 13:39:43 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/98 "2015-11-13T13:39:43Z")

</div>

> [@ky\_metro](#):
>
> I preferred the referenced links

So do I. It was so hard editing a recent post of mine with all those long Google Docs URLs “in the way”:

 ![](https://global.discourse-cdn.com/meta/original/3X/0/2/0223a0e6cb2986e5ecef2a412fc11dc37ed94df1.png)

> [@ky\_metro](#):
>
> Maybe a switch somewhere to decide which style to use?

That would be quite nice.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [13.Ноябрь.2015 17:21:59 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/99 "2015-11-13T17:21:59Z")

</div>

> [@ky\_metro](#):
>
> I preferred the referenced links, I’m sure others prefer inline.

This is exactly it. I always use inline although I have to admit referenced can be nicer when you have long lines of text. On the other hand, I am not sure we need an option for this – if you know markdown well enough to care about the difference, maybe you can just add the link at the bottom yourself?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [13.Ноябрь.2015 17:34:03 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/100 "2015-11-13T17:34:03Z")

</div>

> [@TechnoBear](#):
>
> Previously, shortcuts used within the editor window did not trigger the browser behaviour.

I’ve fixed this in the following commit. Events will no longer bubble up while in the editor.

[https://github.com/discourse/discourse/commit/d993f70ed3cb725b13dc5d799df5aae166211368](https://github.com/discourse/discourse/commit/d993f70ed3cb725b13dc5d799df5aae166211368)

> [@TechnoBear](#):
>
> the only way to find it (that I know of) is to hover over the editor button with a mouse - not helpful to a keyboarder. There is no other indication that shortcuts have changed.

It’s a good point but I am not sure if there is a better approach we could take. I hardly think we need to notify every user that the keyboard shortcuts have changed with a custom message as most would not be interested. Any suggestions?

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [13.Ноябрь.2015 17:50:13 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/101 "2015-11-13T17:50:13Z")

</div>

Since yesterday, when I use a button like bold, I can’t edit the `strong text` part right away, I have to manually select it on the editor. I use Firefox

I don’t know if I described it well 😄

---

<div class="post-metadata">

### Author: ![ky\_metro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ky_metro/32/42807_2.png) [@ky\_metro](https://meta.discourse.org/u/ky_metro)
#### Post date: [13.Ноябрь.2015 18:04:32 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/102 "2015-11-13T18:04:32Z")

</div>

That’s fine, I can do it manually. Just noting that the link handling has changed.

===================

When you click “link” with no text selected, it used to do this:

`[enter link description here][1]`

and the placeholder text was highlighted for easy replacement.

It now does this:

`[https://meta.discourse.org](https://meta.discourse.org)`

and nothing is highlighted.

Some options:

- revert to the highlighted placeholder
- highlight the URL title text
- add a popup requesting a title, a la Gmail
- assume no title is wanted, and use angle brackets: `<https://meta.discourse.org>`

---

<div class="post-metadata">

### Author: ![TechnoBear](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/technobear/32/40546_2.png) [@TechnoBear](https://meta.discourse.org/u/TechnoBear)
#### Post date: [14.Ноябрь.2015 17:01:57 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/103 "2015-11-14T17:01:57Z")

</div>

> [@eviltrout](#):
>
> It’s a good point but I am not sure if there is a better approach we could take. I hardly think we need to notify every user that the keyboard shortcuts have changed with a custom message as most would not be interested. Any suggestions?

There are actually two problems: the only way to discover the keyboard shortcuts in the first place is to use a mouse, and then there is no way to know if/when they change. I’ll ponder…

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [14.Ноябрь.2015 21:13:44 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/104 "2015-11-14T21:13:44Z")

</div>

I ran into some problems with an internal plugin of mine with the new composer. Could you send me some hints on how to replace the now obsolete and/or missing functions

`childDidInsertElement` (old composer view) and  
`addMarkdown` (ibid.)?

I guess some other plugins like @cpradio’s rewrite of the ReplyGif plugin will suffer from those changes, too…

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [15.Ноябрь.2015 02:22:25 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/105 "2015-11-15T02:22:25Z")

</div>

I’ve already updated mine. All work with the new composer and the old.

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [15.Ноябрь.2015 18:33:11 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/106 "2015-11-15T18:33:11Z")

</div>

Great stuff - thanks!!

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [17.Ноябрь.2015 18:27:53 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/107 "2015-11-17T18:27:53Z")

</div>

I’ve changed the inserting link behaviour when there is no text selected. If you don’t supply an optional title, it now inserts “enter link description here” and highlights it.

[https://github.com/discourse/discourse/commit/8dc0fa97d4b22d0693362e9dd563c4f9b0f9fd30](https://github.com/discourse/discourse/commit/8dc0fa97d4b22d0693362e9dd563c4f9b0f9fd30)

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [17.Ноябрь.2015 18:39:48 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/108 "2015-11-17T18:39:48Z")

</div>

> [@ky\_metro](#):
>
> The new composer is handling links differently

@ky_metro & @wesochuck see this:

> [@Why does Discourse prefer footnote-style Markdown links?](https://meta.discourse.org/t/why-does-discourse-prefer-footnote-style-markdown-links/32683):
>
> I’m referring to this kind of linking: [see this article][1] … which is the Discourse default, as opposed to this type of linking: [see this article](http://example.com/article) I’m curious, why are you opting for the footnote style of linking? Is it just a [remnant of the StackOverflow](http://stackoverflow.com/editing-help#links) days? I find the [title](link) syntax to be much less error prone. It makes it considerably easier to change or remove links, and it’s most likely the syntax you’ll adhere to if you’re formatting the entire l…

In short, inline links are easier to use for the average user (fewer ways to screw up) and they’re more appropriate for medium- to short-form content.

I think an option for it is a bit much. Could be a really simple plugin if anyone’s interested in doing the work.

* * *

The [pop up for link insertion still appears in-editor](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/48). Is that the new intended behaviour?

---

<div class="post-metadata">

### Author: ![wesochuck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wesochuck/32/108706_2.png) [@wesochuck](https://meta.discourse.org/u/wesochuck)
#### Post date: [17.Ноябрь.2015 19:58:14 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/109 "2015-11-17T19:58:14Z")

</div>

> [@erlend\_sh](#):
>
> inline links are easier to use for the average user

Not to be a jerk about it, but I’d say this is a matter of opinion not fact. Correct me if I’m wrong, but I didn’t see any UX studies referenced in your original post.

So, in _my opinion_ 😉 with such long URLs these days (including those generated by Discourse), and the relatively small size of the default editor view port, [as shown in my screenshot](https://global.discourse-cdn.com/meta/optimized/3X/0/2/0223a0e6cb2986e5ecef2a412fc11dc37ed94df1_1_690x133.png), I think that inline URLs make the editing process more difficult. They also leads to situations where the preview and the editor lines get out of sync more easily\*. I also liked that I could “hack” the footnote style easily if I needed to refer to the same URL more than once in my post I would just use the footnote number multiple times.

We’ve had some user complaints, so I’d still love an option to toggle it in Admin. But if the masses prefer inline, I’m sure our folks will eventually get used to it.

\*Note: May be a way to help with this would be if you could click on a portion of the preview window and have it jump to that spot in the editor window.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [17.Ноябрь.2015 20:14:41 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/110 "2015-11-17T20:14:41Z")

</div>

The trouble with adding an option is that it is fairly tricky to code and I am not sure we could easily port the old code, I am fine with an admin option here or possibly a user option

---

<div class="post-metadata">

### Author: ![ky\_metro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ky_metro/32/42807_2.png) [@ky\_metro](https://meta.discourse.org/u/ky_metro)
#### Post date: [17.Ноябрь.2015 23:04:33 UTC](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679/111 "2015-11-17T23:04:33Z")

</div>

I’m still fine with it either way… but here’s one point which I’ve noticed.

The old composer not only created the reference links, it organized them on the fly. I mean that inserting a link between

> [Google][1]

> _insert link here…_

> [Meta Discourse][2]

> `[1]: https://www.google.com [2]: https://www.meta.discourse.org`

caused them to renumber as

> [Google][1]

> [Facebook][2]

> [Meta Discourse][3]

> `[1]: https://www.google.com [2]: https://www.facebook.com [3]: https://meta.discourse.org`

This is a major time saver for reference linking, if you like things in order. Doing it by hand is a lot harder than linking inline by hand… hence the desire for some auto-magic help. This will really matter on long posts with lots of links.

All I’m saying is, it’d be nice for advanced users, if the function survived somewhere. Not necessarily as the default.

[Previous page](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679.md?page=4)

[Next page](https://meta.discourse.org/t/help-us-test-the-rewritten-composer/34679.md?page=6)
