Question to CKEditor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kyo-dono
    New Member
    • Dec 2010
    • 27
    • 4.1.x

    Question to CKEditor

    vBulletin want add CKEditor next time *yeah* So I want upgrade my site from textarea to CKEditor too. I have downloaded last version and test the api.html example and found a big problem with CKEditor. I need custom buttons here (not for the forum), but the insertHTML will not working with it.

    Example:
    Starting with:
    <strong>Initial value</strong>
    Now select "value" and execute:
    Code:
    editor.insertHtml('<span style="color:red;">'+selectedText+'</span>');
    The Result is
    <strong>Initial </strong><span style="color:red;">value</span><strong>.</strong>
    You see, value is not bold anymore. Why? insertHTML removes styling informations of selected text. That is not fine. Is there a workaround? What is my mistake? Can you help me?
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    I would suggest reporting the error to the CKEditor team. But I dont think insertHTML will be used by defualt.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...