editor.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. wp.domReady( () => {
  2. wp.blocks.unregisterBlockStyle( 'core/button', 'default' );
  3. wp.blocks.unregisterBlockStyle( 'core/button', 'outline' );
  4. wp.blocks.unregisterBlockStyle( 'core/button', 'squared' );
  5. wp.blocks.unregisterBlockStyle( 'core/button', 'outline');
  6. wp.blocks.unregisterBlockStyle( 'core/button', 'fill');
  7. wp.blocks.registerBlockStyle( 'core/button', {
  8. name: 'bootstrap-primary',
  9. label: 'Primary',
  10. });
  11. wp.blocks.registerBlockStyle( 'core/button', {
  12. name: 'bootstrap-secondary',
  13. label: 'Secondary',
  14. });
  15. wp.blocks.registerBlockStyle( 'core/button', {
  16. name: 'bootstrap-success',
  17. label: 'Success',
  18. });
  19. wp.blocks.registerBlockStyle( 'core/button', {
  20. name: 'bootstrap-outline-primary',
  21. label: 'Primary Outline',
  22. });
  23. wp.blocks.registerBlockStyle( 'core/button', {
  24. name: 'bootstrap-outline-secondary',
  25. label: 'Secondary Outline',
  26. });
  27. wp.blocks.registerBlockStyle( 'core/button', {
  28. name: 'bootstrap-outline-success',
  29. label: 'Success Outline',
  30. });
  31. wp.blocks.registerBlockStyle( 'core/button', {
  32. name: 'bootstrap-primary-lg',
  33. label: 'Primary Large',
  34. });
  35. wp.blocks.registerBlockStyle( 'core/button', {
  36. name: 'bootstrap-secondary-lg',
  37. label: 'Secondary Large',
  38. });
  39. wp.blocks.registerBlockStyle( 'core/button', {
  40. name: 'bootstrap-success-lg',
  41. label: 'Success Large',
  42. });
  43. wp.blocks.registerBlockStyle( 'core/button', {
  44. name: 'bootstrap-outline-primary-lg',
  45. label: 'Primary Outline Large',
  46. });
  47. wp.blocks.registerBlockStyle( 'core/button', {
  48. name: 'bootstrap-outline-secondary-lg',
  49. label: 'Secondary Outline Large',
  50. });
  51. wp.blocks.registerBlockStyle( 'core/button', {
  52. name: 'bootstrap-outline-success-lg',
  53. label: 'Success Outline Large',
  54. });
  55. });