Forum breadcrumbs – You are here:Asgaros Support ForumSupportThe use of quicktags
Please or Register to create posts and topics.

The use of quicktags

Hi Thomas

When using quicktags, there is an error in the console

Uncaught TypeError: Cannot read property ‘focus’ of null

wp-content/plugins/asgaros-forum/js/script.js?ver=1.5.3:21

script.js?ver=1.5.3:21 Uncaught TypeError: Cannot read property 'focus' of null
    at HTMLFormElement.<anonymous> (script.js?ver=1.5.3:21)
    at HTMLFormElement.d.complete (jquery.js?ver=1.12.4:4)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at i (jquery.js?ver=1.12.4:4)
    at n.fx.tick (jquery.js?ver=1.12.4:4)
(anonymous) @ script.js?ver=1.5.3:21
d.complete @ jquery.js?ver=1.12.4:4
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
i @ jquery.js?ver=1.12.4:4
n.fx.tick @ jquery.js?ver=1.12.4:4
setInterval (async)
n.fx.start @ jquery.js?ver=1.12.4:4
n.fx.timer @ jquery.js?ver=1.12.4:4
qb @ jquery.js?ver=1.12.4:4
g @ jquery.js?ver=1.12.4:4
dequeue @ jquery.js?ver=1.12.4:3
(anonymous) @ jquery.js?ver=1.12.4:3
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
queue @ jquery.js?ver=1.12.4:3
animate @ jquery.js?ver=1.12.4:4
n.fn.(anonymous function) @ jquery.js?ver=1.12.4:4
(anonymous) @ script.js?ver=1.5.3:10
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3

This is possible to correct?

With respect, Igor 🙂

Hello,

I cant reproduce this bug. Is it only with activated quicktags or other stuff as well? Have you cleared your browser cache? Please double-check if this is a bug with other TinyMCE-editor-extensions because WordPress made some API-changes with the latest 4.8 update.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Error with this connection:

function change_editor_settings($settings) {
  if (is_super_admin()) {
    $settings['teeny'] = false;
    $settings['quicktags'] = true;
        return $settings;
  }
}
add_filter('asgarosforum_filter_editor_settings', 'change_editor_settings');

 

Thank you. I could reproduce and fix it. 🙂

https://github.com/Asgaros/asgaros-forum/commit/91847ad023799d8bfb6a8f2b7628f931412cb36e

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

Thomas, thank you very much! 🙂