JSFiddle - React, Tailwind, and code Playground

by Ray Toal

JavaScript

// Wrong
function addImage(imgurl){
tinyMCE.execCommand('mceInsertContent',false,'<img src=" +imgurl+ " style="float:left; margin: 0    5px 5px 0;" />');
}

// Right
function addImage(imgurl){
tinyMCE.execCommand('mceInsertContent',false,'<img src="' +imgurl+ '" style="float:left; margin: 0    5px 5px 0;" />');
}