Jump to content

ejdamd

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

ejdamd's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. Hello guys, I'm struggling with customization of Tiny MCE toolbar in Processwire administration. I didn't found many topics regarding this on Forum page so there will probably be someone who can easily help me. I am trying to add some standard functionality to TinyMCE. I found this file: mysite/admin/wire/modules/Inputfield/InputfieldTinyMCE/InputfieldTinyMCE.module According to tutorials and manuals about TinyMCE I found this part of code and tried to update it with more functions: protected $defaults = array( 'theme_advanced_buttons1' => 'formatselect,styleselect|,bold,italic,underline|,bullist,numlist,|,link,unlink,|,image,|,code,|,fullscreen', 'theme_advanced_buttons2' => 'strikethrough,justifyleft,justifycenter,justifyright,justifyfull,undo,redo,tablecontrols', 'theme_advanced_blockformats' => 'p,h2,h3,h4,blockquote,pre,code', 'plugins' => 'inlinepopups,safari,table,media,paste,fullscreen,preelementfix', 'valid_elements' => '@[id|class],a[href|target|name],strong/b,em/i,br,img[src|id|class|width|height|alt],ul,ol,li,p[class],h2,h3,h4,blockquote,-p,-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],pre,code', ); I added some functions to variable: theme_advanced_buttons2 Unfortunately it didn't work properly in Tiny MCE as you can see on picture below: Thanks for any help!
  2. He agreed yesterday to turn off safe mode on my FTP. I just installed PW again and it works without problems. Problem before provider turn safe_mode off was that each change of any article or section in PW admin leads to error messages like: "/assets/cache/page/ doesn't exists". Some changes were done though, but system probably couldn't write to assets folder and it was causing problems. I was looking for some solution through this forum and internet and there was tip that PHP script can create and change files even with safe_mode turned on if folder is created by script itself. Not by user over FTP. That's why I made an proposal to let install script create assets folder.
  3. My provider doesn't want to turn safe_mode off, he thinks it's too unsecure. Unfortunately it's a bit complicated as my client doesn't want to change provider. Provider told me if folder is made by PHP script, it will be writable for PHP. I'm just thinking why you don't include creating assets folder into installation process.That should resolve similar problems with safe_mode as I have, shouldn't it?
×
×
  • Create New...