import { Decoration_Type } from "./../../ricos-types/index.js";
const getAnchorData = (content, _services, _editor) => {
  if (Array.isArray(content)) {
    const node = content.find((node2) => {
      return node2.type.name === "text";
    });
    if (node?.marks.some((mark) => mark.type.name === Decoration_Type.ANCHOR)) {
      return node.marks[0].attrs.anchor;
    }
  }
  return void 0;
};
export {
  getAnchorData
};
//# sourceMappingURL=get-anchor-data.js.map
