Skip to content

Commit

Permalink
Fix [Bug] C1 CMS 6.9: {body}#xD; added to TextArea parameter value in…
Browse files Browse the repository at this point in the history
… function with TextArea parameter #755
  • Loading branch information
neexite authored and napernik committed Oct 1, 2020
1 parent 8668c64 commit 8faaad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ SelectorBinding.prototype._applySearchSelection = function () {
else {

labelBinding = LabelBinding.newInstance(bodyDocument);
labelBinding.setLabel(StringBundle.getString("ui", "AspNetUiControl.Selector.NoMatchesFor").replace("{0}", this._searchString));
labelBinding.setLabel(StringBundle.getString("ui", "AspNetUiControl.Selector.NoMatchesFor").replace("{0}", this._searchString ? this._searchString.replace(/\$/g,'$$$$') : ''));
bodyBinding.add(labelBinding);
this._attachSelections();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ VisualEditorBinding.prototype.normalizeToDocument = function ( markup ) {

var result = markup;
if ( !this._isNormalizedDocument ( markup )) {
result = this._getHtmlMarkup().replace("${body}", markup);
result = this._getHtmlMarkup().replace('${body}', markup.replace(/\$/g,'$$$$'));
}
return result;
}
Expand Down

0 comments on commit 8faaad6

Please sign in to comment.