0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00

Ensure IE not in compat-mode on demo page.

This commit is contained in:
Neil Jenkins 2013-01-15 10:32:21 +11:00
parent 8ccc9fad06
commit bce3e8d208
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>HTML Editor Test</title> <title>HTML Editor Test</title>
<style type="text/css" media="screen"> <style type="text/css" media="screen">

View file

@ -1,7 +1,6 @@
/* Copyright © 2011-2012 by Neil Jenkins. Licensed under the MIT license. */ /* Copyright © 2011-2012 by Neil Jenkins. Licensed under the MIT license. */
/*global UA, DOMTreeWalker, Range, navigator, /*global UA, DOMTreeWalker, Range, top, document, setTimeout */
top, window, document, setTimeout */
( function ( doc, UA, TreeWalker ) { ( function ( doc, UA, TreeWalker ) {
@ -1363,7 +1362,7 @@
// If you select all in IE8 then type, it makes a P; replace it with // If you select all in IE8 then type, it makes a P; replace it with
// a DIV. // a DIV.
if ( isIE8 ) { if ( isIE8 ) {
addEventListener( 'keyup', function ( event ) { addEventListener( 'keyup', function () {
var firstChild = body.firstChild; var firstChild = body.firstChild;
if ( firstChild.nodeName === 'P' ) { if ( firstChild.nodeName === 'P' ) {
saveRangeToBookmark( getSelection() ); saveRangeToBookmark( getSelection() );