리치 텍스트 에디터가 게시물의 HTML 태그를 삭제합니다

If you use the markdown editor and include some raw HTML tags (e.g. br tag for table formatting), then edit the post using the rich text editor, the HTML content is lost. I don’t know if this is the case for all allowed HTML tags, but at the very least it happens for br tags. This may not be a big deal for regular posts since most users presumably stick with one type of editor, but for wiki posts this is a major issue. Over on WaniKani, we have a massive wiki post with several tables that rely on br tags for structure. However, if someone happens to edit the wiki in rich text mode, all br tags are removed, ruining the formatting of the post.

(Secondarily, there doesn’t seem to be an easy way to revert to a previous version of the wiki. If that was available, at least some of this pain would be mitigated. I can write up a feature request for that as well if the feature doesn’t already exist.)


Markdown editor:

Rich text editor:

2개의 좋아요

Use this post to see what I mean. I don’t think I can make this post a wiki myself, but admins/mods should be able to try it. (If not, it’s easy to reproduce.)

Column 1 Column 2
Text 1a
Text1b
Text 3a
Text3b
Text 2a
Text2b
Text 4a
Text4b
3개의 좋아요

Confirmed this is a bug in our table editor, the content in cells is considered inline, but really we would need to treat it as a type of block to keep the <br> mapping going.

@renato any thoughts here, it is an edge case, but I agree it would be nice to support it.

2개의 좋아요

Just to confirm, by table editor do you mean specifically the table editor popup or some edit logic for tables in the general post editor? Because I’m referring to the post editor itself.

post editor … rich text editor does not support this at the moment, there is no workaround for it.

1개의 좋아요

Would it be viable to at least detect these situations and disable the RTE?

I much prefer to fix it, I really dislike the hack of disabling the composer, totally get how it happened that we introduced it in the past, but I do not think we need to reach to it here

I have another example that is not inside of tables. You can use a span tag with a lang attribute to differentiate Japanese and Chinese fonts. This also seems to be lost when switching from markdown to rich text editor. Interestingly, the big tag is retained.

1개의 좋아요

이 문제에 대해 업데이트가 있나요?

1개의 좋아요

여기 수정 사항이 있습니다:

또한 ruby와 lang 속성을 가진 span도 처리합니다.

리치 에디터에 Ruby를 입력하는 것은 여전히 까다로울 것입니다. 일단 입력이 완료되면 문제는 없지만, 그 상태로 만드는 것이 쉽지는 않습니다. 그럼에도 불구하고 이 변경 사항 이후로 기능이 더 완결되었습니다.

@renato 확인해 주시겠습니까?

3개의 좋아요

수정 사항이 병합되었습니다 :confetti_ball: 즐기세요

3개의 좋아요

빠른 처리 감사합니다!

https://community.wanikani.com 에 언제쯤 반영될 것으로 예상하나요? 리치 텍스트 편집기로 테이블을 편집해도 안전할 때를 모두에게 알려드리고 싶습니다. 소스 기준으로 현재 2026.1.0-latest, 커밋 f8f53ac5e8e4348ae308fcddc078766463d5e5f3 상태이며, 이는 3주 전 것입니다.

1개의 좋아요

업그레이드 직후인가요?

디스커스 호스팅의 고객으로서 직접 업데이트를 할 수 없으므로, 언제 업데이트가 될지 그들에게 묻는 것은 정당하다고 생각합니다.

1개의 좋아요

이 주제는 20시간 후 자동으로 닫혔습니다. 더 이상 새 답글을 작성할 수 없습니다.

team@discourse.org으로 이메일을 보내주세요 :hugs:

1개의 좋아요