Copy paste of image on Custom Rich text box in SharePoint

Hi,
Rich Text Box:
<SharePoint:InputFormTextBox ID="rftmytext" RichText="true" RichTextMode="FullHtml" runat="server"TextMode="MultiLine"Rows="5">
</SharePoint:InputFormTextBox>
When I copy paste Image tag  on rich text box its paste only html code not image.
Image tag:<img alt="" src="http://sitename/Documents/directors-thumb.jpg">
Requirement:
when i copy paste Image tag need to convert design view means need to show Image. Provide some work around.

copy and paste
<img class="tile" id="Image15" src="sitename/Documents/directors-thumb-1.jpg"/>  tag on Rich text Box its showing on rich text box as it is but When i click on text editor backgroundly its converted into 
<div>&lt;img class="tile" id="Image15" src="<a href='sitename/Documents/directors-thumb-1.jpg"/'>sitename/Documents/directors-thumb-1.jpg"/</a>&gt;</div>
Using java script  
function unescapeHTML(html) {
escape.innerHTML = html;
return escape.value;
}Its possible to Remove unescape html but it did get how to practically achieve.referance: http://jsfiddle.net/Daniel_Hug/qPUEX/

Similar Messages

  • Rich text box used in Infopath Form not displaying option to get images from Computer

    Hello,
    We have used "Rich text box" in Infopath Form which is not displaying option to get images from Computer.
    Options available are : From Address, From SharePoint
    But if we Rich text box in list, then it works fine with "From Computer" option.
    can you please help me out to get this option.
    Thanks in advance.
    REgards,
    Jayashri

    Hi,
    From your description, there is no “From Computer” option to get images with rich text box in InfoPath form.
    Per my knowledge, by design there are “From Address” and “From SharePoint” options without “From Computer” option in rich text box in InfoPath form. As a workaround, you can develop a custom InfoPath Rich Text box to do it.
    About developing a custom InfoPath control, I suggest you create a new thread on the forum “Visual Studio Tools for Office”, more experts will assist you with InfoPath development.
    Visual Studio Tools for Office:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=vsto&filter=alltypes&sort=lastpostdesc
    Thanks,
    Dean Wang

  • Copy & paste the images in server side folder

    Hi ,
    I want to copy & paste the images in server side folder .
    Have you any idea than please send me.
    Thanks.
    Have a nice day

    [http://java.sun.com/docs/books/tutorial/essential/io/].

  • How to configure customized rich text editor in a dialog

    I have a customized rich text editor component in my project which i want to use it in a dialog component.
    I tried by changing the xtype value from 'richtext'  to the customized rich text editor path as '/apps/project1/components/shared/text_rte' but i am not able to see the editor.

    See http://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br for your <br> example.  <br/> is XHTML, not necessarily needed in HTML5.

  • How to copy & paste an image into a new Pages document?

    With the latest version of Pages, you cannot copy & paste an image from iPhoto or the web any more.
    Is there an easy alternative?
    Using the toolbar alternative "Media" takes ages.
    Why did Apple remove this great feature of Pages????

    Apple has removed over 90 features from Pages 5.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
    Peter

  • Rich Text Box Issue - Expand to show all Text

    Hi everyone
    I'm having a pretty frustrating issue with the rich text box when viewing a line item (not when editing the item, but viewing the item)
    I want my rich text box to expand with the text, which I have changed in the options on InfoPath with the "Expand to show all text" scrolling option. However, in IE, the table row will expand, but the actual rich text box will not and I'll have
    a scroll bar there and you cant see all of the text at one time. If I look in Chrome, then it works the way I want and I can see all of the lines of text that were entered into the rich text box.
    The only solution for IE to work correctly is to change the Display settings to "Enable enhanced rich text content...". But the big issue with that is now you can no longer highlight the text (the highlight disappears right after highlighting it),
    and the users will need to copy text from the text box, so it renders the "enhanced" rich text box useless for us
    It's kind of a lose-lose situation that I'd love to find the solution for

    I guess a better solution would be how can you highlight text from an enhanced rich text box, because changing these to "rich text box" gets rid of font colors in the pre-existing data.
    The original problem was that they couldn't highlight text unless they went into edit mode

  • Using Rich Text Boxes

    I'm currently using Visual Studio 2008 and .NET4.5 yet I cannot access a Rich text box.  I cannot use a standard text box because I'm importing the data and it loses formatting.  What are my alternatives?

    Hi Bhavik,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues involve Word applicaiton, since the issue is more relative to end-user, I would like to move it to
    Word IT Pro Discussions forum to get more effective response.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • InfoPath 2013 - Rich Text box - Expand to show all text option not working

    I have create an InfoPath form and created a view which will be used for printing. I have a rich text box in this print view and the scroll option for this rich text box is set to "Expand to show all text". However, it is not working and it doesn't
    expand the size of the text box based on the content length.
    same thing used to work in InfoPath 2010.
    Any suggestions?
    Thanks,
    Neelesh

    Hi Wendy,
    Here are the steps I have used:
    1. On default view added a rich text box.
    2. Created another view called Print and mapped it to the same Field which I added to default view
    3. Set the Wrap text and Expand to show all text on both the Rich Text Box Properties - in default view and in Print
    view. Also set the height of the rich text box to auto.
    4. Set the print views as the print view for default view
    5. Deployed the form to SharePoint Form Library
    6. Opened the form in browser
    7. Entered the content in the rich text box in default view. It expands well if I have much content
    8. Clicked on Print preview and that opens up the print preview and it shows the rich text box only one line in height and with scroll bar
    I missed to mention that it is a web browser enabled form and I am using InfoPath 2013 and SP 2013.
    It does work fine in InfoPath client.
    Thanks.

  • Image on top of text box issue

    I'm attempting to create my own message window that will appear when a text box is full.  I have script in the "full" section of the text box that makes the presence of the image and a few text boxes visible when full.  In design view, I have placed the image on top of the text box.  However, during testing, when the text box is full, the image appears but the text from the text box below also appears on top of the image.  I have tried to setFocus to the image as well, but this didn't help.
    What's odd is that if I navigate to a different page and then navigate back, the image appears correctly.
    Any ideas?  Thanks.

    Thank you very much. I didn't even know how to look up the solution.
    Now I understand what those buttons do and their usefulness.

  • Using Hashtag in blog or in a Rich text box

    Out of box SharePoint provide hashtag functionality to Community site "Discussion List", from my understanding the way MS has done it, during page load ScriptForWebTaggingUI.js javascript loaded to the page which add the hastag capability to
    the body field and when user type #[SomeText] into the body textbox then js call taxonomy webservice and resulting hasttag popup window appears. What I am trying to do enable same capability to a "Rich text Box", but I am not finding any way to do
    this. Has anyone done something like this? Or Can someone provide some ideas? Also the thing, I could not figure out when user is typing #[SomeText], what js method is firing. Any help will be really appreciated. Thanks in advanced.

    Hi ,
    For this issue, I'm trying to involve someone familiar with this topic to further look at it.
    Thanks,
    Eric
    Eric Tao
    TechNet Community Support

  • Why can't I copy/paste an image to Yahoo! Mail on Firefox?

    It's quite odd.
    From any other browser I'm able to copy and paste an image straight into the e-mail body of Yahoo! Mail (meaning, not an attachement but actually pasting the image), but not from Firefox. Upon doing some research on-line, many a folk seem to agree that said feature is not supported by Firefox. Is this true? If so, why?
    Thanks!

    Not sure if this is the same thing, but I've noticed a strange bug between Office for Mac 2007 and OS X 10.8, which is that often I have to hit 'command-C' to copy several times repeatedly before anything is actually copied to the clipboard.
    I haven't spent time tracking down what causes that, but give it a try and see if the paste function works after doing that. Basically, when you hit 'command-C' in Word you should see the 'Edit' menu in the menubar flash blue briefly as you do it. If it doesn't, then it's not copied.
    Like I said, I find hitting 'command-C' rapidly a few times in succession normally does the trick.

  • How do I place an image inside of a text box, then lock the image

    I have the text where I want it, in font, style, color and everything. But there is an image that I need too to go infront of the text and i need it in the text box so that both the image (which already has a clear background), matches the textbox which also too has a clear background.

    Copy and paste the image inline.
    Or simply overlay it and group the textbox and image.
    Menu > Arrange > Group
    Menu > Arrange > Lock
    Peter

  • How to set one fixed folder to save rich content of rich text field in sharepoint list

    hi friends
    i have rich test filed in SharePoint list
    if user wants add picture to rich text filed from insert option it is asking to save file in existing document libraries it is showing all libraries. 
    what i need is how can we fix one particular document library to save all this file from rich text filed.

    To my best knowledge, the only basic way to input picture in SharePoint Rich Text Editor (RTE) can be finished in two steps. One, upload it to you computer and then insert it URL to RTE. This works fine if I insert few of them.
    Use SharePoint Rich Text Boost, which can let user insert images and Flash directly.
    http://www.boostsolutions.com/richtextboost.html
    If this helped you resolve your issue, please mark it Answered

  • Working with images – Resizing, Add arrow & text boxes etc

    I am using RH HTML for updating our Web application Help from
    RoboHelp V3 to V6. It involves lot of images. I found the picture
    quality good only using Word in the combination of
    RoboScreenCapture.
    I need to confirm that the method and steps for capturing
    images using Word & RoboScreenCapture will work reliably for
    both WebHelp and Printable output in Word. Please review my
    detailed steps as listed below and give me your suggestions.
    Here are the detailed steps I took for each method:
    Starting with Resize & RoboScreenCapture:
    1. From our Web application I took the screenshot.
    2. I pasted the screenshot in Resize tool and resized it.
    3. Opened the RoboScreenCapture, went back to the Resize tool
    and by using the Screen Capture Hot key - Cntrl+Shift+R, I captured
    the region. The captured screen popped up in the RoboScreenCapture
    tool.
    4. I drew an arrow on the image and the text box and also
    entered the text in the text box. Then I saved the image in the
    RoboScreenCapture.
    5. Opened up the RH Html. Opened up the Web Help project file
    which I am updating and pasted an image in wysiwyg.
    Result
    The image was not very clear looking in wysiwyg.
    In Paint:
    1. From our Web application I took the screenshot.
    2. I pasted the screenshot in Paint, stretch the image form
    100% to 80%. The quality of the image reduced dramatically.
    3. Opened the RoboScreenCapture, went back to the Paint and
    by using the Screen Capture Hot key - Cntrl+Shift+R, I captured the
    region. The captured screen popped up in the RoboScreenCapture
    tool.
    4. I drew an arrow on the image and the text box and entered
    the text in the text box. Then I saved the image in
    RoboScreenCapture.
    5. Opened up RH Html. Opened up the Web Help project file
    which I am updating and pasted an image in wysiwyg.
    Result
    The image was not very clear looking in wysiwyg.
    Finally, with Word:
    1. From our Web application I took the screenshot.
    2. I pasted the screenshot in Word, resized it. While in Word
    I can draw an arrow on the image and the text box and entered the
    text in the text box.
    3. Opened the RoboScreenCapture, went back to the Word and by
    using the Screen Capture Hot key - Cntrl+Shift+R, I captured the
    region. The captured image popped up in the RoboScreenCapture tool.
    Then I saved the image in RoboScreenCapture.
    4. Opened up RH Html. Opened up the Web Help project file
    which I am updating and pasted an image in wysiwyg.
    Result
    Nice & Clear

    There's a topic about this on my site that might interest
    you.
    I recently tried the Microsoft Fax and Image viewer (the
    freebie with XP) and reduced the window size dramatically. With a
    photographic image it was very good. A quick test suggests it might
    be good with text as well.

  • How to use text boxes or rich text boxes inside loops in array format

     Help me,
        I try to use text boxes load automatically showing the character in the text box.One text box showing one character (ex: " A"). I use 5 text boxes.I try to code using   for loop but i don't know how to use array format.
    Please explain any solution.
    I am using Microsoft Visual Basic 2008 Express Edition

    Hi
    And yet again, this version uses a list of textbox names (IN REQUIRED ORDER) to fill.
    ' this is an overly simplified example
    ' in the form of a Project
    ' start a new Project with a default
    ' Form1 with many TextBoxes.A list of
    ' required textboxes to fill IN THE
    ' REQUIRED ORDER is used.
    ' Copy/paste this code to replace
    ' all Form1 code with this.
    ' NOTE: there is plenty of oppertunity
    ' for exceptions as no exception handling is
    ' included here.
    Option Strict On
    Option Explicit On
    Option Infer Off
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim tbNames As New List(Of String)
    ' add names IN THE ORDER required
    tbNames.AddRange({"TextBox2", "TextBox5", "TextBox1", "TextBox3", "TextBox4"})
    Dim s As String = "boxes"
    Dim counter As Integer = 0
    For Each name As String In tbNames
    For Each c As Control In Me.Controls
    If c.GetType() Is GetType(TextBox) Then
    If c.Name = name Then
    c.Text = s(counter)
    counter += 1
    End If
    End If
    Next
    Next
    End Sub
    End Class
    Regards Les, Livingston, Scotland

Maybe you are looking for