{"id":141,"date":"2012-03-12T17:48:58","date_gmt":"2012-03-12T12:48:58","guid":{"rendered":"http:\/\/learnsf.wordpress.com\/?p=141"},"modified":"2012-03-12T17:48:58","modified_gmt":"2012-03-12T12:48:58","slug":"how-to-resize-the-apex-editor","status":"publish","type":"post","link":"https:\/\/blog.felineflock.com\/index.php\/2012\/03\/12\/how-to-resize-the-apex-editor\/","title":{"rendered":"How to resize the Apex\/VisualForce Editor in the Salesforce UI"},"content":{"rendered":"<p>When using the Salesforce UI to edit apex\/visualforce pages in a larger monitor, usually there is a lot of unused space on the screen.<\/p>\n<p><a href=\"http:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuispace.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-142 alignnone\" title=\"Salesforce UI default editor\" src=\"http:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuispace.jpg\" alt=\"Salesforce UI default editor\" width=\"500\" height=\"375\" srcset=\"https:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuispace.jpg 500w, https:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuispace-300x225.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>So if you like to use the Salesforce UI instead of Eclipse and have a big monitor, here is a little javascript URL to resize the editing box.<\/p>\n<p>I have created a bookmark with it and use it everytime I need to edit something:<\/p>\n<p><strong>javascript:document.getElementById(&#8220;frame_ApexClassEditPage:theTemplate:theForm:thePageBlock:editor:codeeditor:buffer&#8221;).style.height=prompt(&#8220;What size in pixels?&#8221;,&#8221;750&#8243;)+&#8221;px&#8221;;return false;<\/strong><\/p>\n<p>It will ask how many pixels the height&nbsp;should be. 750 is usually a good size for a maximized window in a&nbsp;20&#8243; monitor.<\/p>\n<p><a href=\"http:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuiresized.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-143\" title=\"Salesforce UI editor resized\" src=\"http:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuiresized.jpg\" alt=\"Salesforce UI editor resized\" width=\"500\" height=\"374\" srcset=\"https:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuiresized.jpg 500w, https:\/\/blog.felineflock.com\/wp-content\/uploads\/2012\/03\/sfuiresized-300x224.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using the Salesforce UI to edit apex\/visualforce pages in a larger monitor, usually there is a lot of unused space on the screen. So if you like to use the Salesforce UI instead of Eclipse and have a big monitor, here is a little javascript URL to resize the editing box. I have created [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-editor"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.felineflock.com\/index.php\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}