How to use the @ckeditor/ckeditor5-widget/src/utils.isWidget function in @ckeditor/ckeditor5-widget

To help you get started, we’ve selected a few @ckeditor/ckeditor5-widget 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 Tangerine-Community / Tangerine / client / ckeditor / plugins / ckeditor5-acasi / src / utils.js View on Github external
export function isCustomWidget( widget, viewElement ) {
  // const symbol = symbols[widget]
  if (typeof viewElement !== 'undefined' && viewElement !== null) {
     // return !!viewElement.getCustomProperty( symbol ) && isWidget( viewElement );
     return !!viewElement.getCustomProperty( formSymbol ) && isWidget( viewElement );
  } else {
    return false
  }
}
github ckeditor / ckeditor5-image / tests / image / utils.js View on Github external
it( 'should be widgetized', () => {
			expect( isWidget( element ) ).to.be.true;
		} );
github Tangerine-Community / Tangerine / client / ckeditor / plugins / ckeditor5-acasi / src / utils.js View on Github external
export function isAcasiWidget( viewElement ) {
  let acasiTest = viewElement.getCustomProperty( acasiSymbol )
  return !!acasiTest && isWidget( viewElement );
}
github ckeditor / ckeditor5-table / src / utils.js View on Github external
export function isTableWidget( viewElement ) {
	return !!viewElement.getCustomProperty( 'table' ) && isWidget( viewElement );
}
github ckeditor / ckeditor5-media-embed / src / utils.js View on Github external
export function isMediaWidget( viewElement ) {
	return !!viewElement.getCustomProperty( 'media' ) && isWidget( viewElement );
}
github ckeditor / ckeditor5-image / src / image / utils.js View on Github external
export function isImageWidget( viewElement ) {
	return !!viewElement.getCustomProperty( 'image' ) && isWidget( viewElement );
}