Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
Made YUI RichEditor default - SimpleEditor is too simple
Browse files Browse the repository at this point in the history
  • Loading branch information
acdha committed Feb 23, 2010
1 parent 54bfbfc commit 27d2c46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Expand Up @@ -5,7 +5,7 @@

<script type="text/javascript">
YAHOO.util.Event.onAvailable("{{ field_id }}", function() {
window.{{ editor_name }} = new YAHOO.widget.SimpleEditor("{{ field_id }}", django_wysiwyg_editor_config);
window.{{ editor_name }} = new YAHOO.widget.Editor("{{ field_id }}", django_wysiwyg_editor_config);
window.{{ editor_name }}.render();
});
</script>
</script>
9 changes: 4 additions & 5 deletions django_wysiwyg/templates/django_wysiwyg/yui/includes.html
Expand Up @@ -3,7 +3,7 @@

To include other parts of YUI, visit the configurator here:

http://developer.yahoo.com/yui/articles/hosting/?simpleeditor&MIN
http://developer.yahoo.com/yui/articles/hosting/?editor&MIN
{% endcomment %}


Expand All @@ -12,10 +12,9 @@
{% endcomment %}

<!-- Combo-handled YUI CSS files: -->
<link rel="stylesheet" type="text/css" href="{{ protocol }}://yui.yahooapis.com/combo?2.7.0/build/editor/assets/skins/sam/simpleeditor.css">

<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/assets/skins/sam/skin.css">
<!-- Combo-handled YUI JS files: -->
<script type="text/javascript" src="{{ protocol }}://yui.yahooapis.com/combo?2.7.0/build/yahoo-dom-event/yahoo-dom-event.js&2.7.0/build/element/element-min.js&2.7.0/build/editor/simpleeditor-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&2.8.0r4/build/container/container_core-min.js&2.8.0r4/build/menu/menu-min.js&2.8.0r4/build/element/element-min.js&2.8.0r4/build/button/button-min.js&2.8.0r4/build/editor/editor-min.js"></script>

<script type="text/javascript" charset="utf-8">
"use strict";
Expand Down Expand Up @@ -178,4 +177,4 @@
]
}
};
</script>
</script>

0 comments on commit 27d2c46

Please sign in to comment.