From 00dc5ad1f1726662470d3b58734ac28a01dea41b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 20 Aug 2021 11:11:41 +0200 Subject: [PATCH] docs: update content --- docs/src/docPages/guide/menus.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/docPages/guide/menus.md b/docs/src/docPages/guide/menus.md index 0d244112..c494eccb 100644 --- a/docs/src/docPages/guide/menus.md +++ b/docs/src/docPages/guide/menus.md @@ -87,6 +87,12 @@ And an example that compares the given attribute(s): editor.isActive('highlight', { color: '#ffa8a8' }) ``` +There is also support for regular expressions: + +```js +editor.isActive('textStyle', { color: /.*/ }) +``` + You can even ignore nodes and marks, but check for the attributes only. Here is an example with the [`TextAlign`](/api/extensions/text-align) extension: ```js