Problem presenting text in php with editor tinymce

2

I have a manager with the tinymce HTML editor, but every time I enter information in the database, when I present the page through PHP the text appears without paragraphs and with some tags in> I do not know why this happens.

As you can see in the image, these tags appear on the page when I call the content view.

    
asked by anonymous 31.03.2015 / 23:44

1 answer

1

Well, however, I managed to fix it, I noticed that I had a problem with the configuration of the editor compared to the fonts I had added, I just solved it with the following code, so I'll leave it for someone to go through the same problem.

<script type="text/javascript">
tinymce.init({
    selector: "textarea.editme",
    theme: "modern",
    plugins: [
        "advlist autolink lists link image charmap print preview hr anchor pagebreak",
        "searchreplace wordcount visualblocks visualchars code fullscreen",
        "insertdatetime media nonbreaking save table contextmenu directionality",
        "emoticons template paste textcolor colorpicker textpattern"
    ],
    toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
    toolbar2: "print preview media | forecolor backcolor emoticons",
    image_advtab: true,
    templates: [
        {title: 'Test template 1', content: 'Test 1'},
        {title: 'Test template 2', content: 'Test 2'}
    ]
});
</script>

This will enable all editor functions // NOTE AND FOR EDITOR VERSION 4

    
01.04.2015 / 00:25