pro_imaj Posted January 13, 2018 Share Posted January 13, 2018 Merhaba; UniHtmlMemo nesnesine resim nasıl ekleyebilirim. Teşekkürler. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 13, 2018 Share Posted January 13, 2018 Hi, This post can help you: http://forums.unigui.com/index.php?/topic/5856-ckeditorelfinder-in-unigui-possible/ Best regards, Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted January 14, 2018 Author Share Posted January 14, 2018 Thank you very much @DelphiDeveloper. There's only one thing I need to solve. How to add images added to the original dimensions? image upload width ? height ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 14, 2018 Share Posted January 14, 2018 Hi, Try this, without width and height: 4. UniFileUpload1 -> OnCompleted: procedure TMainForm.UniFileUpload1Completed(Sender: TObject; AStream: TFileStream); var DestName : string; DestFolder : string; begin DestFolder:=UniServerModule.StartPath+'UploadFolder\'; DestName:=DestFolder+ExtractFileName(UniFileUpload1.FileName); CopyFile(PChar(AStream.FileName), PChar(DestName), False); //UniSession.AddJS(UniHTMLMemo1.JSName + '.execCmd(''InsertHTML'', ''<img width="138" height="87" src="'+ 'UploadFolder/' + UniFileUpload1.FileName +'"></img>'')'); UniSession.AddJS(UniHTMLMemo1.JSName + '.execCmd(''InsertHTML'', ''<img src="'+ 'UploadFolder/' + UniFileUpload1.FileName +'"></img>'')'); end; Best regards, Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted January 14, 2018 Author Share Posted January 14, 2018 Thank you very much. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted February 6, 2018 Author Share Posted February 6, 2018 It's the name I added before, but when I add a different picture, it always gets the old picture. I unzipped the Debug \ UploadFolder folder and delete on and I copy these files one more time, but where? C:\fakepath\2.png ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 6, 2018 Share Posted February 6, 2018 Hi, Sorry, can you clarify your question, issue ?! Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted February 8, 2018 Author Share Posted February 8, 2018 I told him about the video. Link here Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 9, 2018 Share Posted February 9, 2018 Ok, I will try to analyze it Best regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 9, 2018 Share Posted February 9, 2018 Hi, I told him about the video. Link here Thanks I did not fully analyze your issue, but I guess that this post can help you: http://forums.unigui.com/index.php?/topic/5856-ckeditorelfinder-in-unigui-possible/page-2&do=findComment&comment=30321 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.