[frame "tinymce"]

[if request.is_item] {edit} [else] {add} [end]

[end] [# tinymce needs javascript to work properly so we assume that the save method] [# will be made only through ajax (htmx)]
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
[frame "tinymce"] [end]
[end]
[if mount_type_is "cms"][end] [if mount_type_is "thread"][end] [if mount_type_is "ticket"][end]
[item.content.print_content]
[frame "tinymce"] [if not user_logged]
[include "antispam.html"] [end] [if winix_function_param_is "postredirect"] [end] [# IMPROVEME put some kind of a status msg here]
[end]