Quote from: bugaev at Sep 01, 2005, 10:55 AM
Quote from: xwisdom at Aug 31, 2005, 02:31 PM
Add your rich text to the Summary field when creating your news documents
There is just Plain Text summary window when creating new document in MODx 3.2. So, how can I make it Rich Text in order to place image and text?
Ok the Summary text box is really where you can paste your html code but I now understand that you want rich text input.
The are many ways you can approve this but here’s two that came to mind:
A) You could create TV and then Modify the NewsListing snippet (give it a new name) to use that TV
B) Create plugin to convert the Summary textbox into a RichText editor.
I prefer B since it’s very very easy to do. Here’s how it can be done:
1) Create called RichText News Summary
2) Add the following code inside the code area of the plugin:
global $replace_richtexteditor;
$replace_richtexteditor[] = "introtext";
3) Attach the plugin to the OnDocFormRender event
4) Save the plugin
That’s it you’re done!
Note: The FCKEditor does not auto size the RichText box to match the width and height of the original texbox. This means that the RichText Summary will have a height of 400px by default but you can however and code to the plugin to rectify this problem. Use the $modx->event->output() function to output text to the browser.
Disclaimer: The above provides an easy way to "hack" into the system without touching core code. Future versions of the manager might break this hack.