Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vijay Bhatter 5 posts 86 karma points
    Apr 19, 2020 @ 02:20
    Vijay Bhatter
    0

    How to Add BlockQuote button to TinyMCE in Umbraco 8

    Hi,

    I am trying to extend the Rich Text Editor to have the BlockQuote button in Umbraco v8.6

    I even tried the solution given at https://our.umbraco.com/documentation/reference/config/tinymceconfig/

    <command>
      <umbracoAlias>code</umbracoAlias>
      <icon>images/editor/code.gif</icon>
      <tinyMceCommand value="" userInterface="false" frontendCommand="code">code</tinyMceCommand>
      <priority>1</priority>
    </command>
    

    But its not working and I am getting the following error:

    System.NullReferenceException: Object reference not set to an instance of an object.\r\n   at Umbraco.Web.PropertyEditors.RichTextPreValueController.EnsureInit()
    

    Any help in this regard will be very helpful.

    Regards,

  • Renante 9 posts 125 karma points
    Apr 19, 2020 @ 11:21
    Renante
    100

    Hi,

    I think you can do that by adding this line at tinymceconfig.config located at config folder.

    enter image description here

    Then go back to RTE data type settings and enable it.

    enter image description here

  • Vijay Bhatter 5 posts 86 karma points
    Apr 19, 2020 @ 11:30
    Vijay Bhatter
    0

    Thank you. I also figured it out eventually and its much easier than it was in v7.

    For Code Sample and BlockQuote we can use the following:

        <command alias="codesample" name="Code Sample" mode="Selection"/>
        <command alias="blockquote" name="BlockQuote" mode="Selection"/>
    

    There are many more plugins available

Please Sign in or register to post replies

Write your reply to:

Draft