We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39361
    • 2 Posts
    Добрый день,
    подскажите, пожалуйста, как подключить TinyMCE к textarea на странице сайта?
      • 39364
      • 5 Posts
      самый простой способ в конфиг-файле редактора, добавить условие

      что обрабатывать он будет только поля textarea

      mode : "textareas", 


      для примера:

      <script type="text/javascript">
      tinyMCE.init({ language:"ru",
      url : "http://site.ru/jscripts/tiny_mce/tiny_mce.js",
      mode : "textareas",
      theme : "simple",
      plugins : "",
      theme_simple_toolbar_location : "top",
      theme_simple_toolbar_align : "left",
      theme_simple_statusbar_location : "bottom",
      theme_simple_resizing : true,
      content_css : "css/word.css",
      template_replace_values : { username : "Some User", staffid : "991234" },
      force_br_newlines : true,
      relative_urls : false,
      document_base_url : 'http://site.ru/' }); </script>
        • 39361
        • 2 Posts
        Вставил подобный код в head, все заработало ) Спасибо!