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.
Hello,
I'm using TinyMCE 3.2.2.
In Firefox 3.0.7 page break works ok but in IE7 only the break image is inserted in the editor but the break code not. It doesn't work in previous versions of TinyMCE either.
With best regards,
Fred
Thanks for this great module!
Comment | File | Size | Author |
---|---|---|---|
#10 | wysiwyg-HEAD.break-comment-ie.patch | 1.44 KB | sun |
#7 | wysiwyg-HEAD-issue-404532.patch | 766 bytes | TwoD |
Comments
Comment #1
sunWhat kind of "pagebreak" are you talking of?
Comment #2
fredklopper CreditAttribution: fredklopper commentedDrupal break:
<!--break-->
Comment #3
Arjean-1 CreditAttribution: Arjean-1 commentedI can confirm this.
The page/teaser break button works perfect in Firefox, you can add it to a new/edit node and it will be stored.
As for IE7 it is already being filtered out at a preview.
When editing a post (having working teaser break) in Explorer 7 it will show the teaser break,
but every edit afterwards will make it disappear.
Comment #4
k3vin CreditAttribution: k3vin commentedsubscribing
Comment #5
sunComment #6
TwoDI did some testing in IE6 and it turns out that IE does not allow comments to be inserted the way we do it in the Break plugin.
The plugin uses
$('img.wysiwyg-break', $content).replaceWith('<!--break-->')
, which in turn callsthis.after('<!--break-->')
. Wrapping the comment in something, like<p><!--break--></p>
seems to work though, but I'm not sure if it'll treat it as text or an actual comment though. I don't have access to my own computer at the moment but will test this again in a few hours.Comment #7
TwoDI've created a simple patch and tested it in IE7. It should also work in IE6 (and all other major browsers) since document.createComment() was introduced to the standards back then.
Comment #8
Arjean-1 CreditAttribution: Arjean-1 commentedTested it in IE 7, Firefox 3 and Opera 9, seems to work fine. Well done.
Comment #9
sunComment #10
sunThanks for testing!
Committed attached patch to all 2.x branches.
We should always add remarks for compatibility issues like this.
Comment #11
fredklopper CreditAttribution: fredklopper commentedWell done, thanks!!!
Comment #13
TwoDFor the record, related error in #474908: Teaser Break: IE8: JavaScript error. That fix must not break IE6/7 again.
Comment #14
abz789 CreditAttribution: abz789 commentedHey guys, i was having same issue and finally managed to crack it down by placing the following code..
and then value what ever it is.
It worked for me.
FF was already working fine, its just MICRoSOFT always :)
Comment #15
TwoD@abz789 I fail to see how that code is related to the plugin inserting
<!--break-->
comments used by Drupal to split a node's teaser and body.This issue has been fixed in most browsers for some time now, and just recently it was also fixed in IE8, are you perhaps thinking of another issue?