<![CDATA[ Rich text editor not working in one of the MIGX configurations - My Forums]]> https://forums.modx.com/thread/?thread=103010 <![CDATA[Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554601
Opening a window to enter data for the configuration throws a JS TypeError, see attached. It seems this is somehow related. Once I close the window and reopen all styling gets lost along with some missing data.

I've tried rebuilding the package and configuration, but it still does the same thing.

Any thoughts?

OS: CentOS Linux 7.4.1708 (Core)
Apache web server
PHP 7.0.24
Database server:
Server: Localhost via UNIX socket
Server version: 5.5.56-MariaDB - MariaDB Server
nginx/1.11.10

Modx 2.5.8-pl
packages installed:
ActivationEmail
Breadcrumbs
ClassExtender
Collections
FileLister
FirstChildRedirect
FormIt
Gallery
getReqParam
Login
MIGX
pdoTools
Personalize
Rampart
ReCaptchaV2
Redactor
SimpleSearch
StageCoach

Thanks!]]>
stortzdesignteam Oct 17, 2017, 08:42 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554601
<![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554637 stortzdesignteam Oct 18, 2017, 05:56 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554637 <![CDATA[Re: Rich text editor not working in one of the MIGX configurations (Best Answer)]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554636 Give each config a unique MIGX-id. They are empty in your configs.
This can be the name of the config.

The other configs did work, because there is only one formtab (no tabs).

The unique MIGX-id is used to identify different parts of the grid and the fields and tabs within the modal.]]>
Bruno17 Oct 18, 2017, 05:44 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554636
<![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554634 Bruno17 Oct 18, 2017, 05:12 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554634 <![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554632



Like I've said, I've deleted the configuration and rebuilt it, but the problem still remains. And its only with this configuration, there are 6 other ones that work great.

Let me know if you would like access to the site to review.]]>
stortzdesignteam Oct 18, 2017, 04:19 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554632
<![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554631
does it work fine, when you change that field to "inputTVtype":"textarea"?]]>
Bruno17 Oct 18, 2017, 04:05 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554631
<![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554630 stortzdesignteam Oct 18, 2017, 03:07 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554630 <![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554629 Bruno17 Oct 18, 2017, 03:03 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554629 <![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554627
Here's what the window looks like on a 2nd load without refreshing the browser:



Yes, Redactor is RTE.

Is this what you want to see?

[
  {
    "MIGX_id":5,
    "caption":"Article Info",
    "print_before_tabs":"0",
    "fields":[
      {
        "MIGX_id":20,
        "field":"atitle",
        "caption":"Article Title",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"text",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":1
      },
      {
        "MIGX_id":21,
        "field":"acategory",
        "caption":"Article Category",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"listbox",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"Select One==0||Press Release==Press Release||Insights Article==Insights Article",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":2
      },
      {
        "MIGX_id":22,
        "field":"adate",
        "caption":"Article Date",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"date",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":3
      },
      {
        "MIGX_id":23,
        "field":"acopy",
        "caption":"Article Copy",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"richtext",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":4
      },
      {
        "MIGX_id":39,
        "field":"arelated",
        "caption":"Article Related",
        "description":"",
        "description_is_code":"0",
        "inputTV":"articleRelatedLinks",
        "inputTVtype":"",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":5
      },
      {
        "MIGX_id":24,
        "field":"apdf",
        "caption":"Article PDF",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"file",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"[{\"MIGX_id\":\"1\",\"context\":\"mgr\",\"sourceid\":\"4\"},{\"MIGX_id\":\"2\",\"context\":\"web\",\"sourceid\":\"4\"}]",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":6
      },
      {
        "MIGX_id":35,
        "field":"aimg",
        "caption":"Article Image",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"image",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"[{\"MIGX_id\":\"1\",\"context\":\"web\",\"sourceid\":\"5\"},{\"MIGX_id\":\"2\",\"context\":\"mgr\",\"sourceid\":\"5\"}]",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":7
      },
      {
        "MIGX_id":36,
        "field":"atopic",
        "caption":"Insight Topic",
        "description":"Only for Insights Articles. Leave blank on Press Releases.",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"checkbox",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"Distribution==Distribution||Liquid Alts==Liquid Alts||Middle Office==Middle Office||Regulatory==Regulatory||Series Trust==Series Trust||40Act==40Act",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":8
      }
    ],
    "pos":1
  },
  {
    "MIGX_id":6,
    "caption":"Meta Data",
    "print_before_tabs":"0",
    "fields":[
      {
        "MIGX_id":25,
        "field":"ametadesc",
        "caption":"Meta Description",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"textarea",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":1
      },
      {
        "MIGX_id":26,
        "field":"ametakey",
        "caption":"Meta Keywords",
        "description":"",
        "description_is_code":"0",
        "inputTV":"",
        "inputTVtype":"textarea",
        "validation":"",
        "configs":"",
        "restrictive_condition":"",
        "display":"",
        "sourceFrom":"config",
        "sources":"",
        "inputOptionValues":"",
        "default":"",
        "useDefaultIfEmpty":"0",
        "pos":2
      }
    ],
    "pos":2
  }
]


Here's the mysql map:

<?php
$xpdo_meta_map['ufsNews']= array (
  'package' => 'ufsnews',
  'version' => '1.1',
  'table' => 'migx_news',
  'extends' => 'xPDOSimpleObject',
  'fields' => 
  array (
    'atitle' => '',
    'adate' => '',
    'acategory' => '',
    'acopy' => '',
    'apdf' => '',
    'aimg' => '',
    'ametadesc' => '',
    'ametakey' => '',
    'atopic' => '',
    'createdon' => NULL,
    'createdby' => 0,
    'editedon' => NULL,
    'editedby' => 0,
    'deleted' => 0,
    'deletedon' => NULL,
    'deletedby' => 0,
    'published' => 0,
    'publishedon' => NULL,
    'publishedby' => 0,
  ),
  'fieldMeta' => 
  array (
    'atitle' => 
    array (
      'dbtype' => 'varchar',
      'precision' => '255',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'adate' => 
    array (
      'dbtype' => 'varchar',
      'precision' => '255',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'acategory' => 
    array (
      'dbtype' => 'varchar',
      'precision' => '255',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'acopy' => 
    array (
      'dbtype' => 'text',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'apdf' => 
    array (
      'dbtype' => 'text',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'aimg' => 
    array (
      'dbtype' => 'text',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'ametadesc' => 
    array (
      'dbtype' => 'text',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'ametakey' => 
    array (
      'dbtype' => 'text',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'atopic' => 
    array (
      'dbtype' => 'text',
      'phptype' => 'string',
      'null' => false,
      'default' => '',
    ),
    'createdon' => 
    array (
      'dbtype' => 'datetime',
      'phptype' => 'datetime',
      'null' => true,
    ),
    'createdby' => 
    array (
      'dbtype' => 'int',
      'precision' => '10',
      'attributes' => 'unsigned',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
    ),
    'editedon' => 
    array (
      'dbtype' => 'datetime',
      'phptype' => 'datetime',
      'null' => true,
    ),
    'editedby' => 
    array (
      'dbtype' => 'int',
      'precision' => '10',
      'attributes' => 'unsigned',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
    ),
    'deleted' => 
    array (
      'dbtype' => 'tinyint',
      'precision' => '1',
      'attributes' => 'unsigned',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
    ),
    'deletedon' => 
    array (
      'dbtype' => 'datetime',
      'phptype' => 'datetime',
      'null' => false,
    ),
    'deletedby' => 
    array (
      'dbtype' => 'int',
      'precision' => '10',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
    ),
    'published' => 
    array (
      'dbtype' => 'tinyint',
      'precision' => '1',
      'attributes' => 'unsigned',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
    ),
    'publishedon' => 
    array (
      'dbtype' => 'datetime',
      'phptype' => 'datetime',
      'null' => false,
    ),
    'publishedby' => 
    array (
      'dbtype' => 'int',
      'precision' => '10',
      'phptype' => 'integer',
      'null' => false,
      'default' => 0,
    ),
  ),
  'aggregates' => 
  array (
    'CreatedBy' => 
    array (
      'class' => 'modUser',
      'local' => 'createdby',
      'foreign' => 'id',
      'cardinality' => 'one',
      'owner' => 'foreign',
    ),
    'EditedBy' => 
    array (
      'class' => 'modUser',
      'local' => 'editedby',
      'foreign' => 'id',
      'cardinality' => 'one',
      'owner' => 'foreign',
    ),
  ),
);
]]>
stortzdesignteam Oct 18, 2017, 02:25 PM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554627
<![CDATA[Re: Rich text editor not working in one of the MIGX configurations]]> https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554614
could you show me your MIGX - configs?
Redactor is your RTE?]]>
Bruno17 Oct 18, 2017, 09:59 AM https://forums.modx.com/thread/103010/rich-text-editor-not-working-in-one-of-the-migx-configurations#dis-post-554614