Merge pull request #655 from Ducz0r/lm-sci-1321

Fix bug with TinyMCE not working for steps with nil description [SCI-1321]
This commit is contained in:
Luka Murn 2017-06-06 07:59:24 +02:00 committed by GitHub
commit 62d97f6e64

View file

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