[wp-trac] [WordPress Trac] #36689: New WPLink in Modal Window
WordPress Trac
noreply at wordpress.org
Wed Apr 27 15:22:37 UTC 2016
#36689: New WPLink in Modal Window
----------------------------------------+-----------------------------
Reporter: berengerzyla | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 4.5.1
Severity: normal | Keywords:
Focuses: javascript, administration |
----------------------------------------+-----------------------------
Hello!
I have an issue with the last WPLink.
I use an editor in a TinyMCE window ({{{editor.windowManager.open}}}),
instantiated as follow:
{{{
$.extend( {}, tinyMCEPreInit.mceInit.content, {
body_class: 'description',
selector: '#description',
toolbar1: 'bold,italic,link,unlink',
toolbar2: '',
toolbar3: '',
toolbar4: '',
theme_advanced_statusbar_location: 'none',
elementpath: false,
wpautop: false,
remove_linebreaks: false,
forced_root_block : "",
apply_source_formatting: true
} );
}}}
This version doesn't work anymore (used to), for in
{{{wpview/plugin.js}}}, it throws an error, as I want to edit without the
p tags.
{{{Uncaught TypeError: first.getBoundingClientRect is not a function
line 243 of wpview/plugin.js.}}}
But even if I comment out {{{wpautop}}} and {{{force_root_block}}} in the
initialization, the WPLink won't show up.
It gets populated (the link url is put into {{{wp-link-preview}}}), if I
look at the DOM, but is not positioned and stays at {{{display:none}}}.
Any idea? Any tip on how I could debug that?
Thank you!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36689>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list