Fixed #441: editor now properly handles WikiMarkup-only content.
This commit is contained in:
parent
3a4eeaf51e
commit
2ad2497530
3 changed files with 11 additions and 23 deletions
|
@ -267,18 +267,11 @@ namespace ScrewTurn.Wiki {
|
|||
/// <param name="content">The content.</param>
|
||||
/// <param name="useVisual"><c>true</c> if the visual editor must be used, <c>false</c> otherwise.</param>
|
||||
public void SetContent(string content, bool useVisual) {
|
||||
inWYSIWYG = useVisual;
|
||||
lblWYSIWYG.Text = "";
|
||||
txtMarkup.Text = content;
|
||||
if(useVisual) btnVisual_Click(this, null);
|
||||
else btnWikiMarkup_Click(this, null);
|
||||
/*if(useVisual) {
|
||||
txtMarkup.Text = content;
|
||||
lblWYSIWYG.Text = content;
|
||||
SelectTab(1);
|
||||
}
|
||||
else {
|
||||
txtMarkup.Text = content;
|
||||
SelectTab(0);
|
||||
}*/
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue