Explorar o código

Merge pull request #5911 from ckeditor/i/5900

Docs: Unified the way the config is accessed in the "Using a React component in a block widget" guide. Closes #5900.
Aleksander Nowodzinski %!s(int64=6) %!d(string=hai) anos
pai
achega
dde5e4fb84
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/framework/guides/tutorials/using-react-in-a-widget.md

+ 1 - 1
docs/framework/guides/tutorials/using-react-in-a-widget.md

@@ -311,7 +311,7 @@ export default class ProductPreviewEditing extends Plugin {
 	_defineConverters() {
 		const editor = this.editor;
 		const conversion = editor.conversion;
-		const renderProduct = editor.config.get( 'products.productRenderer' );
+		const renderProduct = editor.config.get( 'products' ).productRenderer;
 
 		// <productPreview> converters ((data) view → model)
 		conversion.for( 'upcast' ).elementToElement( {