src/editor/utils/attachtoform.js
Function attachToForm
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function attachToForm( editor ) {
if ( !isFunction( editor.updateSourceElement ) ) {
/**
* The editor passed to `attachToForm()` must implement the
* {@link module:core/editor/utils/elementapimixin~ElementApi} interface.