Docs claim that bulleted and numbers lists are added by default to the menu; they aren't.

Đang mở Phù hợp với người mới
#4,466 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

@kemister85 đang làm issue này rồi.

Từ ngày 3/12/2026.

  • #4505 của @kemister85 — đang mở

Đánh giá

Độ khó
1/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu với modules/ROOT/partials/menu-item-ids/advlist-menu-items.adoc, sau đó so sánh bảng trong đó với trang các mục menu của plugin Lists và ví dụ về các mục menu mặc định được liên kết trong issue. Cập nhật tài liệu để mô tả chính xác liệu bullist và numlist là mục menu hay nút trên thanh công cụ; hoàn tất khi tài liệu bị ảnh hưởng không còn khẳng định rằng chúng xuất hiện theo mặc định trong menu Format.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Thanks for making TinyMCE available for open-source users! I include it in my software (https://github.com/bjones1/CodeChat_Editor) and appreciate how well-written it is. Here's a quick-ish bug report on docs that would help improve the docs a bit.

Note: Claude wrote most of this. I've edited a few things to sharpen the text and make it a bit more interesting. I ran the sample code and verified that the numbered list / bulleted list options don't appear on the Format menu.

Documentation/Product Version

TinyMCE 8 documentation ("latest") / TinyMCE 8.10.2, the current release.

Links to Page(s) affected

Description of Issue

The docs linked above claim that bulleted and numbered lists are added by default to the menu; they aren't.

Claude says, with its typical verbosity:

The List Styles plugin's "Menu items" table lists bullist and numlist, with a default menu location of Format. The note below the table says these menu items "are provided by the core lists plugin". However, TinyMCE has no menu items with these names:

  • The Format menu doesn't show them by default. Naming them in the menu option doesn't add them either; TinyMCE silently skips them.
  • editor.ui.registry.getAll().menuItems contains neither name, while editor.ui.registry.getAll().buttons contains both.
  • In the source, the List Styles plugin (advlist/main/ts/ui/Buttons.ts) registers bullist and numlist only with addSplitButton or addToggleButton. The Lists plugin's lists/main/ts/ui/MenuItems.ts registers only listprops. None of the releases I checked (5.10.9, 6.8.6, 7.9.3, and 8.10.2) registers either name as a menu item, and neither does main.

The docs also contradict themselves. The Lists plugin's menu items table lists only listprops, and the default menu items show a Format menu without bullist or numlist. The menu items table appears to be a copy of the plugin's toolbar buttons table, which is correct.

To reproduce, paste this page into the HTML panel of JSFiddle or CodePen, or save it as a .html file and open it in a browser:

<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/tinymce.min.js"></script>
</head>
<body>
  <textarea id="editor"><p>Click here, then open the Format menu.</p></textarea>
  <pre id="report"></pre>
  <script>
    tinymce.init({
      selector: '#editor',
      license_key: 'gpl',
      plugins: 'lists advlist',
      // The toolbar buttons work, so both plugins loaded.
      toolbar: 'bullist numlist',
      // Name the documented menu items explicitly. The Format menu shows
      // only Bold and Italic.
      menu: {
        format: { title: 'Format', items: 'bold italic | bullist numlist' }
      },
      setup: (editor) => editor.on('init', () => {
        const { buttons, menuItems } = editor.ui.registry.getAll();
        document.getElementById('report').textContent = [
          `TinyMCE ${tinymce.majorVersion}.${tinymce.minorVersion}`,
          `Toolbar buttons: bullist=${'bullist' in buttons}, numlist=${'numlist' in buttons}`,
          `Menu items:      bullist=${'bullist' in menuItems}, numlist=${'numlist' in menuItems}`,
        ].join('\n');
      }),
    });
  </script>
</body>
</html>
  1. Click in the editor, then open the Format menu.
  2. Read the report printed below the editor.

Expected result, per the docs: the Format menu shows Bold, Italic, Bullet list, and Numbered list, and the report shows Menu items: bullist=true, numlist=true.

Actual result: the Format menu shows only Bold and Italic, and the report shows:

TinyMCE 8.10.2
Toolbar buttons: bullist=true, numlist=true
Menu items:      bullist=false, numlist=false

Suggested Fix

Update the docs is the easiest fix. My personal preference is for the code to change -- I think having these in the menu by default makes sense.

Ngôn ngữ chính
JavaScript
Star
97
Fork
218
Merge trung bình
4 ngày 16 giờ
Pull request đã merge (30 ngày)
52

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tinymce/tinymce-docs

Tất cả issue của tinymce/tinymce-docs

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.