From bed5e6bb8318f0887cacd6503aa41f3193bb25b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Tue, 30 Oct 2018 00:00:08 +0100 Subject: [PATCH] fix text align example --- examples/Components/Routes/TextAlign/Paragraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Components/Routes/TextAlign/Paragraph.js b/examples/Components/Routes/TextAlign/Paragraph.js index ba916cc3..926fa1fd 100644 --- a/examples/Components/Routes/TextAlign/Paragraph.js +++ b/examples/Components/Routes/TextAlign/Paragraph.js @@ -27,8 +27,8 @@ export default class Paragraph extends Node { } } - command({ type, attrs }) { - return setBlockType(type, attrs) + commands({ type }) { + return attrs => setBlockType(type, attrs) } }