GithubHelp home page GithubHelp logo

Comments (2)

thinkMichel avatar thinkMichel commented on June 17, 2024

Hi, no need, you can edit this yourself through CKEditor config, or use the confighelper plugin.

with confighelper you can hide it through:

config.hideDialogFields = "oembed:general:align;oembed:general:resizeType";

Or if you use the API of CKEditor, you need to follow their sample in the samples/plugings/dialog/dialog.html.

In the source you will find the relevant code. I used the confighelper, but the below code should get you started if you dont want to use that..

CKEDITOR.on('dialogDefinition', function (ev) {

    // Take the dialog name and its definition from the event data.
    var dialogName = ev.data.name;
    var dialogDefinition = ev.data.definition;

    // Check if the definition is from the dialog we're
    if (dialogName == 'oembed') {

        var generalTab = dialogDefinition.getContents('general');
        generalTab.remove('resizeType');

    }
});

from ckeditor-oembed-plugin.

pierrocknroll avatar pierrocknroll commented on June 17, 2024

Thanks a lot Michel !
FYI you can hide the size inputs, their ids are maxSizeBox and sizeBox

But @w8tcha there is a javascript error when I try to hide any option.

screenshot_1

from ckeditor-oembed-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.