Skip to content

Commit

Permalink
add jsdoc for mapRichTextSettings util
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Apr 13, 2022
1 parent d2bacd5 commit e8b0901
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-editor/src/store/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Helper function that maps attribute definition properties to the
* ones used by RichText utils like `create, toHTMLString, etc..`.
*
* @param {Object} attributeDefinition A block's attribute definition object.
* @return {Object} The mapped object.
*/
export function mapRichTextSettings( attributeDefinition ) {
const {
multiline: multilineTag,
Expand Down

0 comments on commit e8b0901

Please sign in to comment.