Jump to content

jonas@pcsupport.nu

uniGUI Subscriber
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

541 profile views

jonas@pcsupport.nu's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. I have corrected the zip file and added a video that shows what happens.
  2. I'm trying to add TinyMCE as a editor in my project. If I place a TUniHTMLFrame on the mainform the TinyMCE is shown correctly if the property MainFormDisplayMode=mfPage in ServerModule, but if I add a second from to the project and place a TUniHTMLFrame on it I can't get the dropdown menus for TinyMCE to show correctly (they are shown behind the form). Also if you close the second form and then show it again, then all of the controls for TinyMCE are gone. I have attached a small demo a small video that shows what happens. TinyMceTest.zip TinyMceTest.mp4
  3. I have a project where I need to build some html att runtime. A part of the contents I'm trying to show is a Facebook timeline plugin. The html code for the plugin is creaed at https://developers.facebook.com/docs/plugins/page-plugin. If I set the html code at design time the contents is shown correctly, but if I set i dynamically at runtime the contents isn't show correctly - there is just an empty space with the url to the facebookpage, see the attached screen dump. The html code: <div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/sv_SE/sdk.js#xfbml=1&version=v3.1&appId=1802520233141884&autoLogAppEvents=1'; fjs.parentNode.insertBefore(js, fjs); } (document, 'script', 'facebook-jssdk')); </script> <div class="fb-page" data-href="https://www.facebook.com/sbkattila"data-tabs="timeline" data-width="300" data-height="500" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="false"> <blockquote cite="https://www.facebook.com/sbkattila"class="fb-xfbml-parse-ignore"> <a href="https://www.facebook.com/sbkattila">SBKAttila</a> </blockquote> </div> The program code: procedure TMainForm.UniButton1Click(Sender: TObject); var MemStream: TMemoryStream; begin MemStream:= TMemoryStream.Create; HTMLFrame1.HTML.SaveToStream(MemStream); MemStream.Position:=0; HTMLFrame2.Html.LoadFromStream(MemStream); MemStream.Free; end; I have tried to use Repaint, Refresh, ReAilgn, Update methods for the UniHTMLFrame. I have also tried to put the script spart of the html code in UniHTMLFrame.BeforeScript. I have tried to use bothe Google Chrome an d Internet Explorer with the same result. I'm using Delphi 10.2 Enterprise Update 3 and UniGui 1.10.0.1471 (full license). I have attached a sample project(project1.zip) that shows the problem. Project1.zip
×
×
  • Create New...