Remove unused constant
[MAILPOET-5642]
This commit is contained in:
committed by
Rostislav Wolný
parent
d4e2836a9d
commit
4b306dbca1
@@ -7,11 +7,6 @@ namespace MailPoet\EmailEditor\Engine\Renderer\Preprocessors;
|
|||||||
* The final width in pixels is stored in the email_attrs array because we would like to avoid changing the original attributes.
|
* The final width in pixels is stored in the email_attrs array because we would like to avoid changing the original attributes.
|
||||||
*/
|
*/
|
||||||
class BlocksWidthPreprocessor implements Preprocessor {
|
class BlocksWidthPreprocessor implements Preprocessor {
|
||||||
|
|
||||||
const BLOCKS_WITHOUT_WIDTH = [
|
|
||||||
'core/paragraph',
|
|
||||||
];
|
|
||||||
|
|
||||||
public function preprocess(array $parsedBlocks, array $layoutStyles): array {
|
public function preprocess(array $parsedBlocks, array $layoutStyles): array {
|
||||||
foreach ($parsedBlocks as $key => $block) {
|
foreach ($parsedBlocks as $key => $block) {
|
||||||
// Layout width is recalculated for each block because full-width blocks don't exclude padding
|
// Layout width is recalculated for each block because full-width blocks don't exclude padding
|
||||||
|
Reference in New Issue
Block a user