Editor_button
Back to ListDescription: Save or load back Markdown content to OS file, for use with Editing in external editor
FileMaker Prototype:
Set Variable [$res; ACF_Run("Editor_button";)]
Category: EMAIL
NOTE: This function serves as a reference template. To use it effectively, you may need to adjust certain parts of the code, such as field names, database structures, and specific data lists to fit the requirements of your system. This customization allows the function to work seamlessly within your environment.
Function source:
function Editor_button()
string MDText = Email_Messages::MarkdownText;
string tmpMDfile = Email_Messages::TempMDFile;
string htmlfolder = Email_Accounts::HTML_Folder;
string mdContent;
int x;
if ( tmpMDfile == "") then
tmpMDfile = htmlfolder+"/Temp_"+string(now(), "%Y%m%d_%H%I%S")+".md";
x = open (tmpMDfile, "w" );
write (x, Email_Messages::MarkdownText);
close (x);
$$mdFile = tmpMDfile;
return Email_Messages::MarkdownText;
else
x = open ( tmpMDfile, "r");
mdContent = read ( x);
close x;
$$mdFile = "";
return mdContent;
end if
return "OK";
end
