{"id":7049,"date":"2016-06-21T15:35:48","date_gmt":"2016-06-21T06:35:48","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=7049"},"modified":"2016-06-21T15:35:48","modified_gmt":"2016-06-21T06:35:48","slug":"office%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3onenote-online%e7%94%a8%e3%81%ae%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=7049","title":{"rendered":"[Office\u30a2\u30c9\u30a4\u30f3]OneNote Online\u7528\u306e\u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u3063\u3066\u307f\u308b\u3002"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/OfficeDev\/office-js-docs\/blob\/master\/docs\/onenote\/onenote-add-ins-getting-started.md\" title=\"\"Build your first OneNote add-in (Preview)\" target=\"_blank\">GitHub<\/a>\u3084<a href=\"https:\/\/dev.office.com\/docs\/add-ins\/onenote\/onenote-add-ins-programming-overview\" title=\"Office Dev Center - Docs -OneNote JavaScript API programming overview (Preview)\" target=\"_blank\">Office Dev Center<\/a>\u306b\u306f\u524d\u304b\u3089\u60c5\u5831\u304c\u51fa\u3066\u3044\u305fOneNote\u7528\u306eOffice \u30a2\u30c9\u30a4\u30f3\u3067\u3059\u304c\u3001\u3075\u3068OneNote Online\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u77e5\u3089\u306a\u3044\u9593\u306b\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4 class=\"style4a\">\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb<\/h4>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;OfficeApp xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/appforoffice\/1.1&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:type=&quot;TaskPaneApp&quot;&gt;\r\n  &lt;Id&gt;1407226b-72a9-4e5f-ba4e-66d3c5d745fe&lt;\/Id&gt;\r\n  &lt;Version&gt;1.0&lt;\/Version&gt;\r\n  &lt;ProviderName&gt;kinuasa&lt;\/ProviderName&gt;\r\n  &lt;DefaultLocale&gt;ja-JP&lt;\/DefaultLocale&gt;\r\n  &lt;DisplayName DefaultValue=&quot;Sample OneNote Add-in&quot; \/&gt;\r\n  &lt;Description DefaultValue=&quot;OneNote\u7528\u306eOffice \u30a2\u30c9\u30a4\u30f3\u3067\u3059\u3002&quot; \/&gt;\r\n  &lt;Hosts&gt;\r\n    &lt;Host Name=&quot;Notebook&quot; \/&gt;\r\n  &lt;\/Hosts&gt;\r\n  &lt;DefaultSettings&gt;\r\n    &lt;SourceLocation DefaultValue=&quot;https:\/\/your-server\/index.html&quot; \/&gt;\r\n  &lt;\/DefaultSettings&gt;\r\n  &lt;Permissions&gt;ReadWriteDocument&lt;\/Permissions&gt;\r\n&lt;\/OfficeApp&gt;<\/pre>\n<h4 class=\"style4a\">index.html<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=&quot;UTF-8&quot;&gt;\r\n    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&gt;\r\n    &lt;title&gt;Sample&lt;\/title&gt;\r\n    &lt;script src=&quot;https:\/\/ajax.aspnetcdn.com\/ajax\/jquery\/jquery-2.2.3.min.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;!-- &lt;script src=&quot;https:\/\/appsforoffice.microsoft.com\/lib\/1\/hosted\/office.js&quot;&gt;&lt;\/script&gt; --&gt;\r\n    &lt;script src=&quot;https:\/\/richapiaddin.azurewebsites.net\/App\/Office\/Office.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n      Office.initialize = function(reason){}\r\n      $(function(){\r\n        $(&quot;#btnOK&quot;).click(function(){\r\n          OneNote.run(function(context){\r\n            var page = context.application.getActivePage();\r\n            var outline = page.addOutline(10, 100, &quot;&lt;h1&gt;\u3053\u3093\u306b\u3061\u306f\u3001\u4e16\u754c&lt;\/h1&gt;&quot;);\r\n            return context.sync()\r\n            .then(function(){\r\n              console.log(&quot;Success&quot;);\r\n            })\r\n            .catch(function(error){\r\n              console.log(&quot;Error:&quot; + JSON.stringify(error));\r\n            });\r\n          });\r\n        });\r\n      });\r\n    &lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body&gt;\r\n    &lt;h4&gt;OneNote-Add-in Sample&lt;\/h4&gt;\r\n    &lt;p&gt;\r\n      &lt;input id=&quot;btnOK&quot; type=&quot;button&quot; value=&quot;OK&quot;&gt;\r\n    &lt;\/p&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<h4 class=\"style4a\">\u5b9f\u884c\u753b\u9762<\/h4>\n<p>\u30a2\u30c9\u30a4\u30f3\u7528\u306ehtml\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f(\u203b \u73fe\u5728\u306fPreview\u7248\u306a\u306e\u3067Office.js\u306e\u53c2\u7167\u5148\u306b\u6ce8\u610f)<br \/>\n\u2193<br \/>\n\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u633f\u5165<\/span>\u300d\u30bf\u30d6\u304b\u3089\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30a2\u30c9\u30a4\u30f3\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/span>\u300d\u3092\u9078\u629e<br \/>\n\u2193<br \/>\n\u7528\u610f\u3057\u305f\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af<br \/>\n\u2193<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5185\u306b\u30a2\u30c9\u30a4\u30f3\u8868\u793a<\/p>\n<p>\u4e0a\u8a18\u624b\u9806\u306e\u5b9f\u884c\u7d50\u679c\u304c\u4e0b\u56f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/OneNote_Add-in_01.gif\" alt=\"OneNote_Add-in_01\" width=\"641\" height=\"578\" class=\"alignnone size-full wp-image-7050\" \/><\/p>\n<h4 class=\"style4a\">\u304a\u308f\u308a\u306b<\/h4>\n<p>\u4eca\u66f4\u3068\u3044\u3048\u3070\u4eca\u66f4\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3088\u3046\u3084\u304fOneNote\u3082Office \u30a2\u30c9\u30a4\u30f3\u306b\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u307e\u3067\u9078\u629e\u80a2\u304c\u9650\u3089\u308c\u3066\u3044\u305fOneNote\u958b\u767a\u3067\u3059\u304c\u3001\u4eca\u56de\u306e\u5bfe\u5fdc\u306b\u3088\u3063\u3066\u4eca\u5f8c\u306eOneNote\u958b\u767a\u306e\u4e3b\u6d41\u304cOffice \u30a2\u30c9\u30a4\u30f3\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3044\u307e\u306f\u307e\u3060Preview\u7248\u3067\u3059\u304c\u3001<a href=\"http:\/\/dev.office.com\/reference\/add-ins\/onenote\/onenote-add-ins-javascript-reference\" title=\"Office Dev Center - Docs -OneNote\" target=\"_blank\">\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u3092\u898b\u308b\u9650\u308a\u3001\u753b\u50cf\u3084\u30c6\u30fc\u30d6\u30eb\u3001<a href=\"http:\/\/dev.office.com\/docs\/add-ins\/onenote\/onenote-add-ins-page-content#supported-html\" title=\"Office Dev Center - Docs - Work with OneNote page content (Preview)\" target=\"_blank\">HTML<\/a>\u306e\u633f\u5165\u306a\u3069\u3001\u601d\u3063\u305f\u3088\u308a\u8272\u3005\u3067\u304d\u305d\u3046\u3067\u3001\u3053\u308c\u306f\u4eca\u5f8c\u3082\u671f\u5f85\u3067\u304d\u308b\u6a5f\u80fd\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":7119,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"[[Office\u30a2\u30c9\u30a4\u30f3]OneNote Online\u7528\u306e\u30a2\u30c9\u30a4\u30f3\u3092\u4f5c\u3063\u3066\u307f\u308b]","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[130,4,55],"tags":[],"class_list":["post-7049","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-onenote"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeAddins.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1PH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7049"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7049\/revisions"}],"predecessor-version":[{"id":7051,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/7049\/revisions\/7051"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7119"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}