Skip to content

Commit

Permalink
Docs: Extended docs of the conversion-element-to-structure-disallowed…
Browse files Browse the repository at this point in the history
…-text error.
  • Loading branch information
oleq committed Feb 8, 2022
1 parent eb18f4a commit 50dd19a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/ckeditor5-engine/src/conversion/downcasthelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,16 @@ function downcastElementToStructure( config ) {
* }
* } );
*
* In such case, {@link module:engine/conversion/conversion~Conversion#elementToElement `elementToElement()`} helper
* can be used instead to get around this problem:
*
* editor.conversion.for( 'downcast' ).elementToElement( {
* model: 'myElement',
* view: ( modelElement, { writer } ) => {
* // ...
* }
* } );
*
* @error conversion-element-to-structure-disallowed-text
* @param {String} elementName The name of the element the structure is to be created for.
*/
Expand Down

0 comments on commit 50dd19a

Please sign in to comment.