Copied to clipboard

Flag this post as spam?

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


  • Aminul Haque 5 posts 75 karma points
    Apr 03, 2021 @ 18:56
    Aminul Haque
    0

    RichTextEditor (tinymce) load issue in custom plugin

    I am adding a new tree item in setting section where I have a textarea field. I am using tinymce to make thie textarea field to RichTextEditor. I am done this and its working okay when debug=true in web.config. If I set debug=false in web.config its not working. Please look into the images and give me a solation.
    enter image description here enter image description here

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Apr 04, 2021 @ 05:44
    Huw Reddick
    0

    obvious question, but does /themes/modern/theme.js exist?

  • Aminul Haque 5 posts 75 karma points
    Apr 04, 2021 @ 18:32
    Aminul Haque
    0

    Yes, /themes/modern/theme.js exist in Core Umbraco library

    enter image description here

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Apr 04, 2021 @ 18:46
    Huw Reddick
    0

    How have you included the CSS file for your plugin?

  • Aminul Haque 5 posts 75 karma points
    Apr 04, 2021 @ 19:26
    Aminul Haque
    0

    which css? Actually tinymce should look this library in ~/Umbraco/lib/tinymce/ but as per the error its looing theme outside of umbraco folder.

    Here is my code

    {

    "javascript": [ "~/Umbraco/lib/tinymce/tinymce.min.js", "~/Umbraco/lib/tinymce/themes/modern/theme.min.js", "~/AppPlugins/mysetting/backoffice/setting/overview.controller.js", "~/AppPlugins/mysetting/backoffice/setting/overview.js" ],

    "css": [ "~/Umbraco/lib/tinymce/skins/lightgray/skin.min.css", "~/App_Plugins/mysetting/backoffice/setting/overview.css" ]

    }

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Apr 04, 2021 @ 20:59
    Huw Reddick
    0

    Just wanted to check your paths, but yes they look fine. If you copy the is file to another folder outside the umbraco folder and reference that instead, does it still fail to find it? Just try to rule out umbroca weirdnes :)

  • Aminul Haque 5 posts 75 karma points
    Apr 04, 2021 @ 21:48
    Aminul Haque
    0

    If I copy theme and plugin folder from website/Umbraco/lib/tinymce to website then its work okay, I also tried to copy the tinymce in App_Plugins/mySetting folder but its still not working

Please Sign in or register to post replies

Write your reply to:

Draft