MDL-19211 back to the old text format preferences logic + minor refactoring and improvements

This commit is contained in:
Petr Skoda
2010-07-10 12:12:59 +00:00
parent e065ea4f06
commit 20e5da7d91
19 changed files with 126 additions and 151 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ if (empty($data->addtemplate) and empty($data->singletemplate) and
editors_head_setup();
$format = FORMAT_HTML;
$editor = get_preferred_texteditor($format);
$editor = editors_get_preferred_editor($format);
$strformats = format_text_menu();
$formats = $editor->get_supported_formats();
foreach ($formats as $fid) {