js: isso: Fix class selector for preview
The selector also needs the `isso-` prefix, else the
DOM selection fails and the subsequent code gets a null obj,
which then fails.
This was overlooked in
"js: app/isso: Prefix localstorage keys w/ isso-"
Fixes
@@ -94,7 +94,7 @@ var Postbox = function(parent) {
$("[name='preview']", el).on("click", function() {
api.preview(utils.text($(".isso-textarea", el).innerHTML)).then(
function(html) {
- $(".preview .text", el).innerHTML = html;
+ $(".isso-preview .isso-text", el).innerHTML = html;
el.classList.add('isso-preview-mode');
});
});
