Add Markdown support

This commit is contained in:
Gregory Soutade
2014-01-04 13:43:38 +01:00
parent 9de9cea99a
commit 88e6ebd3a4
11 changed files with 2521 additions and 12 deletions

View File

@@ -67,4 +67,22 @@ function addTag()
else
text_tags.value = cur_elem;
}
}
function switchEditor()
{
options = document.getElementById("editor");
help = document.getElementById("markdown_help");
if (options.selectedIndex == 0) // HTML
{
tinyMCE.execCommand('mceAddControl', false, 'content');
help.style.display="none";
// tinymce.execCommand('mceToggleEditor',true,'content');
} else // Text
{
tinyMCE.execCommand('mceRemoveControl', false, 'content');
help.style.display="block";
// tinymce.execCommand('mceToggleEditor',false,'content');
}
}