03-16-2021, 01:10 PM
I found a quite goodlooking JQuery WYSIWYG editor (Trumbowyg) and would like to incorporate it in a custom IW component in my IW application.
I would like to have a custom IW component, where I can simply put the HTML Content in a property and show the form. Then, when a user clicks, after editing, the SAVE-button on the screen, I would like to get the resulting HTML Content from my components Content property.
As for the lack of documentation on creating your own custom IW components, I cannot find out how I should transfer my content from the Delphi component property to the JQuery object and how to get it back. For now I use the RenderHTML of the component to write my Content property in Javascript to the JQuery component (maybe that is the way it should be done ?). But how to get the edited content back in the Content property on a submit?
Any help is welcome... Explanation, examples or hints on where I can find documentation on this subject...
I would like to have a custom IW component, where I can simply put the HTML Content in a property and show the form. Then, when a user clicks, after editing, the SAVE-button on the screen, I would like to get the resulting HTML Content from my components Content property.
As for the lack of documentation on creating your own custom IW components, I cannot find out how I should transfer my content from the Delphi component property to the JQuery object and how to get it back. For now I use the RenderHTML of the component to write my Content property in Javascript to the JQuery component (maybe that is the way it should be done ?). But how to get the edited content back in the Content property on a submit?
Any help is welcome... Explanation, examples or hints on where I can find documentation on this subject...