Skip to content

Commit 262b3d5

Browse files
authored
Merge pull request #773 from Bashev/remove-maxlength-url-link
Remove maxlength limit for URL Links in page builder.
2 parents 78028ca + 3de2b31 commit 262b3d5

File tree

2 files changed

+27
-0
lines changed
  • app/code/Magento/PageBuilder

2 files changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
declare(strict_types=1);
8+
9+
namespace Magento\PageBuilder\Ui\Component\UrlInput;
10+
11+
/** Provides configuration for url input link */
12+
class Url implements \Magento\Ui\Model\UrlInput\ConfigInterface
13+
{
14+
/**
15+
* @inheritdoc
16+
*/
17+
public function getConfig(): array
18+
{
19+
return [
20+
'label' => __('URL'),
21+
'component' => 'Magento_Ui/js/form/element/abstract',
22+
'template' => 'Magento_PageBuilder/form/element/input-no-maxlength',
23+
'sortOrder' => 20
24+
];
25+
}
26+
}

app/code/Magento/PageBuilder/etc/adminhtml/di.xml

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
<arguments>
108108
<argument name="linksConfiguration" xsi:type="array">
109109
<item name="page" xsi:type="string">Magento\PageBuilder\Ui\Component\UrlInput\Page</item>
110+
<item name="default" xsi:type="string">Magento\PageBuilder\Ui\Component\UrlInput\Url</item>
110111
</argument>
111112
</arguments>
112113
</type>

0 commit comments

Comments
 (0)