The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Copy-paste HTML codes

    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    Solved Copy-paste HTML codes

    Post by angel_of_night July 31st 2012, 11:42 pm

    I saw this happening on some forums. Is that possible to this function on forumotion as well?
    For example, if i copy a blue sentence, it will appear [color=blue.]sentence[./.color] automatically on my reply box.

    Thank you in advance.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Copy-paste HTML codes

    Post by SLGray August 1st 2012, 1:08 am

    It would if you were copying the information while in the edit mode. When you copy text that is colored, it will not paste the color code unless you are copying the code while in the edit mode.

    I believe you mean BBCode not HTML code.



    Copy-paste HTML codes Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    Solved Re: Copy-paste HTML codes

    Post by angel_of_night August 1st 2012, 1:13 am

    No, not the edit more.
    I mean on forums and pages with colored sentences that I can't edit.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Copy-paste HTML codes

    Post by SLGray August 1st 2012, 1:14 am

    It would not.



    Copy-paste HTML codes Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    Solved Re: Copy-paste HTML codes

    Post by angel_of_night August 1st 2012, 1:15 am

    Lame.
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Copy-paste HTML codes

    Post by LGforum August 1st 2012, 2:50 am

    This is a big thing, and a very tricky subject, and there's a lot involved in it. You can follow this tutorial: http://www.malware-site.www/t26-ckeditor-on-a-forumotion-forum in order to install CKEditor on your forum. It's a big name Rich Text Editor, which I believe undertakes the task of rich text copy-pasting.

    However even CKEditor and other big names struggle with the task, and its still a largely un-perfected feature throughout the web.

    Alternatively, you could try writing your own clipboard data to html parser.
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    Solved Re: Copy-paste HTML codes

    Post by angel_of_night August 1st 2012, 5:22 pm

    LGforum wrote:This is a big thing, and a very tricky subject, and there's a lot involved in it. You can follow this tutorial: http://www.malware-site.www/t26-ckeditor-on-a-forumotion-forum in order to install CKEditor on your forum. It's a big name Rich Text Editor, which I believe undertakes the task of rich text copy-pasting.

    However even CKEditor and other big names struggle with the task, and its still a largely un-perfected feature throughout the web.

    Alternatively, you could try writing your own clipboard data to html parser.
    How can I do the second option? Smile
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    Solved Re: Copy-paste HTML codes

    Post by LGforum August 2nd 2012, 2:27 am

    This? "Alternatively, you could try writing your own clipboard data to html parser."

    Learn a good amount of Javascript, a few hacks, possibly flash hacks too in order to access the clipboard data successfully, and parse the copied data into Forumotion-supporting BBcode.

    Accessing the clipboard itself is a large task with Javascript, and often requires hacks and workarounds to do.

    Then the amount of variation in formatting can vary from all sorts of software and markup out there, so you'd have to identify it and replace as needed.

    I hope your beginning to realize why there aren't that many editors out there that include this, and those that do, are far from perfect. Razz
    angel_of_night
    angel_of_night
    Forumember


    Female Posts : 565
    Reputation : 10
    Language : portuguese

    Solved Re: Copy-paste HTML codes

    Post by angel_of_night August 13th 2012, 6:25 pm

    Well, thanks its solved. Very Happy
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Copy-paste HTML codes

    Post by Sanket August 13th 2012, 8:50 pm

    Topic Solved & Locked

      Current date/time is September 22nd 2024, 9:33 pm