Skip to content

Commit

Permalink
Remove target="_blank" from wysihtml5 config and regenerate minificat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
Sebastian Vetter committed Feb 10, 2014
1 parent 94ab2b1 commit caa9c7e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@
Changelog
=========


0.3.1
-----

* Remove the ``target="_blank"`` attribute that used to be added by
``wysihtml5`` when sanitising link tags.
* Rename the ``advance.js`` config file for ``wysihtml5`` to
``wysihtml5-config.js``.
* Minify ``wysihtml5-config.js`` used for customising ``wyshtmls5`` to
reduce size.


0.3.0
-----

Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.PHONY: dev sandbox

smaller:
uglifyjs fancypages/static/fancypages/libs/wysihtml5/wysihtml5-config.js > fancypages/static/fancypages/libs/wysihtml5/wysihtml5-config.min.js
uglifyjs fancypages/static/fancypages/libs/wysihtml5/wysihtml5-0.3.0.js > fancypages/static/fancypages/libs/wysihtml5/wysihtml5-0.3.0.min.js

dev:
pip install -e .
pip install -r requirements.txt
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* <a href="http://foobar.com">foo</a>
* ... becomes ...
* <a href="http://foobar.com" target="_blank" rel="nofollow">foo</a>
* <a href="http://foobar.com" rel="nofollow">foo</a>
*
* <img align="left" src="http://foobar.com/image.png">
* ... becomes ...
Expand Down Expand Up @@ -184,7 +184,6 @@ var wysihtml5ParserRules = {
},
"set_attributes": {
"rel": "nofollow",
"target": "_blank"
}
},
"img": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fancypages/templates/fancypages/dashboard/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

{% block extrascripts %}
{{ block.super }}
<script type="text/javascript" src="{% static "fancypages/libs/wysihtml5/advanced.js" %}"></script>
<script type="text/javascript" src="{% static "fancypages/libs/wysihtml5/wysihtml5-config.min.js" %}"></script>
<script type="text/javascript" src="{% static "fancypages/libs/wysihtml5/wysihtml5-0.3.0.min.js" %}"></script>
{% compress js %}
<script src="{% static "fancypages/libs/elastislide/jquery.elastislide.js" %}" type="text/javascript" charset="utf-8"></script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load staticfiles %}
<script type="text/javascript" charset="utf-8" src="{% static "fancypages/libs/wysihtml5/advanced.js" %}"></script>
<script type="text/javascript" charset="utf-8" src="{% static "fancypages/libs/wysihtml5/wysihtml5-config.min.js" %}"></script>
<script type="text/javascript" charset="utf-8" src="{% static "fancypages/libs/wysihtml5/wysihtml5-0.3.0.min.js" %}"></script>

<script type="text/javascript" charset="utf-8" src="{% static "fancypages/libs/scrollpane/jquery.jscrollpane.js" %}"></script>
Expand Down

0 comments on commit caa9c7e

Please sign in to comment.