Cases module editview description fields

Hello,

The description field in edit view is not visible for cases module but it is visible in detail view. I could see the below error in the console related to tinyMCE.

include/javascript/tiny_mce/plugins/code/editor_plugin.js?v=6WYxxxxMg net::ERR_ABORTED 404 (Not Found)

image

How to fix it? :thinking: :dizzy_face:

include/javascript/tiny_mce/plugins/code/editor_plugin.js
Does this file exist on your system? Probably not.
Which code file is trying to include it?

Hello,

I don’t see such path in the CRM.

CODE

Also, on console it is showing Failed to load the below file, but it is already present.

…/include/javascript/tiny_mce/plugins/code/editor_plugin.js

…/custom/modules/Cases/metadata/editviewdefs.php

I think I found the problem. The module had wysiwyg field and it was throwing an errors. I deleted that field and now we can see description field.

Why in-build textarea field looks like this(those are with editor at the top)?

But, custom textarea fields are without that editor menu:

image

What is the use of β€˜nl2br’ => true ?

array (
          0 => 
          array (
            'name' => 'description',
            'nl2br' => true,
          ),
        ),

Just by the look of it (but I didn’t check) it converts text newlines to html breaks, so \n gets changed to <br/>

1 Like