View Issue Details

IDProjectCategoryView StatusLast Update
0006779WYSIWYG Editor + Media Gallerymodule WYSIWYG Editor + Media Gallery - subpublic2019-12-17 13:24
Reportermarco_steinhaeuser Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.0.0 
Fixed in Version2.3.0 
Summary0006779: Summernote breaks smarty variables
DescriptionWhen 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.
TagsNo tags attached.

Relationships

related to 0007045 resolvedanton.fedurtsya Editor breaks smarty function 
has duplicate 0006932 closedQA WYSIWYG editor breaks smarty code 

Activities

nickname

2018-04-20 08:14

reporter   ~0012446

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

hrieth

2018-05-02 20:41

reporter   ~0012467

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.

mario_lorenz

2019-11-17 20:51

developer   ~0013045

Pull Request for Fix: https://github.com/OXID-eSales/ddoe-wysiwyg-editor-module/pull/13

anton.fedurtsya

2019-12-17 13:23

administrator   ~0013072

The pull request merged.