How to use the ckeditor4.instances function in ckeditor4

To help you get started, we’ve selected a few ckeditor4 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Enalean / tuleap / plugins / testmanagement / scripts / testmanagement / src / execution-collection / execution-service.js View on Github external
function loadRTE(field, execution) {
        let additional_options = {};
        let instance = CKEDITOR.instances["execution_" + execution.id];
        if (instance) {
            CKEDITOR.remove(instance);
        }

        if (execution.upload_url) {
            additional_options = {
                extraPlugins: "uploadimage",
                uploadUrl: execution.upload_url,
            };
        }
        let config = {
            disableNativeSpellChecker: false,
            toolbar: [
                ["Bold", "Italic", "Styles"],
                ["Link", "Unlink", "Image"],
            ],
github Enalean / tuleap / src / scripts / codendi / RichTextEditor.js View on Github external
init_rte: function () {
        var replace_options = {
            resize_enabled: true,
            language: document.body.dataset.userLocale,
            disableNativeSpellChecker: false,
        };

        if (CKEDITOR.instances && CKEDITOR.instances[this.element.id]) {
            CKEDITOR.instances[this.element.id].destroy(true);
        }

        let toolbar = "full";

        if (this.options.toolbar === "basic") {
            toolbar = [
                ["Styles", "Format", "Font", "FontSize"],
                ["Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript"],
                "/",
                ["TextColor", "BGColor"],
                ["NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote"],
                ["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"],
                ["Link", "Unlink", "Anchor", "Image"],
            ];
        } else if (this.options.toolbar === "minimal") {
github Enalean / tuleap / src / scripts / codendi / RichTextEditor.js View on Github external
init_rte: function () {
        var replace_options = {
            resize_enabled: true,
            language: document.body.dataset.userLocale,
            disableNativeSpellChecker: false,
        };

        if (CKEDITOR.instances && CKEDITOR.instances[this.element.id]) {
            CKEDITOR.instances[this.element.id].destroy(true);
        }

        let toolbar = "full";

        if (this.options.toolbar === "basic") {
            toolbar = [
                ["Styles", "Format", "Font", "FontSize"],
                ["Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript"],
                "/",
                ["TextColor", "BGColor"],
                ["NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote"],
                ["JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock"],
                ["Link", "Unlink", "Anchor", "Image"],
            ];
        } else if (this.options.toolbar === "minimal") {
            toolbar = [

ckeditor4

JavaScript WYSIWYG web text editor.

SEE LICENSE IN LICENSE.md
Latest version published 4 months ago

Package Health Score

71 / 100
Full package analysis