Loading...
 
Skip to main content

WYSIWYG plugin fails to open if no parameter for page (regression from version 17)

Status
Closed
Subject
WYSIWYG plugin fails to open if no parameter for page (regression from version 17)
Version
17.x
17.x Regression
Category
  • Error
  • Regression
Feature
WYSIWYG (What You See is What You Get)
Wiki Plugin (extends basic syntax)
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Volunteered to solve
Jonny Bradley
Lastmod by
Xavier de Pedro
Rating
(0)
Description

The WYSIWYG plugin no longer works starting from Tiki 17 if there is no page URL parameter, for example on the homepage.
I wrote in the wiki page the usual way to have the plugin to show up:

Copy to clipboard
{WYSIWYG()} {WYSIWYG}

I save the wiki page.
When one clicks the "Edit" button at the bottom right corner of the plugin, a JavaScript error occurs:

Uncaught TypeError: Cannot read property 'type' of null
at HTMLButtonElement. (tiki-ckeditor.js:188)
at HTMLButtonElement.dispatch (jquery.js:5206)
at HTMLButtonElement.elemData.handle (jquery.js:5014)


jqueryTiki.current_object is null.

If the homepage is accessed using relative URL tiki-index.php, the issue occurs.
If the homepage is accessed using relative URL tiki-index.php?page=HomePage, the issue does not occur.

Tiki 16 does not have this issue.

Solution

r63543


Fix confirmed, Jonny, thanks!

Importance
5
Easy to solve?
6
Priority
30
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6384
Created
Monday 03 July, 2017 08:23:59 UTC
by Xavier de Pedro
LastModif
Wednesday 16 August, 2017 22:07:32 UTC


Show PHP error messages