Page MenuHomePhabricator

Lqt post preview is broken
Closed, ResolvedPublic

Description

Following javascript error:

Uncaught TypeError: Cannot read property 'dialogs' of undefined on line 175 of lqt.js

174 if ( $j.fn.wikiEditor && $j.wikiEditor.isSupported( $j.wikiEditor.modules.toolbar ) ) {
175 if ( wgWikiEditorPreferences.toolbar.dialogs && $j.wikiEditor.isSupported( $j.wikiEditor.modules.dialogs ) ) {


Version: unspecified
Severity: normal

Details

Reference
bz25169

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:19 PM
bzimport set Reference to bz25169.

Other features such as CharInsert are broken, too.

(In reply to comment #1)

Other features such as CharInsert are broken, too.

That is different bug:
80 function insertTags( tagOpen, tagClose, sampleText ) {
81 if ( typeof $j != 'undefined' && typeof $j.fn.textSelection != 'undefined' &&
82 ( currentFocused.nodeName.toLowerCase() == 'iframe' || currentFocused.id == 'wpTextbox1' ) ) {

Uncaught TypeError: Cannot read property 'nodeName' of undefined on line 82 of edit.js

Nx.devnull wrote:

(In reply to comment #2)

(In reply to comment #1)

Other features such as CharInsert are broken, too.

That is different bug:
80 function insertTags( tagOpen, tagClose, sampleText ) {
81 if ( typeof $j != 'undefined' && typeof $j.fn.textSelection !=
'undefined' &&
82 ( currentFocused.nodeName.toLowerCase() == 'iframe' ||
currentFocused.id == 'wpTextbox1' ) ) {

Uncaught TypeError: Cannot read property 'nodeName' of undefined on line 82 of
edit.js

That's bug 26620

lowering priority since old LQT issues are not high priority b/c of the rewrite.