From 880f6bcf0266578c4e8e16d909c18af0449943cc Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Mon, 15 Feb 2016 19:13:17 -0600 Subject: Updated to support lang attribute and styles in editor --- public/js/extra.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/js/extra.js') diff --git a/public/js/extra.js b/public/js/extra.js index 28a91fbc..cbb30697 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -66,7 +66,7 @@ function slugifyWithUTF8(text) { } //parse meta -function parseMeta(md, view, toc, tocAffix) { +function parseMeta(md, edit, view, toc, tocAffix) { var robots = null; var lang = null; var dir = null; @@ -93,10 +93,14 @@ function parseMeta(md, view, toc, tocAffix) { view.attr('lang', lang); toc.attr('lang', lang); tocAffix.attr('lang', lang); + if (edit) + edit.attr('lang', lang); } else { view.removeAttr('lang'); toc.removeAttr('lang'); tocAffix.removeAttr('lang'); + if (edit) + edit.removeAttr('lang', lang); } //text direction if (dir) { -- cgit v1.2.3