Language Selection

简体中文English
Home News & Blog Developers' Blog Magento non Editor insert picture
Wednesday, 01 March 2017 18:06

Magento non Editor insert picture

MediabrowserUtility 对象默认支持textarea,在js/mage/adminhtml/browser.js文件中
if (targetEl.tagName.toLowerCase() == ‘textarea’ ) {
params.as_is = 1;

其中as_is=1 决定双击图片时的返回值类型,只有带这个参数as_is=1,回来才是
< img alt=”” src=”{{media url=”wysiwyg/test/a.jpg”}}”/>
所以要换成
if (targetEl.tagName.toLowerCase() == ‘textarea’ || targetEl.tagName.toLowerCase() == ‘div’) {
params.as_is = 1;
}
并在成功回调里判断div类型做相应处理

About Us Portfolios Technical Competence News & Blog

Founded in 2008, EveBit Digital, a CMMI3 Certified Company, has grown to become one of China’s foremost eCommerce & Portal companies providing solution and development services.

As professionals, we specialize in delivering sophisticated Websites custom-designed to meet each client’s unique requirements using PHP, Magento, Joomla!, Drupal, WordPress, WeChat and Android / iOS for Internet Applications.

Under the guidance of our Certified Zend and Magento Engineers, we employ the very best web technologies available for Brand eCommerce, Cross-border eCommerce, O2O Platform, Content Management Systems (CMS) and Mobile Internet solutions.

CMS Experts

Our team provides full levels of CMS solutions from personal blog, small firm to portal and eCommerce. We are the few company in China, who delivered commerical projects for all the major PHP based CMS systems such as WordPress, Joomla!, TYPO3 and Drupal.

Web to Mobile solutions

Starting from PHP, covering web and mobile; we offer a complete suite of tools and services to cross-platform browsing experiences on CMS and eCommerce, we have helped clients deployed them not only on web, but also as android and iOS applications.

Magento Professionals

On the powerful eCommerce platform Magento, we offer an end-to-end service from stunning design to seamless integration with ERP and payment gateway. Five of developers passed the Magento Certified Developer, more than any company in China.

Zend Certified

We have a large team worked with Zend Framework in a number of different contexts, such as bespoke applications on enterprise-level projects for organisations and governments; some of our engineers passed the Zend Certified Engineer.


Scan for contact info

武汉伊锐数码技术开发有限公司  版权所有  鄂ICP备13005424号
Copyright © 2016 EveBit Digital            All Rights Reserved.