1
0
Fork 0

correccion editor html en Edicion

This commit is contained in:
humano 2018-06-22 09:05:34 -05:00
parent 58805949ed
commit 769321a266
1 changed files with 30 additions and 0 deletions

View File

@ -353,6 +353,36 @@ if ($variable !=''){
<script src='./librerias/summernote/summernote.js'></script>
<link href='./librerias/summernote/summernote.css' rel='stylesheet'>
";
$librerias_pie ="
<script type='text/javascript'>
//// wysiwyg
var edit = function() {
$('.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 makrup = $('.wysiwyg').summernote('code');
$('.wysiwyg').summernote('destroy');
};
$(document).ready(function() {
$('.wysiwyg_auto').summernote({dialogsInBody: true});
});
</script>
";
$form = remplacetas('form_datos','control',$identificador,'form_id',"") ;
$empresa = remplacetas('form_id','id',$form['0'],'id_empresa',"") ;
$id_empresa = $empresa[0];