Skip to content

createCellBelow not honoring source #5286

Answered by captainsafia
emeeks asked this question in Q&A
Discussion options

You must be logged in to vote

You can try passing a cell property to the createCellBelow action with the cells content, similar to the code below.

let newCell = emptyMarkdownCell.set("source",
imageSources.map((src) => `<img src=\"${src}\" />`).join("\n")
);
store.dispatch(
actions.createCellAbove({
cellType: "markdown",
contentRef,
cell: newCell
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by captainsafia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5286 on October 21, 2020 21:42.