Add Markdown support
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user