In the insert_element_process() function, default style is always set to 'auto' due to a typo.

$default = !empty($instnace['widget']['settings']['insert_default']) ? $widget_settings['insert_default'] : 'auto';

should be:

$default = !empty($instance['widget']['settings']['insert_default']) ? $widget_settings['insert_default'] : 'auto';
CommentFileSizeAuthor
#1 insert-941736-instance-typo.patch828 bytesflorisla

Comments

florisla’s picture

Status: Needs review » Active
StatusFileSize
new828 bytes

I came across this typo also; here is a patch with the same fix.

florisla’s picture

Status: Active » Needs review

Changing status to 'needs review', but I'm not really sure if it really does :-)

Perhaps we could go straight to 'reviewed & tested'?

tsvenson’s picture

Status: Active » Reviewed & tested by the community

Confirmed, works like it says on the tin.

bryancasler’s picture

confirmed, #1 works for me

quicksketch’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.