Announcement

Collapse
No announcement yet.

ckEditor, Filter Adjustment

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ckEditor, Filter Adjustment

    Hi,

    how can I customize the ckEditor in vbulletin 5.4.0.
    I want to disable the Word filters?
    See picture attachment, marked red.
    For this purpose I made the following adjustment in the file /var/www/die_seite/forum/js/ckeditor/config.js:


    Code:
    // config.pasteFromWordRemoveFontStyles = true;
    // config.pasteFromWordCleanupFile = true;
    // config.pasteFromWord = true;
    // config.pasteFromWordRemoveFontStyles = true;
    // config.pasteFromWordNumberedHeadingToList = true;
    // config.forcePasteAsPlainText = true;
    // config.pasteFromWordPromptCleanup = true;          
    
    config.pasteFromWordRemoveFontStyles = false;
    config.pasteFromWordCleanupFile = false;
    config.pasteFromWord = false;
    config.pasteFromWordRemoveFontStyles = false;
    config.pasteFromWordNumberedHeadingToList = false;
    config.forcePasteAsPlainText = false;
    config.pasteFromWordPromptCleanup = false;
    What I found on the net, unfortunately it doesn't work.

    The black marked part, code, HTML and PHP I could read in the file /var/www/die_seite/forum/js/ckeditor-rollup-533.js, from line:

    Code:
    // addButtonCommand('Code', vBulletin.phrase.get('wrap_x_tags', 'CODE'), 'CODE', 0, window.pageData.baseurl + '/core/images/editor/code.png');
    // addButtonCommand('Html', vBulletin.phrase.get('wrap_x_tags', 'HTML'), 'HTML', 0, window.pageData.baseurl + '/core/images/editor/html.png');
    // addButtonCommand('Php', vBulletin.phrase.get('wrap_x_tags', 'PHP'), 'PHP', 0, window.pageData.baseurl + '/core/images/editor/php.png');
    Just comment it out.
    If someone knows I can disable the section Code, HTML and PHP via the config file, I would like to do that.


    Attached Files

    #2
    Try doing Step 3 from https://vbmods.rocks/forum/vbulletin...in-vbulletin-5
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Sorry, my mistake, in this case I am still using vbulletin version 5.3.3 and not version 5.4.0.
      Does the adaptation of the link https://vbmods.rocks/forum/vbulletin...in-vbulletin-5
      also apply to version 5.3.3?

      Comment


      • glennrocksvb
        glennrocksvb commented
        Editing a comment
        Yes it should. That mod was created during 5.2.3. I don't think the editor has changed since then.

    Users Viewing This Page

    Collapse

    There is 1 user viewing this forum topic.

    • Guest Guest

    Latest Posts

    Collapse

    Working...
    X
    Searching...Please wait.
    An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

    Please push the back button and reload the previous window.'
    An unexpected error was returned: 'Your submission could not be processed because the token has expired.

    Please push the back button and reload the previous window.'
    An internal error has occurred and the module cannot be displayed.
    There are no results that meet this criteria.
    Search Result for "|||"