Regression introduced in this issue: https://www.drupal.org/node/2243413

Original issue: https://www.drupal.org/node/1125582

Bug fix: Basically checks for if the tinymce fullscreen mode is active and prepares the content appropriately while leaving the AJAX fix as is.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ccjjmartin created an issue. See original summary.

ccjjmartin’s picture

ccjjmartin’s picture

ccjjmartin’s picture

ccjjmartin’s picture

Status: Active » Needs review
TwoD’s picture

I'm trying to keep the internal Wysiwyg instance as the context wherever possible and only use Drupal.wysiwyg.editor.instance[editorName] to build a prototype for it so let's get it from the main TinyMCE instance instead.

Also noticed the TinyMCE 4 implementation wasn't keeping up (fullscreen is no longer a separate instance) so I included fixes for that.

ccjjmartin’s picture

Code and functional (ajax requests and maintaining content) both look good on TinyMCE 3. Going to look into TinyMCE4.

ccjjmartin’s picture

When testing TinyMCE 4.5.7 + Drupal Core 7.56 I found that when I insert a link it saves the data to the database and displays the link within TinyMCE but when I go to view a node I am seeing:

some text [url=/test]Test[/url]

Maybe the prepare content for the plugins isn't replacing this properly ...

TwoD’s picture

Disable the BBCode plugin.

ccjjmartin’s picture

That fixed it. Is this a known issue with that plugin?

TwoD’s picture

It's designed to do that. You need a BBCode parser running as a text format filter to have any use for it though. (I don't even know if there are any for D8 yet)

ccjjmartin’s picture

Status: Needs review » Reviewed & tested by the community

This looks good to go then, great work!

dsnopek’s picture

Issue tags: +panopoly

RTBC +1! This patch works great in my testing and we're now using it in Panopoly :-)

  • TwoD committed cb4accf on 6.x-2.x
    - #2903753 by ccjjmartin, TwoD: Fixed regression: TinyMCE fullscreen...
  • TwoD committed 18832ab on 7.x-2.x
    - #2903753 by ccjjmartin, TwoD: Fixed regression: TinyMCE fullscreen...
TwoD’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reporting, patching and testing!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.