{"id":122633,"date":"2023-12-20T08:00:00","date_gmt":"2023-12-20T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/onlyoffice-docspace\/"},"modified":"2025-04-28T17:30:00","modified_gmt":"2025-04-28T17:30:00","slug":"onlyoffice-docspace","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/onlyoffice-docspace\/","title":{"rendered":"ONLYOFFICE DocSpace"},"content":{"rendered":"<p>With ONLYOFFICE DocSpace plugin, you are able to use ONLYOFFICE DocSpace right within WordPress to create rooms, edit and collaborate on office docs, as well as you can add DocSpace rooms and files stored within these rooms to the WordPress pages when creating posts.<\/p>\n<p><strong>Plugin installation and configuration<\/strong><\/p>\n<p>At first, go to your ONLYOFFICE DocSpace (<a href=\"https:\/\/www.onlyoffice.com\/docspace-registration.aspx\" rel=\"nofollow ugc\">sign in<\/a> \/ <a href=\"https:\/\/www.onlyoffice.com\/docspace-registration.aspx#login\" rel=\"nofollow ugc\">sign up<\/a>) -> \u201cSettings -> Developer Tools \u2013 > JavaScript SDK\u201d. There,  enter your WordPress site address in the \u201cEmbed DocSpace as iframe\u201d section.<\/p>\n<p>A WordPress administrator can install the plugin via the Marketplace: <a href=\"https:\/\/wordpress.com\/plugins\/onlyoffice-docspace\" rel=\"nofollow ugc\">https:\/\/wordpress.com\/plugins\/onlyoffice-docspace<\/a>.<\/p>\n<p>If you want to install the plugin via your WordPress administrative dashboard, navigate to the Plugins section and click \u201cAdd New\u201d. Then, click \u201cUpload Plugin\u201d and select the zipped plugin.<\/p>\n<p>Once ready, go to the plugin settings and specify the DocSpace address in the \u201cConnection settings\u201d.<\/p>\n<p><strong>Log in as DocSpace Admin<\/strong><\/p>\n<p>If DocSpace is successfully connected (as described above), the <em>Log in as DocSpace Admin<\/em> section appears on the Settings page. The DocSpace admin needs to log in here to perform the following actions:<\/p>\n<ul>\n<li>export users from WordPress to DocSpace;<\/li>\n<li>create a common user group <em>WordPress Users<\/em> in DocSpace;<\/li>\n<li>add DocSpace users to this created group when exporting users, as well as add users to the group who have already linked accounts themselves.<\/li>\n<\/ul>\n<p>After logging in using the <em>Log in as DocSpace Admin<\/em> option, the \u201cSign in\u201d button will change to \u201cSign out\u201d. Clicking this button on behalf of the designated DocSpace admin will disable any further user management actions (as outlined in the above list). The \u201cSign out\u201d button is accessible to any user with permissions to the Settings page. For instance, if another DocSpace admin (admin 2) wishes to perform actions in the plugin on behalf of the initial admin (admin 1), they can unlink admin 1\u2019s account in this section. Admin 2 can then log in by entering their credentials in <em>Log in as DocSpace Admin<\/em>.<\/p>\n<p><strong>User export (Optional)<\/strong><\/p>\n<p>Once the DocSpace admin is successfully authorized, an optional \u201cUser Export\u201d block becomes available on the Settings page.<\/p>\n<p>Clicking the \u201cOpen User List\u201d button will redirect you to the WordPress Users page, where you can export users from WordPress to DocSpace. These users are exported under the authority of the DocSpace admin currently logged in via the Settings page. This means that any WordPress administrator can perform the export, as long as the DocSpace admin is authorized within the DocSpace plugin settings.<\/p>\n<p><strong>WordPress Users<\/strong><\/p>\n<p>The WordPress Users page introduces a <em>DocSpace Account<\/em> column once DocSpace is connected. This column indicates the connection status between WordPress user accounts and their corresponding DocSpace accounts. If the column contains a value, it signifies an established connection. Conversely, a dash indicates no connection has been made yet. Once the DocSpace administrator is authorized, the \u201cExport to DocSpace\u201d action becomes accessible.<\/p>\n<p><strong>Exporting users from WordPress to DocSpace<\/strong><\/p>\n<p>WordPress administrators have the ability to export users from WordPress to DocSpace. Exported users will gain seamless login to DocSpace, with an automatically generated password assigned to them. Their WordPress email address will serve as their login credential in DocSpace. Once exported, the user is added to the <em>WordPress Users<\/em> group in DocSpace.<\/p>\n<p>If a WordPress user with an email address already registered in DocSpace is exported, a notification will appear. In this scenario, the user\u2019s existing DocSpace credentials, including their password, remain unchanged.<\/p>\n<p>To export a user, the WordPress administrator needs to navigate to the WordPress Users page. They can then select the desired user by checking the corresponding box, choose the \u201cExport to DocSpace\u201d option from the drop-down menu, and click the \u201cApply\u201d button. The selected user will be successfully added to DocSpace with the User role.<\/p>\n<p><strong>Unlinking WordPress-DocSpace accounts<\/strong><\/p>\n<p>To unlink a WordPress account from a DocSpace account, the WordPress administrator should go to the WordPress Users page and select the checkbox next to the desired user. From the drop-down menu, choose \u201cUnlink DocSpace Account\u201d and click \u201cApply\u201d. This action will remove the connection between the selected user\u2019s WordPress and DocSpace accounts.<\/p>\n<p><strong>Working with ONLYOFFICE DocSpace within WordPress<\/strong><\/p>\n<p>User authorization<br \/>\nIf a user already has a DocSpace account, they can log in using the DocSpace plugin for WordPress. To proceed, the user should access DocSpace through the left-hand menu or by opening the file\/room selector within the WordPress site builder. An authorization window will then appear, prompting the user to enter their DocSpace login credentials. Once authorized, the user will automatically be added to the \u201cWordPress Users\u201d group in DocSpace. Once authorized, the user can seamlessly work within DocSpace or select the desired room or file using the selectors.<\/p>\n<p>Logging out of the DocSpace account<br \/>\nTo log out of the DocSpace account, open DocSpace from the left-hand menu. Access the context menu next to the user name, then select the Sign out option. This option is available to all DocSpace users.<\/p>\n<p>Password recovery<br \/>\nIf a user forgets their password or seamless login fails, they can click the <em>Reset Password<\/em> button during the login process. This will open a password reset window. If the entered email is registered in DocSpace, password reset instructions will be sent to that email address.<\/p>\n<p>DocSpace in the left panel<br \/>\nOnce the plugin is configured, DocSpace will become accessible to users with the <em>upload_files<\/em> capability. This includes standard WordPress roles such as Super Admin, Administrator, Editor, and Author.<\/p>\n<p>Users will gain access to a <a href=\"https:\/\/www.onlyoffice.com\/docspace.aspx\" rel=\"nofollow ugc\">fully functional DocSpace<\/a>, where they can create rooms, invite participants, and collaborate on documents within rooms, based on their assigned permissions. When inviting others to a room using the <em>Invite users from list<\/em> button, only existing DocSpace users will be displayed.<\/p>\n<p><strong>Adding a DocSpace room or file to the WordPress page<\/strong><\/p>\n<p>When creating a post, you can add the ONLYOFFICE DocSpace element (block) \u2013 room or file.<\/p>\n<p>To add a room, click the \u201cSelect room\u201d button, select the desired room and press Select. In the block settings, you can specify the desired width, height, and theme (light\/dark) to be displayed on the page.<\/p>\n<p>To add a file, click the \u201cSelect file\u201d button, select the desired file from the room and press Save. In the block settings, you can specify the desired width and height to be displayed on the page, as well as the view \u2013 a full editor or Embedded.<\/p>\n<p><strong>Access rights to a room\/file on a DocSpace page<\/strong><\/p>\n<p>Access rights to rooms and files on the published DocSpace pages are defined based on the type of room and the user\u2019s assigned permissions within DocSpace.<\/p>\n<ul>\n<li>\u201cCollaboration\/Custom\/VDR rooms\u201d \u2013 Access to these rooms and their files is restricted to users who have been explicitly added. Users must be logged in to DocSpace to view them. Other users will see a placeholder instead.<\/li>\n<li>\u201cPublic\/Form Filling rooms\u201d \u2013 The content in these rooms is accessible to all users, whether or not they have a DocSpace account.<\/li>\n<\/ul>\n<h3>How the plugin is using the ONLYOFFICE DocSpace service<\/h3>\n<p>The plugin allows working with office files via <a href=\"https:\/\/www.onlyoffice.com\/docspace.aspx\" rel=\"nofollow ugc\">ONLYOFFICE DocSpace<\/a> and makes the following requests to the service on the backend:<\/p>\n<ul>\n<li>getting a list of DocSpace users<\/li>\n<li>creating a user in DocSpace using WordPress user data<\/li>\n<li>getting a DocSpace user by email<\/li>\n<li>setting a password for a DocSpace user<\/li>\n<li>getting authorization cookies of a DocSpace user <\/li>\n<li>getting a DocSpace file<\/li>\n<li>getting a DocSpace folder<\/li>\n<li>inviting a user to a DocSpace room<\/li>\n<\/ul>\n<p>On the frontend, the following DocSpace elements are inserted:<\/p>\n<ul>\n<li>file selection control<\/li>\n<li>room selection control<\/li>\n<li>file display control<\/li>\n<li>room display control<\/li>\n<li>system frame for checking authorization <\/li>\n<\/ul>\n<p><em>Useful resources:<\/em><\/p>\n<ul>\n<li><a href=\"https:\/\/onlyo.co\/41Y69Rf\" rel=\"nofollow ugc\">ONLYOFFICE DocSpace Terms of use<\/a><\/li>\n<li><a href=\"https:\/\/www.onlyoffice.com\/Privacy.aspx\" rel=\"nofollow ugc\">Privacy Policy<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>ONLYOFFICE DocSpace plugin allows users to access ONLYOFFICE DocSpace from WordPress and add DocSpace rooms and files to the WordPress pages.<\/p>\n","protected":false},"author":65,"featured_media":317286,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"ONLYOFFICE DocSpace - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"ONLYOFFICE DocSpace plugin allows users to access ONLYOFFICE DocSpace from WordPress and add DocSpace rooms and files to the WordPress pages."},"footnotes":""},"categories":[1],"tags":[33963,1364,33962],"class_list":["post-122633","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-docspace","tag-integration","tag-onlyoffice"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/122633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=122633"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/122633\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/317286"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=122633"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=122633"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=122633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}