We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40088
    • 708 Posts
    @sottwell Thank you!

    @BobRay If possible could you update NP to use Susan's solution so it doesn't get overwritten when updated? The default text field for 'Description' really is quite awkward when trying to write a 255 character description. I’m sure others would agree.
      Todd
      • 3749
      • 24,544 Posts
      I've added this at line 914 of the NewsPublisher class file. No need for any CSS changes:

       
      case 'description':
          $rows = !empty($this->props['descriptionrows'])
              ? $this->props['descriptionrows']
              : '5';
          $cols = !empty($this->props['descriptioncols'])
              ? $this->props['descriptioncols']
              : '51';
          $inner .= $this->_displayTextarea($field,
              $this->props['rtdescription'],
              'np-description', $rows, $cols);
          break;


      Remember that you can type more text than will fit in the box, but the extra text will be truncated. I don't think there's a reliable way to prevent that without JavaScript.

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting