Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#8 | TinyMCE 4.5.7 Node View replacements broken.png | 33.86 KB | ccjjmartin |
#6 | wysiwyg.tinymce_fullscreen.2903753.6.patch | 3.35 KB | TwoD |
#2 | wysiwyg-tinymce-fullscreen-2903753-2-D7.patch | 1.08 KB | ccjjmartin |
Comments
Comment #2
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedComment #3
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedComment #4
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedComment #5
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedComment #6
TwoDI'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.
Comment #7
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedCode and functional (ajax requests and maintaining content) both look good on TinyMCE 3. Going to look into TinyMCE4.
Comment #8
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedWhen 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 ...
Comment #9
TwoDDisable the BBCode plugin.
Comment #10
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedThat fixed it. Is this a known issue with that plugin?
Comment #11
TwoDIt'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)
Comment #12
ccjjmartin CreditAttribution: ccjjmartin as a volunteer commentedThis looks good to go then, great work!
Comment #13
dsnopekRTBC +1! This patch works great in my testing and we're now using it in Panopoly :-)
Comment #15
TwoDThanks for reporting, patching and testing!