Commit 367d38e3daa1ee3f63c3dbbc34ee905ae27837ab

Authored by Joenio Costa
1 parent 74944844

Do not allow edition in textarea with the EMBED code

(ActionItem3031)
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/helpers/boxes_helper.rb
... ... @@ -225,7 +225,7 @@ module BoxesHelper
225 225 html = content_tag('div',
226 226 content_tag('h2', _('Embed block code')) +
227 227 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;') +
228   - content_tag('textarea', block.embed_code(url), :style => 'margin-bottom: 1em; width:100%; height:40%;') +
  228 + content_tag('textarea', block.embed_code(url), :style => 'margin-bottom: 1em; width:100%; height:40%;', :readonly => 'readonly') +
229 229 thickbox_close_button(_('Close')), :style => 'display: none;', :id => "embed-code-box-#{block.id}")
230 230  
231 231 buttons << thickbox_inline_popup_icon(:embed, _('Embed code'), {}, "embed-code-box-#{block.id}") << html
... ...