File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
lib/web/mage/adminhtml/wysiwyg/tiny_mce Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,12 @@ define([
461461 decodeDirectives : function ( content ) {
462462 // escape special chars in directives url to use it in regular expression
463463 var url = this . makeDirectiveUrl ( '%directive%' ) . replace ( / ( [ $ ^ . ? * ! + : = ( ) \[ \] { } | \\ ] ) / g, '\\$1' ) ,
464- reg = new RegExp ( url . replace ( '%directive%' , '([a-zA-Z0-9,_-]+)' ) ) ;
464+ reg = new RegExp ( url . replace ( '%directive%' , '([a-zA-Z0-9,_-]+)' ) ) ,
465+ uriReg = / _ _ _ d i r e c t i v e \/ ( .* ) \/ k e y \/ / g;
466+
467+ content = content . replace ( uriReg , function ( match ) {
468+ return decodeURIComponent ( match ) ;
469+ } ) ;
465470
466471 return content . gsub ( reg , function ( match ) { //eslint-disable-line no-extra-bind
467472 return Base64 . mageDecode ( match [ 1 ] ) ;
You can’t perform that action at this time.
0 commit comments