message: avoid contentEditable warning in react
diff: @@ -26,24 +26,47 @@ export class SurveyLocStringEditor extends React.Component<any, any> {
  }
  onInput = (event: any) => {
  this.locStr.text = event.target.innerText;
  - }
  + };
  onClick = (event: any) => {
  event.preventDefault();
  event.stopPropagation();
  - }
  + };
  render(): JSX.Element {
  if (!this.locStr) {
  return null;
  }
  if (this.locStr.hasHtml) {
  const htmlValue = { __html: this.locStr.renderedHtml };
  - return <span className="sv-string-editor" contentEditable="true" style={this.style} dangerouslySetInnerHTML={htmlValue} onBlur={ this.onInput } onClick={ this.onClick } />;
  + return (
  + <span
  + className="sv-string-editor"
  + contentEditable="true"
  + suppressContentEditableWarning={true}
  + style={this.style}
  + dangerouslySetInnerHTML={htmlValue}
  + onBlur={this.onInput}
  + onClick={this.onClick}
  + />
  + );
  }
  - return <span className="sv-string-editor" contentEditable="true" style={this.style} onBlur={ this.onInput } onClick={ this.onClick }>{this.locStr.renderedHtml}</span>;
  + return (
  + <span
  + className="sv-string-editor"
  + contentEditable="true"
  + suppressContentEditableWarning={true}
  + style={this.style}
  + onBlur={this.onInput}
  + onClick={this.onClick}
  + >
  + {this.locStr.renderedHtml}
  + </span>
  + );
  }
  }
  - ReactElementFactory.Instance.registerElement(LocalizableString.editableRenderer, (props) => {
  +ReactElementFactory.Instance.registerElement(
  + LocalizableString.editableRenderer,
  + (props) => {
  return React.createElement(SurveyLocStringEditor, props);
  - });
  -
  \ No newline at end of file
  + }
  +);
  