Default editor settings in Confluence
Asked by rogerpenn:

I really hope this is not one of those things that's been answered a thousand times before but search is not finding anything.

I am creating many, many documents in Confluence that have similar formatting requirements and there are certain things that would really help to be able to change default behaviors for.

For example, and probably the most needed, I do documents with large numbers of screen shots. Even though each one is the same width, when I paste it into Confluence, it will get resized differently based on its overall ratio (the heights aren't all the same). So for every single paste I have to manually click and enter the image size. If I could change the behavior so that all images defaulted to (1024px in my case) that would be very helpful.

Also, I frequently need to enter text in brackets \[like this\] but Confluence interprets the brackets as macro behaviors. Every time I have to resort to silly things like typing two of them around \[\[something\]\] and then deleting the outer ones. A few hundred of those and it really gets old.

Another thing that is incredibly annoying is the image border. If you click to add a border, and then decide you don't want the border...too bad. There is no way to remove it. Even removing and repasting the image doesn't work because it apparently stores the formatting by image name or something, so you either have to change the image name, or publish and go back into the editor which then has everything reset. The Border button really should be a toggle.

I have used so many different browser-based WYSIWYG editors I can't count, and I must say that for the intended purpose, this one is very good and creates nice clean professional documents. But I could literally save hours not having to repeat these same actions over and over again.

If there is a way to set some of these that's staring me in the face and I'm not seeing it, please slap me with a rubber chicken, but otherwise, is there any way some of these things could be addressed in future?


Answers:
author: Denis Wilson
body: If you have access to Space Tools at the bottom left and then click on Look and Feel, there is a Stylesheet.

enter the following CSS:

.image-size-input{  
width: 1024px;  
}

The width is what you can type when clicking on an image.

Here is a Work In Progress stylesheet I've been working on

.tableofcontents {  
color:black;  
font-family: Calibri, sans-serif;  
font-size: 15px;  
letter-spacing: 0px;  
word-spacing: 0px;  
color: #000000;  
font-weight: 400;  
text-decoration: none;  
font-style: normal;  
font-variant: normal;  
text-transform: uppercase;  
line-height: 26px;  
}

<br />

.wiki-content h1 {  
color:black;  
font-family: Calibri, sans-serif;  
font-size: 15px;  
letter-spacing: 0px;  
word-spacing: 0px;  
color: #000000;  
font-weight: 700;  
font-style: normal;  
font-variant: normal;  
text-transform: uppercase;  
line-height: 25px;  
margin: 15px 0 0 0;  
}

.wiki-content h2 {  
color:black;  
font-family: Calibri, sans-serif;  
font-size: 15px;  
letter-spacing: 0px;  
word-spacing: 0px;  
color: #000000;  
font-weight: 700;  
text-decoration: none;  
font-style: normal;  
font-variant: normal;  
text-transform: uppercase;  
display: block;  
line-height: 25px;  
margin: 15px 0 0 0;  
}

.wiki-content h3 {  
color:black;  
font-family: Calibri, sans-serif;  
font-size: 14px;  
letter-spacing: 0px;  
word-spacing: 0px;  
color: #000000;  
font-weight: 700;  
text-decoration: none;  
font-style: normal;  
font-variant: normal;  
text-transform: uppercase;  
margin-left: 30px;  
display: block;  
line-height: 25px;  
margin: 15px 0 0 0;  
}

.wiki-content p {  
color:black;  
font-family: Calibri, sans-serif;  
font-size: 14px;  
letter-spacing: 0px;  
word-spacing: 0px;  
color: #000000;  
font-weight: 400;  
text-decoration: none;  
font-style: normal;  
font-variant: normal;  
text-transform: none;  
margin-top: 0px;  
margin-bottom: 0px;  
margin-left: 30px;  
}

.image-size-input{  
width: 628px;  
}


author: AnnWorley
body: Hi Roger,

I understand some of the editor functions are slowing you down while working in Confluence. Thanks for your detailed description and kind words about what the editor does well.

**Image resizing**

This suggestion is gathering interest, [Option to automatically resize image uploaded to pages](https://jira.atlassian.com/browse/CONFSERVER-38770), while this one, which seems to match your use case better, is closed as "won't fix": [uploading multiple photos, allow for medium pre-sizing](https://jira.atlassian.com/browse/CONFSERVER-29462).

I researched this for a while, looked for add-ons that will let you pre-size images. I also experimented with re-sizing images in a page template. I have not found a satisfactory workaround so the suggestion that is "gathering interest" is our best bet.

**Text in brackets**

This Community post may help: [how do I put a square bracket on a page](https://community.atlassian.com/t5/Confluence-questions/how-do-I-put-a-square-bracket-on-a-page/qaq-p/216543). Some folks shared keyboard shortcuts that they use.

**Image border toggle**

I am not sure what version of Confluence you are using but I tested in Confluence 6.7 and Confluence Cloud. In both of those versions I was able to toggle the border using the button shown in this screen shot:

![Screen Shot 2018-02-23 at 12.29.16 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/15717i8C1F5B09F2320A56/image-dimensions/305x212?v=v2 "Screen Shot 2018-02-23 at 12.29.16 PM.png")

I hope my input is helpful.

Thanks,

Ann

comments: author: rogerpenn
body: Thanks very much for the help! I don't know if it's related to the Confluence version or the browser or both, but if the Image Border does toggle and it's just me, then that's OK. I'll have to figure out what's wrong on my end.

The bracket and ! image problem occurs because even though I have the auto-complete disabled in my settings, it does not respect that setting and still does it anyway. I have even completely logged out of all Atlassian everything, closed the browser, deleted all sessions, restarted, and it still ignores that setting and auto-converts anything inside brackets to a link.

Neither of those image sizing issues really matches my case. Currently the application defaults to medium sized for any image uploaded. I would just like to be able to change the default to one of the other options: small, large, original, or more specifically, custom width. That default would then be applied to all future image insertions, but of course could be changed individually just as it can now.

It sounds like there is no immediate solution or anything I'm just missing, so I'll soldier on, but hopefully maybe some of these things will get implemented/fixed down the road.

Thanks again for your research and kind reply.


author: AnnWorley
body: I opened a new suggestion ticket based on your image sizing requirements: [As a user I would like to pre-set image sizes](https://jira.atlassian.com/browse/CONFSERVER-55047) That will make it more likely to be implemented down the road.

That issue with the brackets can be annoying. I don't think Confluence's editor shortcuts depend on the browser's autocomplete setting, based on the definition of the setting I found: [Autocomplete](https://www.computerhope.com/jargon/a/autocomp.htm)
> A feature found in browsers and programs that finishes what is being typed by comparing the current text with what has been previously entered. For example, when a user types the letter "c" in the Computer Hope search bar, Autocomplete displays matches based on previous searches.


author: rogerpenn
body: Thanks for the suggestion ticket. That's perfect. The Confluence editor's shortcuts don't depend on the browser's autocomplete setting, but they should depend on the Confluence autocomplete settings a <https://syntegritynet.atlassian.net/wiki/users/viewmyeditorsettings.action>

![Screen Shot 2018-02-24 at 5.50.25 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/15753i1A92CFA974B04414/image-dimensions/557x93?v=v2 "Screen Shot 2018-02-24 at 5.50.25 PM.png")This is not being respected.


author: AnnWorley
body: I tested on my Cloud instance and found the same behavior. Thanks for bringing these shortcomings to our attention. I created a bug report, as this can't be working as expected. [Editor settings under user profile are not respected](https://jira.atlassian.com/browse/CONFCLOUD-59147)


author: rogerpenn
body: Awesome. Thank you very much!