# 编辑Markdown.Editor.js的最佳方法是什么？

**URL:** <https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005>\
**Category:** Support\
**Created:** [2015年五月19日 20:27 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005 "2015-05-19T20:27:47Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [2015年五月19日 20:27 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005/1 "2015-05-19T20:27:47Z")

</div>

Hi everyone !

I made a lot of progress recently but I don’t seem to be able to do one thing : editing the Markdown.Editor file.

I tried two things :

- launcher ssh app. I edited two plugins files (poll, lazyYT) without any problem but my modifications of the Markdown.Editor.js (I tried simple things first, like delete the lines makeSpacer(X);), are not taken into account in my forum.
- I tried to follow these instructions : [https://meta.discourse.org/t/use-custom-translation-file/13786/12](https://meta.discourse.org/t/use-custom-translation-file/13786/12)  
But during the rebuild app, the bootstrap fail.

Thanks to some plugins, I have been able to add some toolbar buttons. I would like to delete the spaces after the buttons 3 and 7 for example.

![](https://global.discourse-cdn.com/meta/original/3X/2/9/2936be189be780a3990d00a44fba0290bc4db659.jpg)

I can deal without these modifications, but I’m curious. I am (more or less) able to work with the launcher ssh ou write a plugin, if you have any idea.

(Sorry for my poor english, I hope it’s clear)

---

<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:** [2015年五月19日 22:02 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005/2 "2015-05-19T22:02:45Z")

</div>

A better fix is ensuring proper unique class names for the various buttons, then you can hide spacers with simple css

---

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2015年五月19日 22:11 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005/3 "2015-05-19T22:11:28Z")

</div>

So class wmb-spacer, (used twice in the wmd-button-row) is not unique to only that row, or do you mean each should be unique in that row?

---

<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:** [2015年五月19日 22:42 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005/4 "2015-05-19T22:42:20Z")

</div>

yes … should be `class='wmd-spacer wmd-spacer-1'` etc.

---

<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:** [2015年五月19日 23:13 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005/5 "2015-05-19T23:13:48Z")

</div>

Thanks, I didn’t notice there was a wmd-spacer class, it helps a lot.

I tried that for now, that worked

```
.wmd-spacer {
    display: none;
}

```

I’ll try to create unique class for each button

---

<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:** [2015年五月19日 23:17 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005/6 "2015-05-19T23:17:22Z")

</div>

sure, feel free to send through a pr for it.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年六月8日 12:46 UTC](https://meta.discourse.org/t/the-best-way-to-edit-markdown-editor-js/29005/7 "2024-06-08T12:46:11Z")

</div>

此主题已在 3307 天后自动关闭。不再允许回复。
