script/find_and_replace.rb
# replace interactive with a button interactive that opens it in a new window
replace interactive with a button interactive that opens it in a new window
replace interactive with a button interactive that opens it in a new window
def replace_with_button(interactive)
  old_url = interactive.url
  interactive.url = "https://concord-consortium.github.io/button-interactive/"
  interactive.authored_state = {
    version: "1.0",
    description: "This component no longer works embedded in the page. Use the button below to open it in a new window.",
    url: old_url,
    label: "Open ➚"
  }.to_json
  interactive.save!
end
def replace_with_button ( interactive ) old_url = interactive . url interactive . url = "https://concord-consortium.github.io/button-interactive/" interactive . authored_state = { version : "1.0" , description : "This component no longer works embedded in the page. Use the button below to open it in a new window." , url : old_url , label : "Open ➚" } . to_json interactive . save! end
replace interactive with a button interactive that opens it in a new window
replace interactive with a button interactive that opens it in a new window
interactive
<not_specific>