Mejoras en las funciones del editor summernot, mas opciones para el editor html

This commit is contained in:
Hacky Purple 2018-04-24 12:19:42 -05:00
parent 430367f6e4
commit 4e09bf4ef2

View File

@ -1432,7 +1432,7 @@ echo $css_adicional;
$ultimos $ultimos
</aside> </aside>
</div> </div>
<div class='col-md-push-1 col-md-9' id='texto_articulo'>" <div class='col-md-9' id='texto_articulo'>"
; ;
}else{ echo "<div class='col-sm-12 col-md-push-1 col-md-10' id='texto_articulo'>" ;} ?> }else{ echo "<div class='col-sm-12 col-md-push-1 col-md-10' id='texto_articulo'>" ;} ?>
<?php echo $eventos; <?php echo $eventos;
@ -1536,7 +1536,18 @@ $(document).delegate('*[data-toggle="lightbox"]', 'click', function(event) {
//// wysiwyg //// wysiwyg
var edit = function() { var edit = function() {
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true}); $('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
[
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript', 'fontname']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph', 'style']],
['height', ['height']],
['insert', ['picture', 'link', 'video', 'table', 'hr']],
['misc', ['fullscreen', 'codeview', 'undo', 'redo']]
]
});
}; };
var save = function() { var save = function() {