#26 ✓wontfix
vijayabasker

Tiny MCE editor problem with copying html content

Reported by vijayabasker | June 2nd, 2010 @ 06:33 PM

Hi Kieran,

I am new to TinyMCE text editor.I have integrated TinyMCE editor with ruby on rails everything is perfect.
Installing TinyMCE gems and integrating with Ruby On Rails code.

I am storing TinyMCE text_editor values in database(mysql) and retrieving the same content in view page.

when the problem occurs while copying html content (from same page or different html page) and pasting the content in TinyMCE text_editor its creates extra div.It introduce alignment problem in the view page.
how to avoid this problem?.

Herewith i have attached the image for your reference.
can you please send solution for this problem as soon as possible.

Thanks ,
Vijay

Comments and changes to this ticket

  • Kieran P

    Kieran P June 3rd, 2010 @ 03:45 PM

    • State changed from “new” to “invalid”

    Hey Vijay,

    The tiny_mce plugin/gem is a wrapper for the TinyMCE Editor (http://tinymce.moxiecode.com/)

    Sounds like the issues you're having would be better resolved by looking into the TinyMCE Editor documentation (http://wiki.moxiecode.com/index.php/TinyMCE:Index)

    In particular, you might try adding the following to config/tiny_mce.yml and see if that helps.

    plugins: [ paste ]
    paste_auto_cleanup_on_paste: true
    paste_convert_middot_lists: false
    paste_convert_headers_to_strong: true
    

    The above configuration options you can find at http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste

    If you continue to have difficulties, you can ask for some support here: http://tinymce.moxiecode.com/punbb/viewforum.php?id=1

    As I said before, this gem/plugin is just a wrapper in ruby for it, so options are simply passed to the TinyMCE editor. There isn't much else I can do.

    Hope you're able to find the solution.

    Regards
    Kieran

  • Walter McGinnis

    Walter McGinnis June 3rd, 2010 @ 03:47 PM

    • State changed from “invalid” to “wontfix”
    • Assigned user changed from “Kieran P” to “Walter McGinnis”

    This is likely a TinyMCE configuration/operation issue than something specific to the Rails TinyMCE code. So if the advice below isn't helpful, please refer to the larger TinyMCE community here: http://tinymce.moxiecode.com/punbb/

    Pasting from different sources (particularly of formatted or "rich" text) can sometimes result in unexpected formatting. You might want to enable the paste plugin with its pasteword and pastetext buttons in your configuration (these tools can filter out extraneous elements). Here's an example configuration that has those enabled (along with a number of other things):

    http://github.com/kete/kete/blob/master/config/tiny_mce.yml

    Hopes this helps,
    Walter

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Ruby on Rails plugin that allows easy implementation of the TinyMCE editor into your applications.

People watching this ticket

Attachments

Pages