Increase max-height of "Article Body" when creating/editing a Knowledge Base Article

jnovack
Kilo Guru

When creating or editing a new KB article, the "Article Body" will not increase larger than 435px.  You can see from the screenshot, the "+" in the upper right is not available to increase the height of the window further.

 

Since we are not editing articles on a phone, I'd like my technical staff to be treated with respect and permit them to increase the height of the textarea until their heart is content.

 

How do I either (a) remove or, (b) increase the max-height limit for that specific textarea?

5 REPLIES 5

Peter Bodelier
Giga Sage

Hi @jnovack,

Please check this docs article:

Customize TinyMCE attributes (servicenow.com)


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Yes, that's the exact article that does not say how to do the specific thing I wanted.  Unfortunately, I have already rated that article as "Unhelpful".

 

Changing the `editor.height` value does not result in the "Article Body" field being permitted to be larger than it is by default.

In that case I have solution for you 😉

Create an onload Client script on kb_knowledge table.

function onLoad() {

tinymce.on('addeditor', function(event) {
  var selectedElement = tinymce.get('kb_knowledge.text');
    selectedElement.settings.height = 700;
    selectedElement.settings.max_height = 1500;
    selectedElement.settings.min_height = 1000;
}, true);		

}

 

This should result in a larger editor:

PeterBodelier_0-1692191481797.png

 


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Hi! I am coming to this very late in the party but I've been wanting to do this for aaaages. Ideally, I wanted to 'unlock' that field so I can expand as far as I want (like you can with these comments).

 

I tried to use your client script but it just makes the article body field disappear!

Keszia_0-1750280949605.png