Skip to content

Automate TinyMCE Plugin Integration for WebTop with Active Subscriptions #7266

@Amygos

Description

@Amygos

The advanced editing feature provided by the TinyMCE plugin enhances the user
experience in WebTop by offering more robust text editing capabilities.
However, the plugin is restricted to installations with an active subscription,
and its distribution is limited by licensing constraints. This feature request
aims to streamline the process of enabling the plugin for eligible
installations while adhering to licensing requirements.

Proposed Solution

Develop an automated mechanism within WebTop to detect and enable the TinyMCE
plugin for installations with an active subscription. The solution should:

  1. Verify the subscription status of the installation.
  2. Automatically download and install the webtop-tmceplugins.jar file from an
    authorized source.
  3. Configure the necessary system settings, such as permissions and service
    adjustments, to integrate the plugin seamlessly.
  4. Ensure the system reloads and restarts the required services to apply the
    changes without manual intervention.

This approach eliminates the need for manual steps, such as copying files,
modifying system configurations, and restarting services, thereby reducing the
risk of errors and improving user convenience.

Additional Context The current manual workaround involves the following
steps:

  1. Extracting the webtop-tmceplugins.jar file from an existing NS7 Enterprise
    installation.
  2. Copying the file to the appropriate directory and setting permissions.
  3. Modifying the systemd unit file to include the plugin.
  4. Reloading and restarting the WebTop service.

Example:

# Step 1: Extract the jar file from the installed package from an NS7
# Enterprise system
rpm -ql webtop-tmceplugins

# Step 2: Copy the jar file to the appropriate directory of the NS8 node and
# adjust permissions
mv webtop-tmceplugins.jar /home/webtop1/.config/state/
chown webtop1:webtop1 /home/webtop1/.config/state/webtop-tmceplugins.jar

# Step 3: Modify the systemd unit
runagent -m webtop1 vim /home/webtop1/.config/systemd/user/webapp.service
# Add the following line: --volume=./webtop-tmceplugins.jar:/usr/local/tomcat/webapps/webtop/WEB-INF/lib/webtop-tmceplugins.jar:z

# Step 4: Apply the changes and restart the webapp service
runagent -m webtop1 systemctl --user daemon-reload
runagent -m webtop1 systemctl --user restart webapp

This process is error-prone and requires technical expertise, which may not be
feasible for all users. Furthermore, any manual modifications made to these
settings can be lost when the module is updated, requiring users to reapply
their changes. Automating these steps would significantly enhance usability and
compliance.

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions