From b12099a9d7b32a4452911fbcebaa4917ff6dbc0e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 18 Feb 2012 15:40:41 +0000 Subject: [PATCH] support h1-h6, fixes #516 --- source/Ox.UI/css/Ox.UI.css | 5 ++++- source/Ox/js/HTML.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/css/Ox.UI.css b/source/Ox.UI/css/Ox.UI.css index f2cded96..551108a7 100644 --- a/source/Ox.UI/css/Ox.UI.css +++ b/source/Ox.UI/css/Ox.UI.css @@ -33,11 +33,14 @@ div, input, textarea { font-family: Lucida Grande, Segoe UI, DejaVu Sans, Arial; font-size: 11px; } -h1 { +h1,h2,h3,h4,h5,h6 { margin: 0; font-size: 16px; font-weight: normal; } +h2,h3,h4,h5,h6 { + font-size: 14px; +} img { -moz-user-drag: none; -o-user-drag: none; diff --git a/source/Ox/js/HTML.js b/source/Ox/js/HTML.js index 0c8682fa..c7615c7b 100644 --- a/source/Ox/js/HTML.js +++ b/source/Ox/js/HTML.js @@ -46,7 +46,7 @@ Ox.parseHTML = (function() { // inline formatting 'b', 'code', 'i', 's', 'sub', 'sup', 'u', // block formatting - 'blockquote', 'h1', 'p', 'pre', + 'blockquote', 'h1', 'h2', 'h3', 'p', 'pre', // lists 'li', 'ol', 'ul', // tables