Hi,
Does anyone have an idea how I might get a richeditor inside a pop-up? My goal is to be able to select records from a list, and then have a button on the top of the list that opens a modal pop-up with a richeditor…
This is my pop-up:
<div class="control-popup modal fade" id="customEmail" tabindex="-1" role="dialog">
<div class="modal-dialog">
<form class="form-elements" role="form">
<div class="modal-content">
<div class="modal-header flex-row-reverse">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">
Send an email
</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label class="form-label">Your message</label><br />
<input type="text" name="mailbody" value="" class="form-control"/>
</div>
</div>
<div class="modal-footer">
<button type="button"
class="btn btn-default"
data-dismiss="modal">
Cancel
</button>
<button type="button" class="btn btn-primary"
data-attach-loading
data-request="onSendCustomEmail"
data-request-data="id: <?= e($this->id) ?>"
data-request-success="$('#customEmail').modal('hide');">
Send it
</button>
</div>
</div>
</form>
</div>
</div>
It’s no issue to have a simple input field or a textarea, but a richeditor is a bit unclear to me.
Can anyone please set me on the right path please?