r/SideProject • • 5h ago

Bootstrap UI - TinyMCE doesn’t know Bootstrap, so I wrote a plugin that does

https://bootstrapui.coolsoft.cz/demo/

Hi everyone!

I build sites on my own CMS, and clients edit their content in TinyMCE. The problem is that TinyMCE doesn’t know anything about Bootstrap, so you end up either hand-writing HTML for anything beyond paragraphs and images, or letting clients produce markup that doesn’t fit the design. Bootstrap UI is my attempt to fix that.

It adds dialogs for inserting and editing Bootstrap components directly in the editor: cards, modals, accordions, navbars, tabs, tables, forms and more. Every dialog shows a live preview next to the exact HTML it will insert.

The piece I’m happiest with is the grid designer. You set columns, widths, alignment and gutters, and switch between breakpoints to see how the layout stacks on mobile before inserting it. You can drag columns to reorder them per breakpoint.

Some details:

  • Output is plain Bootstrap HTML, with no custom wrapper tags or editor metadata
  • Bootstrap 5.3 by default, Bootstrap 4 via bootstrapui_version: '4'
  • Tested on TinyMCE 6.8, 7.9 and 8.9
  • Modals, dropdowns and similar components are previewed but inactive while editing
  • 9 interface languages
  • No licence check at runtime, so it works offline and on intranets

It’s a paid plugin ($24.99 + VAT, one-time, free updates within 1.x). The live demo is free and needs no signup: https://bootstrapui.coolsoft.cz/demo/

Docs: https://bootstrapui.coolsoft.cz/docs/

I’d like feedback on two things: which Bootstrap components you’d want an editor to handle that I’m missing, and whether the grid designer is clear to someone seeing it for the first time. And I’m happy to answer any questions here.

1 Upvotes

2 comments sorted by

1

u/satoshi_builder 4h ago

The grid designer with drag-to-reorder columns per breakpoint is the part that stands out, since that is where clients usually break a layout. Does the preview lock the column order per breakpoint, or can a client reorder mobile without touching desktop?

1

u/HarkIV 4h ago

Thanks! Not quite independent, because of how Bootstrap works. It’s mobile-first, so the base classes apply to every screen size. If you reorder the columns on mobile and don’t set anything for laptop, laptop just uses the mobile order. To get a different order on a larger screen, you have to set that breakpoint too: switch to it in the preview bar, rearrange there, and the plugin adds the order classes for that breakpoint automatically.

So you work in ranges. In the screenshots, mobile to tablet is one setup and laptop to large desktop another (C moves to the top on laptop, with its own offset and width). If you then change something at desktop, it adds a new breakpoint, so you end up with mobile to tablet, laptop, and desktop to large desktop.