How to create custom category attribute with wysiwyg editor in magento2?Add a wysiwyg editor in custom...
They call me Inspector Morse
What is wrong with Escaped Shapeshifter's original wording?
What do you call the air that rushes into your car in the highway?
Why is this plane circling around the Lucknow airport every day?
Can someone explain what is being said here in color publishing in the American Mathematical Monthly?
Is having access to past exams cheating and, if yes, could it be proven just by a good grade?
Solving "Resistance between two nodes on a grid" problem in Mathematica
How do anti-virus programs start at Windows boot?
Does splitting a potentially monolithic application into several smaller ones help prevent bugs?
What is the chance of making a successful appeal to dismissal decision from a PhD program after failing the qualifying exam in the 2nd attempt?
Do items de-spawn in Diablo?
Good allowance savings plan?
My story is written in English, but is set in my home country. What language should I use for the dialogue?
What are the best books to study Neural Networks from a purely mathematical perspective?
Examples of a statistic that is not independent of sample's distribution?
Could a cubesat propel itself to Mars?
2×2×2 rubik's cube corner is twisted!
The bar has been raised
infinitive telling the purpose
Good for you! in Russian
Do f-stop and exposure time perfectly cancel?
Does a Catoblepas statblock appear in an official D&D 5e product?
Accountant/ lawyer will not return my call
Is Gradient Descent central to every optimizer?
How to create custom category attribute with wysiwyg editor in magento2?
Add a wysiwyg editor in custom category attributeContent of wysiwyg editorShow WYSIWYG button below custom category attributeAdd WYSIWYG Editor To Custom WidgetHow can I enable WYSIWYG for product attribute field?Adding wysiwyg editor to Magento 2 product attribute options pageMagento2 - Widget with WYSIWYG editorMagento: Category WYSIWYG Editor Image not displaying on custom pageAdd Wysiwyg attribute to category in Magento 2.2.4Magento2: Category custom textarea with wysiwyg editor attribute value blank issue
Hi i want to add custom category attribute with wysiwyg enable editor i get the code of custom category attribute but not able to find with wysiwyg editor.if anyone is there help me please.
magento2 wysiwyg category-attribute
add a comment |
Hi i want to add custom category attribute with wysiwyg enable editor i get the code of custom category attribute but not able to find with wysiwyg editor.if anyone is there help me please.
magento2 wysiwyg category-attribute
Did you enabled attribute wysiwyg value. Please check URL inchoo.net/magento-2/add-category-attribute-magento-2
– Nits
May 24 '18 at 5:44
yes i enabled but its not working..and i also follow all steps of inchoo which link you gave me.
– Shilpi Varshney
May 24 '18 at 6:03
Okay Can you please check added attribute in your db catalog_eav_attribute table is_wysiwyg_enabled and is_html_allowed_on_front, it should be 1
– Nits
May 24 '18 at 6:12
add a comment |
Hi i want to add custom category attribute with wysiwyg enable editor i get the code of custom category attribute but not able to find with wysiwyg editor.if anyone is there help me please.
magento2 wysiwyg category-attribute
Hi i want to add custom category attribute with wysiwyg enable editor i get the code of custom category attribute but not able to find with wysiwyg editor.if anyone is there help me please.
magento2 wysiwyg category-attribute
magento2 wysiwyg category-attribute
asked May 24 '18 at 5:28
Shilpi VarshneyShilpi Varshney
126
126
Did you enabled attribute wysiwyg value. Please check URL inchoo.net/magento-2/add-category-attribute-magento-2
– Nits
May 24 '18 at 5:44
yes i enabled but its not working..and i also follow all steps of inchoo which link you gave me.
– Shilpi Varshney
May 24 '18 at 6:03
Okay Can you please check added attribute in your db catalog_eav_attribute table is_wysiwyg_enabled and is_html_allowed_on_front, it should be 1
– Nits
May 24 '18 at 6:12
add a comment |
Did you enabled attribute wysiwyg value. Please check URL inchoo.net/magento-2/add-category-attribute-magento-2
– Nits
May 24 '18 at 5:44
yes i enabled but its not working..and i also follow all steps of inchoo which link you gave me.
– Shilpi Varshney
May 24 '18 at 6:03
Okay Can you please check added attribute in your db catalog_eav_attribute table is_wysiwyg_enabled and is_html_allowed_on_front, it should be 1
– Nits
May 24 '18 at 6:12
Did you enabled attribute wysiwyg value. Please check URL inchoo.net/magento-2/add-category-attribute-magento-2
– Nits
May 24 '18 at 5:44
Did you enabled attribute wysiwyg value. Please check URL inchoo.net/magento-2/add-category-attribute-magento-2
– Nits
May 24 '18 at 5:44
yes i enabled but its not working..and i also follow all steps of inchoo which link you gave me.
– Shilpi Varshney
May 24 '18 at 6:03
yes i enabled but its not working..and i also follow all steps of inchoo which link you gave me.
– Shilpi Varshney
May 24 '18 at 6:03
Okay Can you please check added attribute in your db catalog_eav_attribute table is_wysiwyg_enabled and is_html_allowed_on_front, it should be 1
– Nits
May 24 '18 at 6:12
Okay Can you please check added attribute in your db catalog_eav_attribute table is_wysiwyg_enabled and is_html_allowed_on_front, it should be 1
– Nits
May 24 '18 at 6:12
add a comment |
1 Answer
1
active
oldest
votes
Please follow below steps to create a custom Category attribute and add it as WYSIWYG Editor in Category form.
Step 1 : Create custom attribute through Install or Upgrade Script.
Below is an example of install script.
Namespace/Modulename/Setup/InstallData.php
<?php
namespace VendorNamespaceSetup;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoCatalogSetupCategorySetupFactory;
use MagentoEavModelEntityAttributeScopedAttributeInterface;
class InstallData implements InstallDataInterface
{
public function __construct( CategorySetupFactory $categorySetupFactory )
{
$this->categorySetupFactory = $categorySetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
$categorySetup->addAttribute(
MagentoCatalogModelCategory::ENTITY, 'category_custom_editor', [
'type' => 'text',
'label' => 'Custom Editor',
'input' => 'textarea',
'backend' => 'MagentoEavModelEntityAttributeBackendArrayBackend',
'wysiwyg_enabled' => true,
'is_html_allowed_on_front' => true,
'required' => false,
'sort_order' => 10,
'global' => ScopedAttributeInterface::SCOPE_STORE
]
);
$setup->endSetup();
}
}
Run php bin/magento setup:upgrade console command to upgrade your data. Now you custom attribute will be created.
Step 2 : Add the Custom attribute in Category Form with WYSIWYG Editor
Namespace/ModuleName/view/adminhtml/ui_component/category_form.xml
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="content">
<field name="category_custom_editor" template="ui/form/field" sortOrder="10" formElement="wysiwyg">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="wysiwygConfigData" xsi:type="array">
<item name="settings" xsi:type="array">
<item name="theme_advanced_buttons1" xsi:type="string">bold,italic,|,justifyleft,justifycenter,justifyright,|,fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,bullist,numlist,|,code</item>
<item name="theme_advanced_buttons2" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons3" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons4" xsi:type="boolean">false</item>
<item name="theme_advanced_statusbar_location" xsi:type="boolean">false</item>
</item>
<item name="height" xsi:type="string">10px</item>
<item name="toggle_button" xsi:type="boolean">false</item>
<item name="add_variables" xsi:type="boolean">true</item>
<item name="add_widgets" xsi:type="boolean">false</item>
<item name="add_images" xsi:type="boolean">true</item>
<item name="add_directives" xsi:type="boolean">true</item>
</item>
<item name="source" xsi:type="string">category</item>
</item>
</argument>
<settings>
<scopeLabel>[STORE VIEW]</scopeLabel>
<label translate="true">Custom Editor</label>
<dataScope>category_custom_editor</dataScope>
</settings>
<formElements>
<wysiwyg class="MagentoCatalogUiComponentCategoryFormElementWysiwyg">
<settings>
<rows>4</rows>
<wysiwyg>true</wysiwyg>
</settings>
</wysiwyg>
</formElements>
</field>
</fieldset>
</form>
Clear the cache if you have enabled it. Now you can see you custom editor attribute in Admin Category edit form.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f227279%2fhow-to-create-custom-category-attribute-with-wysiwyg-editor-in-magento2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please follow below steps to create a custom Category attribute and add it as WYSIWYG Editor in Category form.
Step 1 : Create custom attribute through Install or Upgrade Script.
Below is an example of install script.
Namespace/Modulename/Setup/InstallData.php
<?php
namespace VendorNamespaceSetup;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoCatalogSetupCategorySetupFactory;
use MagentoEavModelEntityAttributeScopedAttributeInterface;
class InstallData implements InstallDataInterface
{
public function __construct( CategorySetupFactory $categorySetupFactory )
{
$this->categorySetupFactory = $categorySetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
$categorySetup->addAttribute(
MagentoCatalogModelCategory::ENTITY, 'category_custom_editor', [
'type' => 'text',
'label' => 'Custom Editor',
'input' => 'textarea',
'backend' => 'MagentoEavModelEntityAttributeBackendArrayBackend',
'wysiwyg_enabled' => true,
'is_html_allowed_on_front' => true,
'required' => false,
'sort_order' => 10,
'global' => ScopedAttributeInterface::SCOPE_STORE
]
);
$setup->endSetup();
}
}
Run php bin/magento setup:upgrade console command to upgrade your data. Now you custom attribute will be created.
Step 2 : Add the Custom attribute in Category Form with WYSIWYG Editor
Namespace/ModuleName/view/adminhtml/ui_component/category_form.xml
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="content">
<field name="category_custom_editor" template="ui/form/field" sortOrder="10" formElement="wysiwyg">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="wysiwygConfigData" xsi:type="array">
<item name="settings" xsi:type="array">
<item name="theme_advanced_buttons1" xsi:type="string">bold,italic,|,justifyleft,justifycenter,justifyright,|,fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,bullist,numlist,|,code</item>
<item name="theme_advanced_buttons2" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons3" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons4" xsi:type="boolean">false</item>
<item name="theme_advanced_statusbar_location" xsi:type="boolean">false</item>
</item>
<item name="height" xsi:type="string">10px</item>
<item name="toggle_button" xsi:type="boolean">false</item>
<item name="add_variables" xsi:type="boolean">true</item>
<item name="add_widgets" xsi:type="boolean">false</item>
<item name="add_images" xsi:type="boolean">true</item>
<item name="add_directives" xsi:type="boolean">true</item>
</item>
<item name="source" xsi:type="string">category</item>
</item>
</argument>
<settings>
<scopeLabel>[STORE VIEW]</scopeLabel>
<label translate="true">Custom Editor</label>
<dataScope>category_custom_editor</dataScope>
</settings>
<formElements>
<wysiwyg class="MagentoCatalogUiComponentCategoryFormElementWysiwyg">
<settings>
<rows>4</rows>
<wysiwyg>true</wysiwyg>
</settings>
</wysiwyg>
</formElements>
</field>
</fieldset>
</form>
Clear the cache if you have enabled it. Now you can see you custom editor attribute in Admin Category edit form.
add a comment |
Please follow below steps to create a custom Category attribute and add it as WYSIWYG Editor in Category form.
Step 1 : Create custom attribute through Install or Upgrade Script.
Below is an example of install script.
Namespace/Modulename/Setup/InstallData.php
<?php
namespace VendorNamespaceSetup;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoCatalogSetupCategorySetupFactory;
use MagentoEavModelEntityAttributeScopedAttributeInterface;
class InstallData implements InstallDataInterface
{
public function __construct( CategorySetupFactory $categorySetupFactory )
{
$this->categorySetupFactory = $categorySetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
$categorySetup->addAttribute(
MagentoCatalogModelCategory::ENTITY, 'category_custom_editor', [
'type' => 'text',
'label' => 'Custom Editor',
'input' => 'textarea',
'backend' => 'MagentoEavModelEntityAttributeBackendArrayBackend',
'wysiwyg_enabled' => true,
'is_html_allowed_on_front' => true,
'required' => false,
'sort_order' => 10,
'global' => ScopedAttributeInterface::SCOPE_STORE
]
);
$setup->endSetup();
}
}
Run php bin/magento setup:upgrade console command to upgrade your data. Now you custom attribute will be created.
Step 2 : Add the Custom attribute in Category Form with WYSIWYG Editor
Namespace/ModuleName/view/adminhtml/ui_component/category_form.xml
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="content">
<field name="category_custom_editor" template="ui/form/field" sortOrder="10" formElement="wysiwyg">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="wysiwygConfigData" xsi:type="array">
<item name="settings" xsi:type="array">
<item name="theme_advanced_buttons1" xsi:type="string">bold,italic,|,justifyleft,justifycenter,justifyright,|,fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,bullist,numlist,|,code</item>
<item name="theme_advanced_buttons2" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons3" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons4" xsi:type="boolean">false</item>
<item name="theme_advanced_statusbar_location" xsi:type="boolean">false</item>
</item>
<item name="height" xsi:type="string">10px</item>
<item name="toggle_button" xsi:type="boolean">false</item>
<item name="add_variables" xsi:type="boolean">true</item>
<item name="add_widgets" xsi:type="boolean">false</item>
<item name="add_images" xsi:type="boolean">true</item>
<item name="add_directives" xsi:type="boolean">true</item>
</item>
<item name="source" xsi:type="string">category</item>
</item>
</argument>
<settings>
<scopeLabel>[STORE VIEW]</scopeLabel>
<label translate="true">Custom Editor</label>
<dataScope>category_custom_editor</dataScope>
</settings>
<formElements>
<wysiwyg class="MagentoCatalogUiComponentCategoryFormElementWysiwyg">
<settings>
<rows>4</rows>
<wysiwyg>true</wysiwyg>
</settings>
</wysiwyg>
</formElements>
</field>
</fieldset>
</form>
Clear the cache if you have enabled it. Now you can see you custom editor attribute in Admin Category edit form.
add a comment |
Please follow below steps to create a custom Category attribute and add it as WYSIWYG Editor in Category form.
Step 1 : Create custom attribute through Install or Upgrade Script.
Below is an example of install script.
Namespace/Modulename/Setup/InstallData.php
<?php
namespace VendorNamespaceSetup;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoCatalogSetupCategorySetupFactory;
use MagentoEavModelEntityAttributeScopedAttributeInterface;
class InstallData implements InstallDataInterface
{
public function __construct( CategorySetupFactory $categorySetupFactory )
{
$this->categorySetupFactory = $categorySetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
$categorySetup->addAttribute(
MagentoCatalogModelCategory::ENTITY, 'category_custom_editor', [
'type' => 'text',
'label' => 'Custom Editor',
'input' => 'textarea',
'backend' => 'MagentoEavModelEntityAttributeBackendArrayBackend',
'wysiwyg_enabled' => true,
'is_html_allowed_on_front' => true,
'required' => false,
'sort_order' => 10,
'global' => ScopedAttributeInterface::SCOPE_STORE
]
);
$setup->endSetup();
}
}
Run php bin/magento setup:upgrade console command to upgrade your data. Now you custom attribute will be created.
Step 2 : Add the Custom attribute in Category Form with WYSIWYG Editor
Namespace/ModuleName/view/adminhtml/ui_component/category_form.xml
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="content">
<field name="category_custom_editor" template="ui/form/field" sortOrder="10" formElement="wysiwyg">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="wysiwygConfigData" xsi:type="array">
<item name="settings" xsi:type="array">
<item name="theme_advanced_buttons1" xsi:type="string">bold,italic,|,justifyleft,justifycenter,justifyright,|,fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,bullist,numlist,|,code</item>
<item name="theme_advanced_buttons2" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons3" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons4" xsi:type="boolean">false</item>
<item name="theme_advanced_statusbar_location" xsi:type="boolean">false</item>
</item>
<item name="height" xsi:type="string">10px</item>
<item name="toggle_button" xsi:type="boolean">false</item>
<item name="add_variables" xsi:type="boolean">true</item>
<item name="add_widgets" xsi:type="boolean">false</item>
<item name="add_images" xsi:type="boolean">true</item>
<item name="add_directives" xsi:type="boolean">true</item>
</item>
<item name="source" xsi:type="string">category</item>
</item>
</argument>
<settings>
<scopeLabel>[STORE VIEW]</scopeLabel>
<label translate="true">Custom Editor</label>
<dataScope>category_custom_editor</dataScope>
</settings>
<formElements>
<wysiwyg class="MagentoCatalogUiComponentCategoryFormElementWysiwyg">
<settings>
<rows>4</rows>
<wysiwyg>true</wysiwyg>
</settings>
</wysiwyg>
</formElements>
</field>
</fieldset>
</form>
Clear the cache if you have enabled it. Now you can see you custom editor attribute in Admin Category edit form.
Please follow below steps to create a custom Category attribute and add it as WYSIWYG Editor in Category form.
Step 1 : Create custom attribute through Install or Upgrade Script.
Below is an example of install script.
Namespace/Modulename/Setup/InstallData.php
<?php
namespace VendorNamespaceSetup;
use MagentoFrameworkSetupInstallDataInterface;
use MagentoFrameworkSetupModuleContextInterface;
use MagentoFrameworkSetupModuleDataSetupInterface;
use MagentoCatalogSetupCategorySetupFactory;
use MagentoEavModelEntityAttributeScopedAttributeInterface;
class InstallData implements InstallDataInterface
{
public function __construct( CategorySetupFactory $categorySetupFactory )
{
$this->categorySetupFactory = $categorySetupFactory;
}
public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
$setup->startSetup();
$categorySetup = $this->categorySetupFactory->create(['setup' => $setup]);
$categorySetup->addAttribute(
MagentoCatalogModelCategory::ENTITY, 'category_custom_editor', [
'type' => 'text',
'label' => 'Custom Editor',
'input' => 'textarea',
'backend' => 'MagentoEavModelEntityAttributeBackendArrayBackend',
'wysiwyg_enabled' => true,
'is_html_allowed_on_front' => true,
'required' => false,
'sort_order' => 10,
'global' => ScopedAttributeInterface::SCOPE_STORE
]
);
$setup->endSetup();
}
}
Run php bin/magento setup:upgrade console command to upgrade your data. Now you custom attribute will be created.
Step 2 : Add the Custom attribute in Category Form with WYSIWYG Editor
Namespace/ModuleName/view/adminhtml/ui_component/category_form.xml
<?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<fieldset name="content">
<field name="category_custom_editor" template="ui/form/field" sortOrder="10" formElement="wysiwyg">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="wysiwygConfigData" xsi:type="array">
<item name="settings" xsi:type="array">
<item name="theme_advanced_buttons1" xsi:type="string">bold,italic,|,justifyleft,justifycenter,justifyright,|,fontselect,fontsizeselect,|,forecolor,backcolor,|,link,unlink,image,|,bullist,numlist,|,code</item>
<item name="theme_advanced_buttons2" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons3" xsi:type="boolean">false</item>
<item name="theme_advanced_buttons4" xsi:type="boolean">false</item>
<item name="theme_advanced_statusbar_location" xsi:type="boolean">false</item>
</item>
<item name="height" xsi:type="string">10px</item>
<item name="toggle_button" xsi:type="boolean">false</item>
<item name="add_variables" xsi:type="boolean">true</item>
<item name="add_widgets" xsi:type="boolean">false</item>
<item name="add_images" xsi:type="boolean">true</item>
<item name="add_directives" xsi:type="boolean">true</item>
</item>
<item name="source" xsi:type="string">category</item>
</item>
</argument>
<settings>
<scopeLabel>[STORE VIEW]</scopeLabel>
<label translate="true">Custom Editor</label>
<dataScope>category_custom_editor</dataScope>
</settings>
<formElements>
<wysiwyg class="MagentoCatalogUiComponentCategoryFormElementWysiwyg">
<settings>
<rows>4</rows>
<wysiwyg>true</wysiwyg>
</settings>
</wysiwyg>
</formElements>
</field>
</fieldset>
</form>
Clear the cache if you have enabled it. Now you can see you custom editor attribute in Admin Category edit form.
answered 18 mins ago
AgnesAgnes
577213
577213
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f227279%2fhow-to-create-custom-category-attribute-with-wysiwyg-editor-in-magento2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you enabled attribute wysiwyg value. Please check URL inchoo.net/magento-2/add-category-attribute-magento-2
– Nits
May 24 '18 at 5:44
yes i enabled but its not working..and i also follow all steps of inchoo which link you gave me.
– Shilpi Varshney
May 24 '18 at 6:03
Okay Can you please check added attribute in your db catalog_eav_attribute table is_wysiwyg_enabled and is_html_allowed_on_front, it should be 1
– Nits
May 24 '18 at 6:12