Commit 4baaefe1 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4012 (Inserting around WYSIWYG image elements not working)

parent b8ab3ea8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -855,6 +855,11 @@ function get_selected_html(editor)
	var my_selection=editor.getSelection();
	if (!my_selection || my_selection.getType()==window.CKEDITOR.SELECTION_NONE) return '';

	var element=my_selection.getSelectedElement();
	if (element) {
		return get_outer_html(element.$);
	}

	var selected_text='';
	if (my_selection.getNative())
	{