diff options
author | Cheng-Han, Wu | 2016-02-15 19:13:17 -0600 |
---|---|---|
committer | Cheng-Han, Wu | 2016-02-15 19:13:17 -0600 |
commit | 880f6bcf0266578c4e8e16d909c18af0449943cc (patch) | |
tree | a7cc0ba1a35b9fe422c9235effcd3589a4dcf9fd /public/js/extra.js | |
parent | 6967dac0ffaa7ff26c6ec4a1e42e81fffa687693 (diff) |
Updated to support lang attribute and styles in editor
Diffstat (limited to 'public/js/extra.js')
-rw-r--r-- | public/js/extra.js | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |