Hi Guys, Is there an option to define a field with basic simple html editing like ckeditor? Cheers Raymond |
Hi Raymond, Unfortunately no. You can use an htmlRenderer component and show any HTML you want on the screen. The component simply points to a URL the developer supplies. But you need to manage any data manipulation that might happen inside htmlRenderer. Hope this helps. Kind Regards, Yalim |
Hi Raymond, Depending on your usecase, it is possible to use CKEditor in Formspider to edit a TextArea. You will have to work with the external methods to initiate the CKeditor instance on the textarea and get the edited data when you want to save it. I use it in a popup form to edit html text for email messages. I am not a javascript guru, but i got it working for my usecase. In short you would have to:
I got this to work for my usecase wich is editing a single TextArea at a time in a popup, but i guess it can be done in different ways also. Good luck,
Waow!!! :-)
(20 Feb '14, 03:55)
Yalim ♦♦
|
Hi Michiel, Thank you so much for that information. Now I know probably even less javascript then you. Would you be able to share some of the javascript you have used. I am actually after the same functionality as you have shown in the screenshot. Send HTML email to people, for password, campaign letter etc. So yes I would store the html text in a clob as well of course. I am still on a learning curve with formspider. Have come from Oracle Forms and lots of APEX. But in the end choose to go with formspider as I was tired waiting for APEX to get the functionality there. Yes I could have gotten FOEX but at 20,000 euro that was never going to happen. There are still a number of things I would like to see added to Formspider (ckeditor would be one). I would be interested to hear why you decided on Formspider in the end and put Apex to the side. I can send you my email address if you are willing to share some javascript/formspider code. Ik zou elke hulp je kan aanbieden erg op prijs stellen. Het is interessant te zien dat Nederlanders aangetrokken zijn tot Formspider. Nog steeds nederlander, maar aan de andere kant van de wereld, in Australie. Thanks! Hi Raymond, No problem, i will share my js functions and i will provide the PL/SQL procedures that call them as examples as well. As for my raasons to choose Formspider, i wrote a blog about that which Yalim published here: http://theformspider.com/blog/2013/01/17/rhenus-uses-formspider/ Single line summary: Formspider allowes you to create business applications instead of web pages. Using FOEX will not change that.. it still is based on Apex pages. The flexibility you have in Formspider you can only dream of when using Apex :-) I will post my code below, it might be usefull for others as well. Groeten uit Amsterdam, Michiel
(20 Feb '14, 05:16)
Michiel A
|
Here are the javascript functions i use. Put these is a custom.js file and put it in the same directory as the fs-all.js file is in your midtear installation. Add the ckeditor sourcecode directory at the domain root as well (next to the /js dir). Add references to the custom javascript file and the CKeditor js file in your main.jsp, like this:
This is the content of the custom.js file:
You must create Formpider external method definitions that call these js functions: In this last CKEditor_getdata external method is a Post method completed action that is called after it stores the Editor content (check if it needs to close the dialog), but it is not needed. Now we need some procedure to call the external methods:
Final step is to create the panels and put it all together. I will put those instructions in the next post... Best, Michiel |
.. so to put it all together:
In the
In the postShow action you call the In the dialog panel the save button calls the This should be it, but i might have forgotton a detail.. Give it a try and see if you can get it working. If not, let me know ;-) Best regards, Can't thank you enough. Thanks again!
(20 Feb '14, 06:44)
Raymond
i will send you the zipped ckeditor source directory i use. I got your email, so you better obfuscate it a bit in your above answer ;)
(20 Feb '14, 06:48)
Michiel A
|