canvas-lms/app/helpers
Brian Whitmer ae717a8f6a external tool resource selector in WYSIWYG editor
Configured external tools can show up as buttons in the
rich editor. If you click the button then it'll pop up
a dialog that uses basic lti to load a page for the
external tool.  The user can pick a resource in that
tool and the tool will then redirect back to a Canvas
url that will fire a callback and embed the content
into the editor.

See spec/selenium/external_tool_buttons_sel.rb for an
example of how to manually configure one of these tools.
Adding configuration to the UI will come in another
commit.

testing notes:
to configure an external tool to show up in the editor:
tool.settings = {
  :editor_button => {
    :url => "http://<canvas_domain>/selection_test",
    :text => <button_label>,
    :selection_width => <width_of_iframe>,
    :selection_height => <height_of_iframe>,
    :icon_url => <url_of_button_icon>
  }
}

test plan:
- configure an external tool in the course with an editor button
- check to see if the button shows up in the rich editor in that course

- configure an external tool in the account with an editor button
- check to see if the button shows up for courses in that account

- configure more than 3 external tools
- check to see if the "more tools" dropdown works correctly

Change-Id: I681db0af578df6a9c7a2c840d293703937d81c46
Reviewed-on: https://gerrit.instructure.com/5429
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2011-11-22 16:12:12 -07:00
..
account_authorization_configs_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
account_notifications_helper.rb account-level notifications 2011-02-16 21:34:05 -07:00
accounts_helper.rb break SIS error/count reports into partials, fixes #3889 2011-02-23 14:54:27 -07:00
announcements_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
application_helper.rb external tool resource selector in WYSIWYG editor 2011-11-22 16:12:12 -07:00
assessment_questions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
assignment_groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
assignments_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
calendars_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
collaborations_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
communication_channels_helper.rb pre-fill the correct unique_id when confirming cc's refs #5833 2011-11-09 14:58:29 -07:00
conferences_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
content_imports_helper.rb add assessment importing to common cartridge importer 2011-09-23 13:28:03 -06:00
context_modules_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
conversations_helper.rb conversation loading speedup 2011-10-04 09:54:23 -06:00
courses_helper.rb conditional tooltips for grading progress. fixes #5791 2011-10-19 10:30:38 -06:00
discussion_entries_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
discussion_topics_helper.rb don't show discussion responses in stream when not allowed 2011-11-04 12:27:27 -06:00
eportfolio_categories_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
eportfolio_entries_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
eportfolios_helper.rb various i18n fixes/deduplication 2011-07-06 17:29:33 -06:00
errors_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
external_content_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
external_tools_helper.rb basic lti support 2011-03-23 16:58:11 -06:00
facebook_helper.rb update facebook integration to oauth 2 2011-05-10 16:18:23 -06:00
folders_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
getting_started_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
gradebook_uploads_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
gradebooks_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
grading_standards_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
info_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
outcome_groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
outcomes_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
page_comments_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
page_views_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
processors_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
pseudonym_sessions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
question_banks_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quiz_groups_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quiz_questions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quiz_submissions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
quizzes_helper.rb save user answers for _fill_in_the_blank questions. fixes #5376 2011-09-20 10:17:45 -06:00
role_overrides_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
rubric_assessments_controller_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
rubric_associations_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
rubrics_controller_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
search_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
sections_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
session_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
short_messages_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
sub_accounts_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
submissions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
tags_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
terms_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
tokens_helper.rb oauth 2 requests via access tokens 2011-06-02 09:15:11 -06:00
topics_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
upload_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
user_notes_helper.rb i18n user_notes 2011-06-22 09:42:41 -06:00
users_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
wiki_page_comments_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
wiki_page_revisions_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
wiki_pages_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00
zip_file_imports_helper.rb Initial commit. 2011-01-31 18:57:29 -07:00