Skip to content

Commit

Permalink
Merge pull request #14 from ONLYOFFICE/develop
Browse files Browse the repository at this point in the history
Release/1.0.0
  • Loading branch information
LinneyS committed Oct 9, 2023
2 parents 01ff42c + a351130 commit a7a2c9c
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 4 deletions.
4 changes: 2 additions & 2 deletions admin/class-oodsp-docspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function enqueue_scripts() {

wp_enqueue_script(
'docspace-component-api',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets/js/docspace-component-api.js',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets-onlyoffice-docspace/js/docspace-component-api.js',
array(),
ONLYOFFICE_DOCSPACE_WORDPRESS_VERSION,
true
Expand Down Expand Up @@ -150,7 +150,7 @@ public function enqueue_scripts() {
public function enqueue_styles() {
wp_enqueue_style(
'docspace-components-api',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets/css/docspace-component-api.css',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets-onlyoffice-docspace/css/docspace-component-api.css',
array(),
ONLYOFFICE_DOCSPACE_WORDPRESS_VERSION
);
Expand Down
File renamed without changes.
File renamed without changes.
Binary file added assets/banner-1544x500.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banner-772x250.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-128х128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-256х256.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-5.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/class-oodsp-public-docspace.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function wp_onlyoffice_docspace_shortcode( $attr ) {

wp_enqueue_script(
'docspace-component-api',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets/js/docspace-component-api.js',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets-onlyoffice-docspace/js/docspace-component-api.js',
array(),
ONLYOFFICE_DOCSPACE_WORDPRESS_VERSION,
true
Expand Down Expand Up @@ -199,7 +199,7 @@ public function wp_onlyoffice_docspace_shortcode( $attr ) {

wp_enqueue_style(
'docspace-components-api',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets/css/docspace-component-api.css',
ONLYOFFICE_DOCSPACE_WORDPRESS_PLUGIN_URL . 'assets-onlyoffice-docspace/css/docspace-component-api.css',
array(),
ONLYOFFICE_DOCSPACE_WORDPRESS_VERSION
);
Expand Down
76 changes: 76 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
=== ONLYOFFICE DocSpace ===
Contributors: onlyoffice
Tags: onlyoffice, integration, docspace
Requires at least: 6.2
Tested up to: 6.3.1
Stable tag: 1.0.0
Requires PHP: 8.0
License: GPLv2
License URI: https://github.com/ONLYOFFICE/onlyoffice-docspace-wordpress/blob/master/LICENSE

ONLYOFFICE DocSpace plugin allows users to access ONLYOFFICE DocSpace from WordPress and add DocSpace rooms and files to the WordPress pages.

== Description ==

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.

**Exporting users to DocSpace**

To export users from your WordPress to ONLYOFFICE DocSpace, click the Export Now button on the plugin settings page. A page with the user list will open — it includes WordPress users with the upload_files permissions.

To add a user or several users to DocSpace, check them in the list, select Invite to DocSpace from the drop-down list and click the Apply button.

In the DocSpace User Status column of this list, you can track whether a WordPress user has been added to DocSpace or not:

- Green checkmark: a WordPress user with the specified email has been added to DocSpace. Synchronization was successful.
- Empty value: there is no WordPress user with the specified email in DocSpace. You can invite them.
- Hourglass: there is a user in DocSpace with the specified email, but there was a synchronization issue. When logging into the DocSpace plugin for the first time, the user will need to provide a DocSpace login and password to complete synchronization.

**Working with ONLYOFFICE DocSpace within WordPress**

After setting up the integration plugin, DocSpace will appear for users with the upload_files permission. Such users are able to access ONLYOFFICE DocSpace where it's possible to create Collaboration and Custom rooms, invite users, and collaborate on documents within the rooms.

**Adding a DocSpace room or file to the WordPress page**

When creating a post, you can add the ONLYOFFICE DocSpace element (block) – room or file.

To add a room, click the Select room button, select the desired room and press Select. In the block settings, you can specify the desired width and height to be displayed on the page.

To add a file, click the Select file button, select the desired file from the room and press Save.

Access rights to rooms and files on the published pages are determined depending on the publicity status of the WordPress page:

- Public: the DocSpace room/file is available for viewing to all WordPress users. These users access content under a public user account (WordPress Viewer).
- Private: the DocSpace room/file is available in accordance with the existing DocSpace access rights. Collaborative document editing is possible if users have the required rights.

== Frequently Asked Questions ==

= How to configure the plugin? =

Go to WordPress administrative dashboard -> ONLYOFFICE DocSpace -> Settings. Specify the DocSpace Service Address, Admin Login and Password. When you click on the Save button, a user with the Room admin role will be created in ONLYOFFICE DocSpace, with the same data as the current WordPress user. A public user (WordPress Viewer) will be also added to DocSpace with the View Only access.

= What is ONLYOFFICE DocSpace? =

ONLYOFFICE DocSpace is a room-based collaborative environment. With ONLYOFFICE DocSpace, teams can create rooms with a clear structure entirely according to their needs and project goals and define from the start the required roles and rights that will apply to all the files stored within these rooms. DocSpace comes with the integrated online viewers and editors allowing you to work with files of multiple formats, including text docs, digital forms, sheets, presentations, PDFs.

== Screenshots ==

1. Adjust ONLYOFFICE DocSpace configuration settings within the WordPress administrative dashboard
2. Create collaboration and custom rooms in ONLYOFFICE DocSpace
3. Add ONLYOFFICE DocSpace rooms to the WordPress site
4. Add ONLYOFFICE DocSpace files to the WordPress site
5. Access ONLYOFFICE DocSpace within WordPress

== Changelog ==

= 1.0 =
* connection settings page
* user synchronization
* opening DocSpace in WordPress
* inserting a file when creating a page
* inserting a room when creating a page

== Upgrade Notice ==

= 1.0 =
This is the first version of the plugin.

0 comments on commit a7a2c9c

Please sign in to comment.