How to create custom category attribute with wysiwyg editor in magento2?
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 2 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