The link button in the image module of Web Presence Builder is inactive

Created:

2017-07-04 07:06:13 UTC

Modified:

2017-08-16 17:14:24 UTC

0

Was this article helpful?


Have more questions?

Submit a request

The link button in the image module of Web Presence Builder is inactive

Applicable to:

  • Plesk for Linux
  • Web Presence Builder for Linux

Symptoms

The Link button in the image module of Web Presence builder is inactive in Chrome or Opera browsers:

linkisactive.JPG

Cause

Web Presence Builder bug with ID #PPB-4525 which is planned to be fixed in future Plesk updates.

Resolution

As a workaround:

1. Connect to the server over SSH or console.

2. Backup Web Presence Builder files with the following command:

# cp /usr/local/sb/htdocs/js/externals/tinymce/tiny_mce_src.js /usr/local/sb/htdocs/js/externals/tinymce/tiny_mce_src.js.bak

# cp /usr/local/sb/htdocs/js/externals/tinymce/tiny_mce.js /usr/local/sb/htdocs/js/externals/tinymce/tiny_mce.js.bak

3. In the file /usr/local/sb/htdocs/js/externals/tinymce/tiny_mce_src.js replace code snippet:

CONFIG_TEXT:  if (/^(IMG|HR)$/.test(e.nodeName)) {
selection.getSel().setBaseAndExtent(e, 0, e, 1);
}

with

CONFIG_TEXT:  if (/^(IMG|HR)$/.test(e.nodeName)) {
try {
selection.getSel().setBaseAndExtent(e, 0, e, 1);
} catch (ex) {
selection.select(e);
}
}

4. In the file /usr/local/sb/htdocs/js/externals/tinymce/tiny_mce.js replace code snippet:

CONFIG_TEXT: m.getSel().setBaseAndExtent(N,0,N,1)

with

CONFIG_TEXT: try {m.getSel().setBaseAndExtent(N,0,N,1);} catch(ex) {m.select(N);}

Have more questions? Submit a request
Please sign in to leave a comment.