pro_imaj Posted January 13, 2018 Share Posted January 13, 2018 Merhaba; UniHtmlMemo nesnesine resim nasıl ekleyebilirim. Teşekkürler. 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, 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 ? 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, 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. 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 ? 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 ?! 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 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, 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now