zoukankan      html  css  js  c++  java
  • 在mangento后台调用wysiwyg编辑器

    在mangento后台调用操蛋的wysiwyg编辑器:

    1.在头部加载TincyMCE

      protected function _prepareLayout() {
        parent::_prepareLayout();
        if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
            $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
        }
    2.
    $fieldset->addField('content', 'editor', array(
        'name'      => 'content',
        'label'     => Mage::helper('demomodule')->__('Content'),
        'title'     => Mage::helper('demomodule')->__('Content'),
        'style'     => 'height:15em',
        'config'    => Mage::getSingleton('cms/wysiwyg_config')->getConfig(),
        'wysiwyg'   => true,
        'required'  => false,
    ));
    作者:冯亮
             
    能力有限,水平一般。如有错误,欢迎指正
  • 相关阅读:
    Lookup注解
    解决数据量大,分页查询慢的方案
    一个http的请求分析
    MYSQL
    什么是性能优化
    编码规范随笔
    装饰者模式
    单例模式
    J.U.C并发包(1)
    Java内存模型
  • 原文地址:https://www.cnblogs.com/fengliang/p/3766311.html
Copyright © 2011-2022 走看看