anchor.diff:    end.
   
   event({post_edit, Post}) ->
  -  wf:replace("post",post_editor("post", Post#mt_post.title, Post#mt_post.body, Post#mt_post.tags, "Save", {save_post, Post}, "Cancel", {cancel_edit, Post})),
  +  wf:replace("post",post_editor("post", Post#mt_post.title, Post#mt_post.body, mt_format(Post#mt_post.format), Post#mt_post.tags, "Save", {save_post, Post}, "Cancel", {cancel_edit, Post})),
     ok;
   event({cancel_edit, Post}) ->
     wf:replace("post", post_body(Post)),
  
positive.code:     _ ->
        mtws_common:user_blog(wf:user(), PostSuff)
    end.
  
negative.code:         author = Author,
          title = case Title of undefined -> Title; _ -> unicode:characters_to_binary(mtws_sanitizer:sanitize("text", sanitize_fix(Title))) end,
          body = Text,
          body_html = case Text of undefined -> Text; _ -> unicode:characters_to_binary(mtws_sanitizer:sanitize(Format, if Format =:= "html" -> sanitize_fix(Text); true -> Text end)) end,
          format = mt_format(Format),
          origin = ?MT_ORIGIN,
          tags = [unicode:characters_to_binary(sanit(unicode:characters_to_binary(T))) || T <- string:tokens(unicode:characters_to_list(list_to_binary(Tags)), ",")]
        }),
  