From 367d38e3daa1ee3f63c3dbbc34ee905ae27837ab Mon Sep 17 00:00:00 2001 From: Joenio Costa Date: Mon, 31 Mar 2014 23:15:10 -0300 Subject: [PATCH] Do not allow edition in textarea with the EMBED code --- app/helpers/boxes_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/boxes_helper.rb b/app/helpers/boxes_helper.rb index 00f262d..8d24272 100644 --- a/app/helpers/boxes_helper.rb +++ b/app/helpers/boxes_helper.rb @@ -225,7 +225,7 @@ module BoxesHelper html = content_tag('div', content_tag('h2', _('Embed block code')) + content_tag('div', _('Below, you''ll see a field containing embed code for the block. Just copy the code and paste it into your website or blogging software.'), :style => 'margin-bottom: 1em;') + - content_tag('textarea', block.embed_code(url), :style => 'margin-bottom: 1em; width:100%; height:40%;') + + content_tag('textarea', block.embed_code(url), :style => 'margin-bottom: 1em; width:100%; height:40%;', :readonly => 'readonly') + thickbox_close_button(_('Close')), :style => 'display: none;', :id => "embed-code-box-#{block.id}") buttons << thickbox_inline_popup_icon(:embed, _('Embed code'), {}, "embed-code-box-#{block.id}") << html -- libgit2 0.21.2