Make WordPress Core


Ignore:
Timestamp:
10/20/2015 10:05:31 PM (10 years ago)
Author:
azaozz
Message:

TinyMCE: update to 4.2.6. Changelog: http://www.tinymce.com/develop/changelog/?ctrl=version&act=view&pr_id=1&vr_id=887.

Fixes #34331.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/qunit/editor/tinymce/EnterKey.js

    r33981 r35306  
    6565});
    6666
     67test('Enter before first wrapped IMG in P', function() {
     68    editor.setContent('<p><b><img alt="" src="about:blank" /></b></p>');
     69    editor.selection.setCursorLocation(editor.getBody().firstChild.firstChild, 0);
     70    Utils.pressEnter();
     71    equal(editor.getBody().firstChild.innerHTML, (tinymce.isIE && tinymce.Env.ie < 11) ? '' : '<br data-mce-bogus="1">');
     72    equal(editor.getContent(), '<p>\u00a0</p><p><b><img src=\"about:blank\" alt=\"\" /></b></p>');
     73});
     74
    6775test('Enter before last IMG in P with text', function() {
    6876    editor.setContent('<p>abc<img alt="" src="about:blank" /></p>');
Note: See TracChangeset for help on using the changeset viewer.