View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006779 | WYSIWYG Editor + Media Gallery | module WYSIWYG Editor + Media Gallery - sub | public | 2018-01-25 15:51 | 2019-12-17 13:24 |
Reporter | marco_steinhaeuser | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.0.0 | ||||
Fixed in Version | 2.3.0 | ||||
Summary | 0006779: Summernote breaks smarty variables | ||||
Description | When using summernote as an editor for newsletters, parsing this newsletter breaks and the preview will switch to maintenance mode in admin. The reason for it is that code like > will be stored to the database as an entity (">"). This is actually like a WYSIWYG editor shall behave but very cumbersome when using Smarty variables in a newsletter in order to gather for example customer and product item data. | ||||
Tags | No tags attached. | ||||
related to | 0007045 | resolved | anton.fedurtsya | Editor breaks smarty function |
has duplicate | 0006932 | closed | QA | WYSIWYG editor breaks smarty code |
|
Hi, this problem also occurs with cms-content. Especially in email-content such as "oxadminorderemail" this is a huge problem, because after a simple click on saving the CMS page, the order completion in frontend no longer works. I created a small module, that fixes the problem at least in CMS pages. Before saving to database, "-& gt;" is converted back to ">": https://github.com/eComStyle-de/FixSmartyInContent/blob/master/Controller/Admin/ContentMain.php#L39 |
|
Hello, another quickfix is to replace the block admin_headitem_js in source/Application/views/admin/tpl/headitem.tpl and replace the tags here if (textVal != null) { var oTarget = document.getElementsByName( 'editval['+ sIdent + ']' ); if ( oTarget != null && ( oField = oTarget.item( 0 ) ) != null ) { -> replace smarty tags here within textVal oField.value = textVal; } } This works also for articles and categories. |
|
Pull Request for Fix: https://github.com/OXID-eSales/ddoe-wysiwyg-editor-module/pull/13 |
|
The pull request merged. |