'use strict';

import { Entity } from 'draft-js';

export function replaceAtomicBlock (editorState, blockKey, value) {
	const content = editorState.getCurrentContent();
	const block = content.getBlockForKey(blockKey);
	const entityKey = block.getEntityAt(0);
	Entity.mergeData(entityKey, value);
	return editorState;
};

'use strict';

import { Entity } from 'draft-js';

export function replaceAtomicBlock (editorState, blockKey, value) {
	const content = editorState.getCurrentContent();
	const block = content.getBlockForKey(blockKey);
	const entityKey = block.getEntityAt(0);
	Entity.replaceData(entityKey, value);
	return editorState;
};

Fix bug: can not modify the images of the slideshow
Fix bug: can not modify the images of the slideshow
