0 Members and 1 Guest are viewing this topic.

*

staan

  • *
  • 34
  • Stan, 29 Yo - France
  • osDate Version: osDateEvo v1.3
TinyMCE Editor for About Me and Private Message
« on: March 12, 2019, 11:52:25 AM »
Hello,

Inside the "blog part", texteare were replaced by "TinyMCE".

It will be a good thing for having a TinyMCE in Private Message section and for About Me section .

For TinyMCE, just add to the top of file (.TPL)

{literal}
<script type="text/javascript" src="{$DOC_ROOT}javascript/tiny_mce/tinymce.js"></script>

<script type="text/javascript">
   // Default skin
tinymce.init({
  selector: '#description',
  height: 200,
  menubar: false,
  toolbar_items_size: 'small',
  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 imagetools codesample toc'
    ],
   toolbar: 'undo redo | forecolor backcolor | bold italic | fontsizeselect | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent',
    image_advtab: true,
  imagetools_cors_hosts: ['www.tinymce.com', 'codepen.io'],
  content_css: [
    '//fast.fonts.net/cssapi/e6dc9b99-64fe-4292-ad98-6974f93cd2a2.css',
    '//www.tinymce.com/css/codepen.min.css'
  ]
});
</script>
{/literal}

where DESCRIPTION is the textarea ID




*

Pharg

  • *****
  • 3,240
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: TinyMCE Editor for About Me and Private Message
« Reply #1 on: March 12, 2019, 06:48:54 PM »
Hello staan,

Yes it would look better but it's not needed.
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35