/**
 * Flex TEMPLATE preview
 * @author OtakiToshiya
 * ckeditor前提です
 */

var FXEDITOR_TEMPLATE_PREVIEW = Class.create();
FXEDITOR_TEMPLATE_PREVIEW.prototype = Object.extend(new FlexPreviewAdaptor, {
	
	/**
	 * Initialize
	 */
	initialize: function () {
	},
	
	updateContent: function (html) {
		this._container.innerHTML = html;
		$A(this._container.getElementsByTagName('a')).each(function(link) {
			link.href = 'javascript:void(0)';
		});
	},
	
	updateContentAt: function (id, html) {
		$(id).innerHTML = html;
		$A(this._container.getElementsByTagName('a')).each(function(link) {
			link.href = 'javascript:void(0)';
		});
	}
});
