Q: React-Draft-Wysiwyg How to add custom label to blockTypes?How do you remove all the options of a select box and then add one option and select it with jQuery?How do I add a class to a given element?How can I add a key/value pair to a JavaScript object?How to add 30 minutes to a JavaScript Date object?How can I add new array elements at the beginning of an array in Javascript?How to conditionally add attributes to React components?How to add table inside react-draft-wysiwyg?How to add custom dropdown menu in react-draft-wysiwyg?Can't get draft-js Modifier's applyInlineStyle function to apply inline styleSlow update of the Draft.js / react-draft-wysiwyg DOM when content change

License validity of unreleased project

What does it actually mean to have two time dimensions?

Snaking a clogged tub drain

Why isn't aluminium involved in biological processes?

Is it OK to use personal email ID for faculty job applications or should we use (current) institute's ID

Is there an English equivalent for "Les carottes sont cuites", while keeping the vegetable reference?

What powers the air required for pneumatic brakes in aircraft?

Does the Intel 8085 CPU use real memory addresses?

What happens on Day 6?

How fast does a character need to move to be effectively invisible?

Is the Gritty Realism variant incompatible with dungeon-based adventures?

Is the purpose of sheet music to be played along to? Or a guide for learning and reference during playing?

Cauchy reals and Dedekind reals satisfy "the same mathematical theorems"

Is this Android phone Android 9.0 or Android 6.0?

Is there a source that says only 1/5th of the Jews will make it past the messiah?

Is it ethical for a company to ask its employees to move furniture on a weekend?

Why did Spider-Man take a detour to Dorset?

Is it okay for a chapter's POV to shift as it progresses?

Can a dragon's breath weapon pass through Leomund's Tiny Hut?

What advantages do focused Arrows of Slaying have over more generic ones?

FPGA CPU's, how to find the max speed?

What is the meaning of [[:space:]] in bash?

Interviewing with an unmentioned 9 months of sick leave taken during a job

Is the numeral or the noun the head? Does it vary depending on the language?



Q: React-Draft-Wysiwyg How to add custom label to blockTypes?


How do you remove all the options of a select box and then add one option and select it with jQuery?How do I add a class to a given element?How can I add a key/value pair to a JavaScript object?How to add 30 minutes to a JavaScript Date object?How can I add new array elements at the beginning of an array in Javascript?How to conditionally add attributes to React components?How to add table inside react-draft-wysiwyg?How to add custom dropdown menu in react-draft-wysiwyg?Can't get draft-js Modifier's applyInlineStyle function to apply inline styleSlow update of the Draft.js / react-draft-wysiwyg DOM when content change






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















Im trying to setup custom labels for blockType in react-draft-wysiwyg.



According to this pool request
I should be able to add displayName property to editor toolbar configuration object.



I tried to implement this like that, but unfortunately it does not work.



