Answers for "contentful rte edit link type"

0

contentful rte edit link type

const options = {
  renderNode: {
    [INLINES. HYPERLINK]: (node, next) => {
      return `<a href="${node.data.uri}"${node.data.uri.startsWith('https://mydomain.com') ? '' : ' target="_blank"'}>${next(node.content)}</a>`;
    }
  }
}
Posted by: Guest on August-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language