Hi all,

With the recent addition of support for external editing of richedit
fields, it became necessary to have a more flexible system for naming the
temp files involved in external editing.  I just pushed a patch which
gives these temp files an extension based on the mime type of the content
being edited.

The breaking changes affect anyone who has customized
edit_field_in_external_editor_extension or
get_filename_for_current_textfield in their rc.

 * variable edit_field_in_external_editor_extension has been removed, and
   superseded by a mime-type table external_editor_extension_overrides
   which maps mime types to extensions.  If you previously used this
   variable to set the temp file extension to "foo", for example, you
   would update your rc to do the following instead:

     external_editor_extension_overrides.set("text/plain", "foo");

 * function get_filename_for_current_textfield has been superseded by
   external_editor_make_base_filename, which takes as its arguments the
   root element being edited and the top document of the buffer containing
   the element.  The top document is more useful than the element's own
   ownerDocument in some cases, such as when about:blank is used for the
   document of an editable iframe.  The new function returns only the base
   filename, with no extension, as the extension is generated by means
   described above.

Thanks all.

-- 
John Foerch
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to