- fixed a bug where any active tinymce editor present during preview would break preview function
- fixed a bug where sometime duplicate id were being generated