View Issue Details

IDProjectCategoryView StatusLast Update
0005295OXID eShop (all versions)2.4. Administer productspublic2015-12-01 10:36
Reportermartinwegele 
PrioritylowSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version4.7.6 / 5.0.6 
Target VersionFixed in Version 
Summary0005295: Impossible to use more than one wysiwyg-editor on one page
DescriptionI tried to have another wysiwyg-pro editor in the article-main tab of the admin area. But it did not work.
One obstacle is
if ( $this->_oEditor === null ) {
in oxAdminDetails::_getTextEditor .
But it seems there are more problems because if I reset $this->_oEditor = null; in _generateTextEditor the content of the editor is empty, so there must be something wrong with _getEditValue.
Steps To Reproduce1. Insert
 $this->_aViewData["myeditor"] = $this->_generateTextEditor( "100%", 300, $oArticle, "oxarticles__oxshortdesc", "details.tpl.css");
in admin/article_main.php's render-method.
2. Add an additional Smarty-tag [{ $myeditor }] in /application/views/admin/tpl/article_main.tpl
3. Try to edit a product in the admin area.
4. Insert $this->_oEditor = null; in the first line of oxAdminDetails::_generateTextEditor
5. Try to edit a product in the admin area.
Additional InformationIt seems that _getEditValue is not called at all.
Additionally you will have to modify one line in application\views\admin\tpl\article_main.tpl:
<form name="myedit" id="myedit" action="[{ $oViewConf->getSelfLink() }]" method="post" onSubmit="return copyLongDesc( 'oxarticles__oxlongdesc' );" style="padding: 0px;margin: 0px;height:0px;">
TagsWYSIWYG
ThemeNot defined
BrowserAll
PHP VersionNot defined
MySQL VersionNot defined

Relationships

related to 0006177 acknowledgedflorian.auer Article_Main::_getEditValue($oObject, $sField) always returns OXLONGDESC, ignoring $sField