Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust CSS styling of rich text toolbar to Bootstrap 4 for consistency #963

Closed
wants to merge 3 commits into from

Conversation

Recxsmacx
Copy link

Fixes #664

Adjust the CSS styling of the rich text toolbar buttons to match Bootstrap 4 for consistency.

  • Add the btn and btn-light classes to the buttons in src/adapters/PublicLab.Woofmark.js.
  • Remove the btn-sm class from the buttons in src/adapters/PublicLab.Woofmark.js.
  • Remove the btn-outline-secondary class from the woofmark-command-insert button in src/modules/PublicLab.CustomInsert.js.
  • Add the btn and btn-light classes to the woofmark-command-insert button in src/modules/PublicLab.CustomInsert.js.
  • Remove the btn-outline-secondary class from the woofmark-command-autocenter button in src/modules/PublicLab.RichTextModule.AutoCenter.js.
  • Add the btn and btn-light classes to the woofmark-command-autocenter button in src/modules/PublicLab.RichTextModule.AutoCenter.js.
  • Remove the btn-outline-secondary class from the woofmark-command-embed button in src/modules/PublicLab.RichTextModule.Embed.js.
  • Add the btn and btn-light classes to the woofmark-command-embed button in src/modules/PublicLab.RichTextModule.Embed.js.
  • Remove the btn-outline-secondary class from the woofmark-command-horizontal-rule button in src/modules/PublicLab.RichTextModule.HorizontalRule.js.
  • Add the btn and btn-light classes to the woofmark-command-horizontal-rule button in src/modules/PublicLab.RichTextModule.HorizontalRule.js.
  • Remove the btn-outline-secondary class from the woofmark-command-table button in src/modules/PublicLab.RichTextModule.Table.js.
  • Add the btn and btn-light classes to the woofmark-command-table button in src/modules/PublicLab.RichTextModule.Table.js.

Fixes #664

Adjust the CSS styling of the rich text toolbar buttons to match Bootstrap 4 for consistency.

* Add the `btn` and `btn-light` classes to the buttons in `src/adapters/PublicLab.Woofmark.js`.
* Remove the `btn-sm` class from the buttons in `src/adapters/PublicLab.Woofmark.js`.
* Remove the `btn-outline-secondary` class from the `woofmark-command-insert` button in `src/modules/PublicLab.CustomInsert.js`.
* Add the `btn` and `btn-light` classes to the `woofmark-command-insert` button in `src/modules/PublicLab.CustomInsert.js`.
* Remove the `btn-outline-secondary` class from the `woofmark-command-autocenter` button in `src/modules/PublicLab.RichTextModule.AutoCenter.js`.
* Add the `btn` and `btn-light` classes to the `woofmark-command-autocenter` button in `src/modules/PublicLab.RichTextModule.AutoCenter.js`.
* Remove the `btn-outline-secondary` class from the `woofmark-command-embed` button in `src/modules/PublicLab.RichTextModule.Embed.js`.
* Add the `btn` and `btn-light` classes to the `woofmark-command-embed` button in `src/modules/PublicLab.RichTextModule.Embed.js`.
* Remove the `btn-outline-secondary` class from the `woofmark-command-horizontal-rule` button in `src/modules/PublicLab.RichTextModule.HorizontalRule.js`.
* Add the `btn` and `btn-light` classes to the `woofmark-command-horizontal-rule` button in `src/modules/PublicLab.RichTextModule.HorizontalRule.js`.
* Remove the `btn-outline-secondary` class from the `woofmark-command-table` button in `src/modules/PublicLab.RichTextModule.Table.js`.
* Add the `btn` and `btn-light` classes to the `woofmark-command-table` button in `src/modules/PublicLab.RichTextModule.Table.js`.
Fix basic bugs in the UI.

* Enable the "Publish" button in `examples/index.html` when all required fields are filled by adding an event listener.
* Remove the "Drag an image here to upload" text in `examples/errors.html` after an image is uploaded.
* Fix the toolbar in `src/modules/PublicLab.RichTextModule.js` to float correctly when scrolling through the editor text area.
* Remove the markdown warning message in `src/modules/PublicLab.RichTextModule.js` after switching to markdown mode.
* Remove the data URLs warning message in `src/modules/PublicLab.RichTextModule.js` after removing the invalid image format.
* Remove the invalid bold tags warning message in `src/modules/PublicLab.RichTextModule.js` after removing the invalid tags.
Fix UI bugs in PublicLab.Editor
@Recxsmacx Recxsmacx closed this by deleting the head repository Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust CSS styling of rich text toolbar to Bootstrap 4 for consistency
1 participant