Converting data-name editor plugin to Gutenberg plugin

Looking at the Gutenberg code in the GitHub repo, we can look at how the inline image format is implemented: https://github.com/WordPress/gutenberg/blob/99f31cdb4ed035264e0332b72dd3a2287d93ff50/packages/format-library/src/image/index.js#L17-L30 export const image = { name, title: __( ‘Image’ ), keywords: [ __( ‘photo’ ), __( ‘media’ ) ], object: true, tagName: ‘img’, className: null, attributes: { className: ‘class’, style: ‘style’, url: ‘src’, alt: … Read more

Can we use a library under MIT license in a WooCommerce plugin?

Disclaimer: I’m not a lawyer, so this isn’t legal advice. Yes, you can include MIT licensed code in something you sell. The MIT license is very permissive. From the license: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in … Read more