Created
March 31, 2013 09:06
-
-
Save fbennett/5280056 to your computer and use it in GitHub Desktop.
Patch for bibliography editing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/chrome/content/zotero/tinymce/integration.html b/chrome/content/zotero/tinymce/integration.html | |
| index f6fc2d2..0be5c34 100755 | |
| --- a/chrome/content/zotero/tinymce/integration.html | |
| +++ b/chrome/content/zotero/tinymce/integration.html | |
| @@ -1,6 +1,7 @@ | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <style> | |
| html, body { | |
| height: 100%; | |
| @@ -38,7 +39,22 @@ html, body { | |
| theme_advanced_buttons3 : "", | |
| theme_advanced_toolbar_location : "top", | |
| theme_advanced_toolbar_align : "left", | |
| - theme_advanced_resizing : true | |
| + theme_advanced_resizing : true, | |
| + | |
| + setup : function (ed) { | |
| + // Set text direction | |
| + var dir = window.location.href.match(/dir=(ltr|rtl)/)[1]; | |
| + ed.settings.directionality = dir; | |
| + // Include button for opposite direction, to function as a toggle | |
| + ed.settings.theme_advanced_buttons1 = ed.settings.theme_advanced_buttons1.replace( | |
| + "%DIR%", | |
| + "," + dir.split("").reverse().join("") | |
| + ); | |
| + | |
| + ed.onInit.add(function (ed) { | |
| + zoteroInit(ed); | |
| + }); | |
| + } | |
| }); | |
| tinyMCE.execCommand("mceAddControl", true, "tinymce"); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment