Remove text "body" from the footer in WYSIWYG editor

0

I'm working with a ckeditor, and everything works fine, but I would like to know, how can you erase the body tag so that it does not appear once you start typing.

I add my code

<div class="col-sm-12">
    <textarea id="ckeditorEmail" name="ckeditor1" rows="5"></textarea>
    <div class="input-group" style="margin-bottom: 10px;margin-top: 10px">
        <div class="custom-file">
            <input type="file" name="archivo" class="custom-file-input" id="inputGroupFile04">
            <label class="custom-file-label" for="inputGroupFile04">Selecciona un archivo</label>
        </div>
    </div>
    <div class="buttons-w">
        <div class="actions-right">
            <button class="btn btn-success"><i class="os-icon os-icon-mail-18"></i><span>Enviar Mensaje</span></button>
        </div>
    </div>
</div>

And my javascript is like this

if ($('#ckeditor1').length) {
  CKEDITOR.replace('ckeditor1');
}

if (typeof CKEDITOR !== 'undefined') {
  CKEDITOR.disableAutoInline = true;
  if ($('#ckeditorEmail').length) {
    CKEDITOR.config.uiColor = '#ffffff';
     CKEDITOR.config.toolbar = [['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']];
    CKEDITOR.config.height = 110;
    CKEDITOR.replace('ckeditor1');
  }
}
    
asked by Karli 21.06.2018 в 00:40
source

1 answer

1

The properties% co_of% & config.removePlugins have to be configured:

config.removePlugins = 'elementspath';
config.resize_enabled = false;

For some reason the snippet does not work on OS, but you can see it working in JSFiddle link

if ($('#ckeditor1').length) {
  CKEDITOR.replace('ckeditor1');
}

if (typeof CKEDITOR !== 'undefined') {
  CKEDITOR.disableAutoInline = true;
  if ($('#ckeditorEmail').length) {
    CKEDITOR.config.uiColor = '#ffffff';
     CKEDITOR.config.toolbar = [['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink']];
    CKEDITOR.config.height = 110;
    
    CKEDITOR.config.removePlugins = 'elementspath';
		CKEDITOR.config.resize_enabled = false;
    CKEDITOR.replace('ckeditor1');
  }
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.2/ckeditor.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.2/adapters/jquery.js"></script>



<div class="col-sm-12">
    <textarea id="ckeditorEmail" name="ckeditor1" rows="5"></textarea>
    <div class="input-group" style="margin-bottom: 10px;margin-top: 10px">
        <div class="custom-file">
            <input type="file" name="archivo" class="custom-file-input" id="inputGroupFile04">
            <label class="custom-file-label" for="inputGroupFile04">Selecciona un archivo</label>
        </div>
    </div>
    <div class="buttons-w">
        <div class="actions-right">
            <button class="btn btn-success"><i class="os-icon os-icon-mail-18"></i><span>Enviar Mensaje</span></button>
        </div>
    </div>
</div>
    
answered by 21.06.2018 в 18:56