Search the Community
Showing results for tags 'htmlmemo'.
-
It is easy to paste images into the HtmlMemo however once inserted there is no way to resize the image, please advise how to apply stretch handles on image when selected with the editor so user can resize - Thanks
- 10 replies
-
- htmlmemo
- image jpg/png
-
(and 1 more)
Tagged with:
-
Image Insert (Ctrl+v) Produces <img src="data:image/png;base64,... I Need To Catch The Image Insert And Add An id Tag To The Image Tag <img id="img2" src="data:image/png;base64,... I Need This For Inventory Purposes (later passing and extracting), I need Each Image Tag <img To Have An id Tag. The Only Event Fired Is "change" and all it does is give you the whole HtmlMemo contents, it does not distinguish one Image From Another Image. if EventName = 'change' then begin s:= Params.Values['sender']; // blank s:= Params.Values['newValue']; // new html memo source (cannot tell which is new image) s:= Params.Values['oldValue']; // old html memo source s:= Params.Values['eOpts']; // blank end; Farshad, please add this feature - thanks.
-
I am trying to get this Print Code to work inside a UniGui HtmlMemo - can anyone please advise why this basic code does not work with UniGui ? HtmlMemo.Lines.Clear; ///////////////////////////////////////////////////////////////////////////////// s:= ' <script> '+ ' function printPage(id) '+ ' { '+ ' var html="<html>"; '+ ' html+= document.getElementById(id).innerHTML; '+ ' html+="</html>"; '+ ' var printWin = window.open('', '', ''left=0, top=0, width=1, height=1, toolbar=0, scrollbars=0, status=0''); '+ ' printWin.document.write(html); '+ ' printWin.document.close(); '+ ' printWin.focus(); '+ ' printWin.print(); '+ ' printWin.close(); '+ ' } '+ ' </script> '+ ' <div id="block"> '; HtmlMemo.Lines.Add(s); ///////////////////////////////////////////////////////////////////////////////// add additional html code here ///////////////////////////////////////////////////////////////////////////////// s:= ' </div> '+ ' <br> '+ ' <input type="button" value="Print" onclick="printPage(''block'');"></input> '; HtmlMemo.Lines.Add(s);
-
Please show me how I can identify the InLine image that was selected when it was Double Clicked - Thanks. procedure TfMain.HtmlMemoDblClick(Sender: TObject); begin // Get Selected Object From Sender ? end;
-
Please show me how to insert into HtmlMemo at runtime an InLine Image (data attached). My inline data attached works on any browser HOWEVER causes error in UniGUI, please advise - Thanks. UniSession.AddJS(HtmlMemo.JSName + '.insertAtCursor('+ Chr(39)+inlinedata+Chr(39) +')'); // FAILS UniSession.AddJS(HtmlMemo.JSName + '.insertAtCursor('+ Chr(39)+'<b>HELLO</b>'+Chr(39) +')'); // WORKS html-test.html
-
How can I get the Plain Text from the HtmlMemo ? MyLines(TStringList) in code at runtime. MyLines.SetStrings(HtmlMemo.Lines); // I want plain text CRLF for each line
-
Please advise how to add (or insert) button on HtmlMemo ToolBar - Thanks. UniSession.AddJS('fMain.HTMLMemo.toolbar.insert(2, '+ '{ '+ 'xtype: "spacer"'+ '} );'); UniSession.AddJS('fMain.HTMLMemo.toolbar.insert(3, '+ '{ '+ 'xtype: "button", '+ 'text: '+QuotedStr('Today')+', '+ 'id: "syncTodayID", '+ 'listeners: {tap: function(el, v) {ajaxRequest(fMain.form, "_syncToday", [])}}'+ '} );'); Does nothing ?