i create a custom attribute in customer form,that is textarea, in that i need to add the WYSIWYG editor.
your suggestion and idea will help me more
customer-attributemagento-1.9PHPwysiwyg
i create a custom attribute in customer form,that is textarea, in that i need to add the WYSIWYG editor.
your suggestion and idea will help me more
Best Answer
Here is what worked for me.
First of all, the attribute
education
must have thefrontend_input
set toeditor
. If you already have the attribute change the value of thefrontend_input
column in theeav_attribute
table toeditor
.If you are willing to start from scratch here is a full module that worked for me.
Let's call the module
StackExchange_Education
.You will need the following files.
app/etc/modules/StackExchange_Education.xml
- the declaration fileapp/code/local/StackExchange/Education/etc/config.xml
- the configuration fileapp/code/local/StackExchange/Education/sql/stackexchange_education_setup/install-1.0.0.php
- the install script that adds the attribute. If you already have the attribute and you just change the frontend_input to editor you don't need thisapp/code/local/StackExchange/Education/Block/Adminhtml/Customer/Edit/Tab/Account.php
- the rewrite of the admin account blockapp/design/adminhtml/default/default/layout/stackexchange_education.xml
- the layout file for enabling the editorClear the cache and give it a try.