This object is in archive! 

Removal HTML Editor

Archived Matt 11 years ago

Is there any way to remove the HTML/formatted editor - or even remove some of the funtionality.


We'd prefer all posts to look the same without any real formatting capabilities.

Best Answer
photo

The most simple way to remove default editor is:


1. Open file /application/templates/forms/elements/content.phtml

2. Find and remove line:

  1. <?php $this->headScript()->appendFile($this->javascriptSrc('textareaResizer.js', null, false))?>

3. Then find line:

  1. <div ="textareaResizer(event);" id="<?php echo $this->element->getId()?>_resizer" class="resizer"> </div>

4. Remove this part of line onmousedown="textareaResizer(event);"

5. Save file, clean the cache.


Note that after system upgrade you will loose those changes. Therefore we suggest to override template by copying it to your custom theme folder according with directory paths.

Please also refer to Theme Customization article in order to not loose customization after system upgrade.

Replies (1)

photo
1

The most simple way to remove default editor is:


1. Open file /application/templates/forms/elements/content.phtml

2. Find and remove line:

  1. <?php $this->headScript()->appendFile($this->javascriptSrc('textareaResizer.js', null, false))?>

3. Then find line:

  1. <div ="textareaResizer(event);" id="<?php echo $this->element->getId()?>_resizer" class="resizer"> </div>

4. Remove this part of line onmousedown="textareaResizer(event);"

5. Save file, clean the cache.


Note that after system upgrade you will loose those changes. Therefore we suggest to override template by copying it to your custom theme folder according with directory paths.

Please also refer to Theme Customization article in order to not loose customization after system upgrade.

Replies have been locked on this page!