Mosets Mosets Help Hot Property Reducing the width of WYSIWYG editor in front-end
Can't find what you're looking for? Search the forum.

Reducing the width of WYSIWYG editor in front-end

The WYSIWYG editor used in front-end's Edit Property screen uses a default width of 100% which may cause it to extend beyond the edge on certain template.

To rectify this, you can change reduce the width of the editor:

  1. Open up this file: /administrator/components/com_hotproperty/helpers/html/form.php
  2. Look for this code near line 137:
    	$html .= MosetsHTML::_('form.wysiwyg', $fieldName, $fieldValue);
    
    
  3. Replace it with the following:
    	$html .= MosetsHTML::_('form.wysiwyg', $fieldName, $fieldValue, '70%');
    
    Adjust the value '70%' accordingly to fit your template.
  4. Save the file to your server.

Copyright © 2012 Mosets. All rights reserved.