Hello guys,
I would like to propose a simple solution for this issue, as follows below:
File:
/just-writing/4.3/just-writing-editor.4.3.php
PS: you can edit this file using the wordpress editor or you may change it manually
Change the line 133
if( $JustWritingUtilities->get_user_option( ‘link’ ) == ‘on’ ) { $buttons[‘link’] = array( ‘title’ => __(‘Insert/edit link (Alt + Shift + A)’), ‘onclick’ => “jQuery(‘.mce-i-link’).parent().parent().click();“, ‘both’ => false ); }
For this code
if( $JustWritingUtilities->get_user_option( ‘link’ ) == ‘on’ ) { $buttons[‘link’] = array( ‘title’ => __(‘Insert/edit link (Alt + Shift + A)’), ‘onclick’ => “wpLink.open();“, ‘both’ => false ); }
Justification: Use the native wordpress function named “wpLink.open();” in order to open the Link PopUP. Once that the TyneMCE editor is used by both applications (just writing and the default wp editor) it works properly.
I also translated this plugin for Portuguese-BR, but it is ‘hard coded’. Please let me know if you would like to make it available for other uses in the next version, so I can send you the files.
Best regards,
barbosalm