Jump to content

Heinz

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Heinz

  1. Thanks to all of you for your input although it deviated a bit from my initial question 🙂 Meanwhile I had a look at Tinymce and this gives me what I want and I asked for. I could not get the Tiny integration in PW to work, no toolbar an no menu, but on my own test it works perfect . The code for this is very simple. <script src="../core/js/tiny/tinymce.min.js"></script> <script> tinymce.init({ selector: '#ttt', plugins: [ 'save' ], toolbar: 'save | undo redo | formatselect | ' + 'bold italic backcolor | alignleft aligncenter ' + 'alignright alignjustify | bullist numlist outdent indent | ' + 'removeformat | cancel', save_onsavecallback: function () { console.log('Saved ' + tinymce.activeEditor.getContent()); tinymce.activeEditor.remove(); } }); </script> For now I leave as is. Thanks again.
  2. Thanks @bernhard for the answer but ... The user has to be logged in to the admin part of PW to create a new page as a child of an other page just to enter some info ? If this is so, then this is a no go for me.
  3. I have never before used a CMS or framework. PW is just to get my feet wet. I think I like it. I am used to create databases manualy according to cutomer needs and operate on them using plain PHP and sql. This is my backend driving a frontend and driven by events from a frontend (AJAX,websockets) where the UI/pages are constructed serverside by PHP and dynamicaly altered by Jacascript, no twig, no smarty, no framewroks . All vanilla. Sounds complicated but it is not because over the years you have your own libs, so all is fine. Mind you I wrote my first program in 1975, Fortran IV and my first PHP in 1994 So with regards to the CKE field and PW, how would you build a protocol app where users of one shift have to pass information to next shift being able to edit this info via just one CKE-field and being able to access the history, past entries. I have seen that the content of such a CKE field is always stored in the same data field of a table dedicated to this field. I would store this content as a new entry in my own DB table called info along with the date and time. Or is there a place for this in PW ? Don't get me wrong I don't insist on doing it this way or that way I am just curious, retired and a bit bored 🙂
  4. Hi to Vienna 🙂 Some of the nicest towns I have ever been. To me it seems more in line to save the content of the editor via an icon from the toolbar as well as to cancel and close the editor via icons on the toolbar. You might have more then one CKE-field on a page, so save and cancel buttons on the page do save or cancel for all CKE-fields ? What I want , is to grep the content and transfer it via http-request to my backend not to the PW-table, the content might trigger some action on my backend transfered back to the frontend etc... think of chat, monitoring. I have done that many times in severel web-apps with my own editor-fields but up to now without PW. I am just curious as how this could be done with only PW resources.
  5. I am new to PW ... When adding the 'Save' option to a CKE-Field, the disket symbol, is shown when editing the page like below . The user of this page gets two buttons at the bottom of the page when activating the CKE-field because frontend-editing is enabled. The disket symbol is not shown Questions: How to handle saving of the CKE content on my own, using a javascript event listener attached to the 'Save' symbol ? How can I make the disket symbol for 'Save' in the CKE toolbar, visibile and usable fro the above ? How can I make the buttons at the bottom disappear ?
×
×
  • Create New...