fixed bug, where usage as external editor from other plugins might have failed (reported by svasti)
fixed bug, where instantiation of multiple editors on the same page failed
added some styling for the preview (inspired by svasti)
fixed #1