#660 Fixed but in the translation from wysiwyg content and the template object structure (fragmenting). Replaced the translation from fragments into wysiwyg text to use img rep. Fixed the logic involved in inserting assessment variables into the wysiwyg editor at the correct caret position.