WilliamCB Posted March 17, 2008 Posted March 17, 2008 We want to write and edit simple HTML in a Filemaker field, which is later exported to our web site. This includes things like adding bold to text and inserting live email addresses. I see no WYSIWYG way of doing this. So... Has anyone developed a mini-HTML editor that allows this to be done easily, as it would in a wiki (or indeed when posting messages here)? What's the easiest way of rendering the field so that users can see the results of their work? What's the best way of handling the fact that Filemaker's returns in text fields don't automatically turn into the tags required by web pages? Many thanks in advance.
Ocean West Posted March 17, 2008 Posted March 17, 2008 You could use SmartPill http://www.scodigo.com/
WilliamCB Posted March 25, 2008 Author Posted March 25, 2008 Thanks, but, having looked, I actually can't see how that package would help.
Ocean West Posted March 25, 2008 Posted March 25, 2008 just a thought.. using a web viewer pointing to a web page that you host - basically an html WYSIWYG form that allows you to type in your data and format your data. Then use a script in FMP to scrape the formatted data from the web viewer?
Genx Posted March 25, 2008 Posted March 25, 2008 Just edit using FM formatting tools and then use getAsCSS(FieldNameHere)
bruceR Posted March 26, 2008 Posted March 26, 2008 Just point your web viewer directly at your field, using the data url. So if your field is name HTMLTester, set the web viewer to "data:text/html," & HTMLTester
Genx Posted March 26, 2008 Posted March 26, 2008 ... how exactly is that a WYSIWYG editor... how do you edit?
comment Posted March 26, 2008 Posted March 26, 2008 If I understand the question correctly, it has very little to do with the web viewer (except as a means to check the result) and more with calculating HTML from something that is not. As Genx mentioned, you can use GetAsCSS() to turn styled text into styled HTML. However, it won't turn e-mail addresses into links. If you're OK with using some in-line codes to mark up the text (like this forum does), then it should be relatively simple to substitute those codes for proper HTML coding. Otherwise you would need a custom function or a script to go over the text, identify the e-mail addresses, and turn them into links.
Ocean West Posted March 26, 2008 Posted March 26, 2008 hence why I suggest SmartPill cause there isn't much you can't do with PHP like converting stripping or adding tags.
comment Posted March 26, 2008 Posted March 26, 2008 I believe this can be accomplished quite easily within Filemaker.
bruceR Posted March 27, 2008 Posted March 27, 2008 (edited) ... how exactly is that a WYSIWYG editor... how do you edit? It is exactly what he asked for. A place to enter HTML. And see the result. His statement: "We want to write and edit simple HTML in a Filemaker field, which is later exported to our web site. ... What's the easiest way of rendering the field so that users can see the results of their work? " The statement about formatted text directly contradicts the original request. If you're writing HTML then you're writing HTML. HTML is straight text. Perhaps WilliamCB needs to clarify his request. Edited March 27, 2008 by Guest
Genx Posted March 27, 2008 Posted March 27, 2008 I think the issue here is the OP's definition of what he actually wants... WYSIWYG "implies the ability to change the layout of a document without having to type or remember names of layout commands" (wiki) vs Editing HTML code and viewing the rendered result.
aholtzapfel Posted March 27, 2008 Posted March 27, 2008 (edited) Here is somthing to look at. Make sure when your exporting the field contents you use the ".html" so a browser will open it. htmlEDIT.zip Edited March 27, 2008 by Guest
WilliamCB Posted October 9, 2008 Author Posted October 9, 2008 My apologies for a very late reply to this thread. I struggled a bit to understand what was being said, but the zipped sample posted by aholtzapfel explained it all. To clarify, I was not looking for a true WYSIWYG html editor. However, I seem to have got almost that. Since users will be able to style text using the Filemaker styling controls, and this will be exported as HTML. I can see there are some limitations to this (eg email addresses as mentioned), but it's a 90 per cent solution, and easy to implement. Thank you all very much!
Peter Payne Posted January 13, 2011 Posted January 13, 2011 Hi, I am trying to set up a system simliar to this, with FM displaying as a web viewer the email that's about to be sent to customers. The downloaded solution in this thread works great, however only in Filemaker 9 and up. I am trying to display the HTML in FM 8.5 on the Mac and it's showing garbage. Can anyone help me get this to display with FM 8.5 on Mac? I don't want to upgrade just because of this one feature. (Plus I detest the top-bar display in Filemaker now). Thanks in advance to anyone who can help me get HTML to display in this way in FM8.5.
dansmith65 Posted January 20, 2011 Posted January 20, 2011 I recently came across this free FileMaker file, which does something to this effect... https://www.cordega.com/Help/
Recommended Posts
This topic is 5067 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now