|
FastMail Forum All posts relating to FastMail.FM should go here: suggestions, comments, requests for help, complaints, technical issues etc. |
|
Thread Tools |
25 Sep 2011, 02:05 AM | #1 |
Senior Member
Join Date: Oct 2008
Posts: 127
|
Can I edit my FM hosted website online?
I have a very simple, personal site hosted by FM. Is there any way to edit the html online?
|
26 Sep 2011, 04:07 AM | #2 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,929
|
Creating and editing simple websites
Sure. Just click the (details) link adjacent to a file name in the listing. You can edit text MIME types (such as text/plain and text/html), but not non-text types (such as application/pdf or image/jpeg).
For those who want the details on setting up a very simple website:
|
26 Sep 2011, 05:41 AM | #3 |
Senior Member
Join Date: Oct 2008
Posts: 127
|
I was thinking of an HTML editor not a text editor.
|
26 Sep 2011, 06:14 AM | #4 |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,929
|
Adding HTML editor for Files Edit Contents box
You can use a javascipt tweak to use the Fastmail HTML editor in the Files screen. This will allow you to edit simple websites. Many (but not all) of the editor features can be used. Don't try to use the Save (disk icon) feature -- it will temporarily produce a crash.
To use this feature you will need to change the MIME type of the file from Auto (text/html) to just text/html (and save that change) so that the file will be detected as HTML and cause the editor to switch from plain text to HTML. The detailed instructions are shown below. Be sure to use the exact folder and file names as shown (including case).
Code:
/* Rich Text editor in Files details screen -- Bill n5bb 2009.10.19 */ window.addEvent('domready', function() { var detailsEditor = $$('textarea[name=FFP-Contents]')[0]; if(detailsEditor && $$('option[selected]')[0].value == "text/html") { detailsEditor.set('id','FFP-Contents'); new Asset.javascript('https://www.fastmail.fm/3pp/fck-latest/fckeditor.js'); setTimeout(function() { var oFCKeditor = new FCKeditor('FFP-Contents') ; oFCKeditor.BasePath = "/3pp/fck-latest/"; oFCKeditor.Height = document.documentElement.clientHeight-20; //Set the height to the initial window size - 20 for the scrollbar. oFCKeditor.ReplaceTextarea(); }, 200); } }); Last edited by n5bb : 26 Sep 2011 at 06:19 AM. |
27 Sep 2011, 04:47 PM | #5 |
The "e" in e-mail
Join Date: Oct 2002
Location: Holon, Israel.
Posts: 4,855
|
Is the FCKeditor tweak still working?
Some time ago FCKeditor was upgraded to CKeditor (that is much much better!) and since then all of my FCKeditor tweaks (in the Compose screen; I haven't tried the file editor tweak) have stopped working. |
29 Sep 2011, 01:16 PM | #6 | |
Intergalactic Postmaster
Join Date: May 2004
Location: Irving, Texas
Posts: 8,929
|
HTML editor for Files Edit Contents box works for me right now
Quote:
Bill Last edited by n5bb : 29 Sep 2011 at 01:22 PM. |
|
2 Oct 2011, 07:46 PM | #7 |
Master of the @
Join Date: Oct 2001
Location: Boston USA
Posts: 1,065
|
[quote=n5bb;528023]You can use a javascipt tweak to use the Fastmail HTML editor in the Files screen. /QUOTE]
Cool. I didn't know about this. Thanks. Fred |