Fix bug with TinyMCE not working for steps with nil description

Closes SCI-1321.
This commit is contained in:
Luka Murn 2017-06-05 17:43:03 +02:00
parent a9bd86352d
commit 8c7aebbb88

View file

@ -18,6 +18,7 @@ module TinyMceHelper
end
def generate_image_tag_from_token(text)
return nil if text.nil?
regex = /\[~tiny_mce_id:([0-9a-zA-Z]+)\]/
text.gsub(regex) do |el|
match = el.match(regex)