How to use the @edtr-io/ui.edtrTextControls.listBullets function in @edtr-io/ui

To help you get started, we’ve selected a few @edtr-io/ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github edtr-io / edtr-io / packages / plugins / text / src / controls / lists.tsx View on Github external
>
        
      
      <button> {
          toggleList(unorderedListNode)(props.editor).focus()
          if (!isList(unorderedListNode)(props.editor)) {
            props.switchControls(VisibleControls.All)
          }
          props.onChange(props.editor)
        }}
        title="Aufzählung"
      &gt;
        
      </button>
      <button> props.switchControls(VisibleControls.All)}
        title="Untermenü schließen"
      &gt;
        
      </button>
    
  )
}
github edtr-io / edtr-io / packages / plugins / text / src / controls / default.tsx View on Github external
if (
            !isList(unorderedListNode)(editor) &amp;&amp;
            !isList(orderedListNode)(editor)
          ) {
            toggleList(unorderedListNode)(props.editor).focus()
            props.onChange(editor)
          }
          props.switchControls(VisibleControls.Lists)
        }}
        title="Listen"
      &gt;
        
      
      <button> {
          if (isBlockquote(editor, pluginClosure)) {
            removeBlockquote(editor, pluginClosure)
            props.onChange(editor)
          } else {
            createBlockquote(editor, name)
            props.onChange(editor)
          }
        }}
        title="Zitat"</button>