const documentEditorToolBarOptions = {
options: [
'blockType',
],
blockType:
inDropdown: true,
options: [
'Normal',
'H1',
'H2',
'H3',
'H4',
'H5',
'H6',
'Blockquote',
],
displayNames: [
label: 'Normal', displayName: 'Normal', style: 'unstyled' ,
label: 'H1', displayName: 'Heading 1', style: 'header-one' ,
label: 'H2', displayName: 'Heading 2', style: 'header-two' ,
label: 'H3', displayName: 'Heading 3', style: 'header-three' ,
label: 'H4', displayName: 'Heading 4', style: 'header-four' ,
label: 'H5', displayName: 'Heading 5', style: 'header-five' ,
label: 'H6', displayName: 'Heading 6', style: 'header-six' ,
label: 'Blockquote', displayName: 'Blockquote', style: 'blockquote' ,
],
className: undefined,
component: undefined,
dropdownClassName: undefined,
,


I would like to achieve a customizable label this will allow me to have multi language support in my editor.










share|improve this question






























    2















    Im trying to setup custom labels for blockType in react-draft-wysiwyg.



    According to this pool request
    I should be able to add displayName property to editor toolbar configuration object.



    I tried to implement this like that, but unfortunately it does not work.



    const documentEditorToolBarOptions = {
    options: [
    'blockType',
    ],
    blockType:
    inDropdown: true,
    options: [
    'Normal',
    'H1',
    'H2',
    'H3',
    'H4',
    'H5',
    'H6',
    'Blockquote',
    ],
    displayNames: [
    label: 'Normal', displayName: 'Normal', style: 'unstyled' ,
    label: 'H1', displayName: 'Heading 1', style: 'header-one' ,
    label: 'H2', displayName: 'Heading 2', style: 'header-two' ,
    label: 'H3', displayName: 'Heading 3', style: 'header-three' ,
    label: 'H4', displayName: 'Heading 4', style: 'header-four' ,
    label: 'H5', displayName: 'Heading 5', style: 'header-five' ,
    label: 'H6', displayName: 'Heading 6', style: 'header-six' ,
    label: 'Blockquote', displayName: 'Blockquote', style: 'blockquote' ,
    ],
    className: undefined,
    component: undefined,
    dropdownClassName: undefined,
    ,


    I would like to achieve a customizable label this will allow me to have multi language support in my editor.










    share|improve this question


























      2












      2








      2








      Im trying to setup custom labels for blockType in react-draft-wysiwyg.



      According to this pool request
      I should be able to add displayName property to editor toolbar configuration object.



      I tried to implement this like that, but unfortunately it does not work.



      const documentEditorToolBarOptions = {
      options: [
      'blockType',
      ],
      blockType:
      inDropdown: true,
      options: [
      'Normal',
      'H1',
      'H2',
      'H3',
      'H4',
      'H5',
      'H6',
      'Blockquote',
      ],
      displayNames: [
      label: 'Normal', displayName: 'Normal', style: 'unstyled' ,
      label: 'H1', displayName: 'Heading 1', style: 'header-one' ,
      label: 'H2', displayName: 'Heading 2', style: 'header-two' ,
      label: 'H3', displayName: 'Heading 3', style: 'header-three' ,
      label: 'H4', displayName: 'Heading 4', style: 'header-four' ,
      label: 'H5', displayName: 'Heading 5', style: 'header-five' ,
      label: 'H6', displayName: 'Heading 6', style: 'header-six' ,
      label: 'Blockquote', displayName: 'Blockquote', style: 'blockquote' ,
      ],
      className: undefined,
      component: undefined,
      dropdownClassName: undefined,
      ,


      I would like to achieve a customizable label this will allow me to have multi language support in my editor.










      share|improve this question
















      Im trying to setup custom labels for blockType in react-draft-wysiwyg.



      According to this pool request
      I should be able to add displayName property to editor toolbar configuration object.



      I tried to implement this like that, but unfortunately it does not work.



      const documentEditorToolBarOptions = {
      options: [
      'blockType',
      ],
      blockType:
      inDropdown: true,
      options: [
      'Normal',
      'H1',
      'H2',
      'H3',
      'H4',
      'H5',
      'H6',
      'Blockquote',
      ],
      displayNames: [
      label: 'Normal', displayName: 'Normal', style: 'unstyled' ,
      label: 'H1', displayName: 'Heading 1', style: 'header-one' ,
      label: 'H2', displayName: 'Heading 2', style: 'header-two' ,
      label: 'H3', displayName: 'Heading 3', style: 'header-three' ,
      label: 'H4', displayName: 'Heading 4', style: 'header-four' ,
      label: 'H5', displayName: 'Heading 5', style: 'header-five' ,
      label: 'H6', displayName: 'Heading 6', style: 'header-six' ,
      label: 'Blockquote', displayName: 'Blockquote', style: 'blockquote' ,
      ],
      className: undefined,
      component: undefined,
      dropdownClassName: undefined,
      ,


      I would like to achieve a customizable label this will allow me to have multi language support in my editor.







      javascript draftjs react-draft-wysiwyg






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 30 at 17:50







      Space

















      asked Mar 26 at 8:47









      SpaceSpace

      335 bronze badges




      335 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          0














          After some researching I found the solution for my issue.



          Editor component has a prop to provide localization object.
          This localization object has a key for custom labels in case we are missing something from the provided localization.



          We can use it like that:



           <Editor
          ...
          localization= locale: 'en', translations: editorLabels
          />


          const editorLabels = 
          // Generic
          'generic.add': 'Add',
          'generic.cancel': 'Cancel',

          // BlockType
          'components.controls.blocktype.h1': 'Heading 1',
          'components.controls.blocktype.h2': 'Heading 2',
          'components.controls.blocktype.h3': 'Heading 3',
          'components.controls.blocktype.h4': 'Heading 4',
          'components.controls.blocktype.h5': 'Heading 5',
          'components.controls.blocktype.h6': 'Heading 6',
          'components.controls.blocktype.blockquote': 'Blockquote',
          'components.controls.blocktype.code': 'Code',
          'components.controls.blocktype.blocktype': 'Block Type',
          'components.controls.blocktype.normal': 'Normal',

          // Color Picker
          'components.controls.colorpicker.colorpicker': 'Color Picker',
          'components.controls.colorpicker.text': 'Text',
          'components.controls.colorpicker.background': 'Highlight',

          // Embedded
          'components.controls.embedded.embedded': 'Embedded',
          'components.controls.embedded.embeddedlink': 'Embedded Link',
          'components.controls.embedded.enterlink': 'Enter link',

          // Emoji
          'components.controls.emoji.emoji': 'Emoji',

          // FontFamily
          'components.controls.fontfamily.fontfamily': 'Font',

          // FontSize
          'components.controls.fontsize.fontsize': 'Font Size',

          // History
          'components.controls.history.history': 'History',
          'components.controls.history.undo': 'Undo',
          'components.controls.history.redo': 'Redo',

          // Image
          'components.controls.image.image': 'Image',
          'components.controls.image.fileUpload': 'File Upload',
          'components.controls.image.byURL': 'URL',
          'components.controls.image.dropFileText': 'Drop the file or click to upload',

          // Inline
          'components.controls.inline.bold': 'Bold',
          'components.controls.inline.italic': 'Italic',
          'components.controls.inline.underline': 'Underline',
          'components.controls.inline.strikethrough': 'Strikethrough',
          'components.controls.inline.monospace': 'Monospace',
          'components.controls.inline.superscript': 'Superscript',
          'components.controls.inline.subscript': 'Subscript',

          // Link
          'components.controls.link.linkTitle': 'Link Title',
          'components.controls.link.linkTarget': 'Link Target',
          'components.controls.link.linkTargetOption': 'Open link in new window',
          'components.controls.link.link': 'Link',
          'components.controls.link.unlink': 'Unlink',

          // List
          'components.controls.list.list': 'List',
          'components.controls.list.unordered': 'Unordered',
          'components.controls.list.ordered': 'Ordered',
          'components.controls.list.indent': 'Indent',
          'components.controls.list.outdent': 'Outdent',

          // Remove
          'components.controls.remove.remove': 'Remove',

          // TextAlign
          'components.controls.textalign.textalign': 'Text Align',
          'components.controls.textalign.left': 'Left',
          'components.controls.textalign.center': 'Center',
          'components.controls.textalign.right': 'Right',
          'components.controls.textalign.justify': 'Justify',
          ;





          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55352984%2fq-react-draft-wysiwyg-how-to-add-custom-label-to-blocktypes%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            After some researching I found the solution for my issue.



            Editor component has a prop to provide localization object.
            This localization object has a key for custom labels in case we are missing something from the provided localization.



            We can use it like that:



             <Editor
            ...
            localization= locale: 'en', translations: editorLabels
            />


            const editorLabels = 
            // Generic
            'generic.add': 'Add',
            'generic.cancel': 'Cancel',

            // BlockType
            'components.controls.blocktype.h1': 'Heading 1',
            'components.controls.blocktype.h2': 'Heading 2',
            'components.controls.blocktype.h3': 'Heading 3',
            'components.controls.blocktype.h4': 'Heading 4',
            'components.controls.blocktype.h5': 'Heading 5',
            'components.controls.blocktype.h6': 'Heading 6',
            'components.controls.blocktype.blockquote': 'Blockquote',
            'components.controls.blocktype.code': 'Code',
            'components.controls.blocktype.blocktype': 'Block Type',
            'components.controls.blocktype.normal': 'Normal',

            // Color Picker
            'components.controls.colorpicker.colorpicker': 'Color Picker',
            'components.controls.colorpicker.text': 'Text',
            'components.controls.colorpicker.background': 'Highlight',

            // Embedded
            'components.controls.embedded.embedded': 'Embedded',
            'components.controls.embedded.embeddedlink': 'Embedded Link',
            'components.controls.embedded.enterlink': 'Enter link',

            // Emoji
            'components.controls.emoji.emoji': 'Emoji',

            // FontFamily
            'components.controls.fontfamily.fontfamily': 'Font',

            // FontSize
            'components.controls.fontsize.fontsize': 'Font Size',

            // History
            'components.controls.history.history': 'History',
            'components.controls.history.undo': 'Undo',
            'components.controls.history.redo': 'Redo',

            // Image
            'components.controls.image.image': 'Image',
            'components.controls.image.fileUpload': 'File Upload',
            'components.controls.image.byURL': 'URL',
            'components.controls.image.dropFileText': 'Drop the file or click to upload',

            // Inline
            'components.controls.inline.bold': 'Bold',
            'components.controls.inline.italic': 'Italic',
            'components.controls.inline.underline': 'Underline',
            'components.controls.inline.strikethrough': 'Strikethrough',
            'components.controls.inline.monospace': 'Monospace',
            'components.controls.inline.superscript': 'Superscript',
            'components.controls.inline.subscript': 'Subscript',

            // Link
            'components.controls.link.linkTitle': 'Link Title',
            'components.controls.link.linkTarget': 'Link Target',
            'components.controls.link.linkTargetOption': 'Open link in new window',
            'components.controls.link.link': 'Link',
            'components.controls.link.unlink': 'Unlink',

            // List
            'components.controls.list.list': 'List',
            'components.controls.list.unordered': 'Unordered',
            'components.controls.list.ordered': 'Ordered',
            'components.controls.list.indent': 'Indent',
            'components.controls.list.outdent': 'Outdent',

            // Remove
            'components.controls.remove.remove': 'Remove',

            // TextAlign
            'components.controls.textalign.textalign': 'Text Align',
            'components.controls.textalign.left': 'Left',
            'components.controls.textalign.center': 'Center',
            'components.controls.textalign.right': 'Right',
            'components.controls.textalign.justify': 'Justify',
            ;





            share|improve this answer



























              0














              After some researching I found the solution for my issue.



              Editor component has a prop to provide localization object.
              This localization object has a key for custom labels in case we are missing something from the provided localization.



              We can use it like that:



               <Editor
              ...
              localization= locale: 'en', translations: editorLabels
              />


              const editorLabels = 
              // Generic
              'generic.add': 'Add',
              'generic.cancel': 'Cancel',

              // BlockType
              'components.controls.blocktype.h1': 'Heading 1',
              'components.controls.blocktype.h2': 'Heading 2',
              'components.controls.blocktype.h3': 'Heading 3',
              'components.controls.blocktype.h4': 'Heading 4',
              'components.controls.blocktype.h5': 'Heading 5',
              'components.controls.blocktype.h6': 'Heading 6',
              'components.controls.blocktype.blockquote': 'Blockquote',
              'components.controls.blocktype.code': 'Code',
              'components.controls.blocktype.blocktype': 'Block Type',
              'components.controls.blocktype.normal': 'Normal',

              // Color Picker
              'components.controls.colorpicker.colorpicker': 'Color Picker',
              'components.controls.colorpicker.text': 'Text',
              'components.controls.colorpicker.background': 'Highlight',

              // Embedded
              'components.controls.embedded.embedded': 'Embedded',
              'components.controls.embedded.embeddedlink': 'Embedded Link',
              'components.controls.embedded.enterlink': 'Enter link',

              // Emoji
              'components.controls.emoji.emoji': 'Emoji',

              // FontFamily
              'components.controls.fontfamily.fontfamily': 'Font',

              // FontSize
              'components.controls.fontsize.fontsize': 'Font Size',

              // History
              'components.controls.history.history': 'History',
              'components.controls.history.undo': 'Undo',
              'components.controls.history.redo': 'Redo',

              // Image
              'components.controls.image.image': 'Image',
              'components.controls.image.fileUpload': 'File Upload',
              'components.controls.image.byURL': 'URL',
              'components.controls.image.dropFileText': 'Drop the file or click to upload',

              // Inline
              'components.controls.inline.bold': 'Bold',
              'components.controls.inline.italic': 'Italic',
              'components.controls.inline.underline': 'Underline',
              'components.controls.inline.strikethrough': 'Strikethrough',
              'components.controls.inline.monospace': 'Monospace',
              'components.controls.inline.superscript': 'Superscript',
              'components.controls.inline.subscript': 'Subscript',

              // Link
              'components.controls.link.linkTitle': 'Link Title',
              'components.controls.link.linkTarget': 'Link Target',
              'components.controls.link.linkTargetOption': 'Open link in new window',
              'components.controls.link.link': 'Link',
              'components.controls.link.unlink': 'Unlink',

              // List
              'components.controls.list.list': 'List',
              'components.controls.list.unordered': 'Unordered',
              'components.controls.list.ordered': 'Ordered',
              'components.controls.list.indent': 'Indent',
              'components.controls.list.outdent': 'Outdent',

              // Remove
              'components.controls.remove.remove': 'Remove',

              // TextAlign
              'components.controls.textalign.textalign': 'Text Align',
              'components.controls.textalign.left': 'Left',
              'components.controls.textalign.center': 'Center',
              'components.controls.textalign.right': 'Right',
              'components.controls.textalign.justify': 'Justify',
              ;





              share|improve this answer

























                0












                0








                0







                After some researching I found the solution for my issue.



                Editor component has a prop to provide localization object.
                This localization object has a key for custom labels in case we are missing something from the provided localization.



                We can use it like that:



                 <Editor
                ...
                localization= locale: 'en', translations: editorLabels
                />


                const editorLabels = 
                // Generic
                'generic.add': 'Add',
                'generic.cancel': 'Cancel',

                // BlockType
                'components.controls.blocktype.h1': 'Heading 1',
                'components.controls.blocktype.h2': 'Heading 2',
                'components.controls.blocktype.h3': 'Heading 3',
                'components.controls.blocktype.h4': 'Heading 4',
                'components.controls.blocktype.h5': 'Heading 5',
                'components.controls.blocktype.h6': 'Heading 6',
                'components.controls.blocktype.blockquote': 'Blockquote',
                'components.controls.blocktype.code': 'Code',
                'components.controls.blocktype.blocktype': 'Block Type',
                'components.controls.blocktype.normal': 'Normal',

                // Color Picker
                'components.controls.colorpicker.colorpicker': 'Color Picker',
                'components.controls.colorpicker.text': 'Text',
                'components.controls.colorpicker.background': 'Highlight',

                // Embedded
                'components.controls.embedded.embedded': 'Embedded',
                'components.controls.embedded.embeddedlink': 'Embedded Link',
                'components.controls.embedded.enterlink': 'Enter link',

                // Emoji
                'components.controls.emoji.emoji': 'Emoji',

                // FontFamily
                'components.controls.fontfamily.fontfamily': 'Font',

                // FontSize
                'components.controls.fontsize.fontsize': 'Font Size',

                // History
                'components.controls.history.history': 'History',
                'components.controls.history.undo': 'Undo',
                'components.controls.history.redo': 'Redo',

                // Image
                'components.controls.image.image': 'Image',
                'components.controls.image.fileUpload': 'File Upload',
                'components.controls.image.byURL': 'URL',
                'components.controls.image.dropFileText': 'Drop the file or click to upload',

                // Inline
                'components.controls.inline.bold': 'Bold',
                'components.controls.inline.italic': 'Italic',
                'components.controls.inline.underline': 'Underline',
                'components.controls.inline.strikethrough': 'Strikethrough',
                'components.controls.inline.monospace': 'Monospace',
                'components.controls.inline.superscript': 'Superscript',
                'components.controls.inline.subscript': 'Subscript',

                // Link
                'components.controls.link.linkTitle': 'Link Title',
                'components.controls.link.linkTarget': 'Link Target',
                'components.controls.link.linkTargetOption': 'Open link in new window',
                'components.controls.link.link': 'Link',
                'components.controls.link.unlink': 'Unlink',

                // List
                'components.controls.list.list': 'List',
                'components.controls.list.unordered': 'Unordered',
                'components.controls.list.ordered': 'Ordered',
                'components.controls.list.indent': 'Indent',
                'components.controls.list.outdent': 'Outdent',

                // Remove
                'components.controls.remove.remove': 'Remove',

                // TextAlign
                'components.controls.textalign.textalign': 'Text Align',
                'components.controls.textalign.left': 'Left',
                'components.controls.textalign.center': 'Center',
                'components.controls.textalign.right': 'Right',
                'components.controls.textalign.justify': 'Justify',
                ;





                share|improve this answer













                After some researching I found the solution for my issue.



                Editor component has a prop to provide localization object.
                This localization object has a key for custom labels in case we are missing something from the provided localization.



                We can use it like that:



                 <Editor
                ...
                localization= locale: 'en', translations: editorLabels
                />


                const editorLabels = 
                // Generic
                'generic.add': 'Add',
                'generic.cancel': 'Cancel',

                // BlockType
                'components.controls.blocktype.h1': 'Heading 1',
                'components.controls.blocktype.h2': 'Heading 2',
                'components.controls.blocktype.h3': 'Heading 3',
                'components.controls.blocktype.h4': 'Heading 4',
                'components.controls.blocktype.h5': 'Heading 5',
                'components.controls.blocktype.h6': 'Heading 6',
                'components.controls.blocktype.blockquote': 'Blockquote',
                'components.controls.blocktype.code': 'Code',
                'components.controls.blocktype.blocktype': 'Block Type',
                'components.controls.blocktype.normal': 'Normal',

                // Color Picker
                'components.controls.colorpicker.colorpicker': 'Color Picker',
                'components.controls.colorpicker.text': 'Text',
                'components.controls.colorpicker.background': 'Highlight',

                // Embedded
                'components.controls.embedded.embedded': 'Embedded',
                'components.controls.embedded.embeddedlink': 'Embedded Link',
                'components.controls.embedded.enterlink': 'Enter link',

                // Emoji
                'components.controls.emoji.emoji': 'Emoji',

                // FontFamily
                'components.controls.fontfamily.fontfamily': 'Font',

                // FontSize
                'components.controls.fontsize.fontsize': 'Font Size',

                // History
                'components.controls.history.history': 'History',
                'components.controls.history.undo': 'Undo',
                'components.controls.history.redo': 'Redo',

                // Image
                'components.controls.image.image': 'Image',
                'components.controls.image.fileUpload': 'File Upload',
                'components.controls.image.byURL': 'URL',
                'components.controls.image.dropFileText': 'Drop the file or click to upload',

                // Inline
                'components.controls.inline.bold': 'Bold',
                'components.controls.inline.italic': 'Italic',
                'components.controls.inline.underline': 'Underline',
                'components.controls.inline.strikethrough': 'Strikethrough',
                'components.controls.inline.monospace': 'Monospace',
                'components.controls.inline.superscript': 'Superscript',
                'components.controls.inline.subscript': 'Subscript',

                // Link
                'components.controls.link.linkTitle': 'Link Title',
                'components.controls.link.linkTarget': 'Link Target',
                'components.controls.link.linkTargetOption': 'Open link in new window',
                'components.controls.link.link': 'Link',
                'components.controls.link.unlink': 'Unlink',

                // List
                'components.controls.list.list': 'List',
                'components.controls.list.unordered': 'Unordered',
                'components.controls.list.ordered': 'Ordered',
                'components.controls.list.indent': 'Indent',
                'components.controls.list.outdent': 'Outdent',

                // Remove
                'components.controls.remove.remove': 'Remove',

                // TextAlign
                'components.controls.textalign.textalign': 'Text Align',
                'components.controls.textalign.left': 'Left',
                'components.controls.textalign.center': 'Center',
                'components.controls.textalign.right': 'Right',
                'components.controls.textalign.justify': 'Justify',
                ;






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 30 at 11:14









                SpaceSpace

                335 bronze badges




                335 bronze badges


















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55352984%2fq-react-draft-wysiwyg-how-to-add-custom-label-to-blocktypes%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현