We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36686
    • 165 Posts
    I’m using TinyMCE 4.1.1 in Revolution 2.0.4-pl (in Swedish) and get a strange issue with the Insert link function. It works, but all the text is replaced with jibberish - {#modxlink_dlg.general_props}, {#modxlink_dlg.url} etc.

    Also, I’m wondering how to get CSS selectors to appear in the Style dropdown? I’ve tried adding stuff in the system settings, by editor_css_selectors, but it doesn’t seem to do anything.
      • 26555
      • 38 Posts
      Same here with insert link in German (see attachment).
      Any suggestions how to fix or translate it (I would go for it, if I had the English counterpart smiley).
        • 26555
        • 38 Posts
        OK, I located the corresponding lexicon for German (the folder inclues all other languages) here:
        /assets/components/tinymce/jscripts/tiny_mce/plugins/modxlink/langs/de_dlg.js

        Seems to be transated, but not applying.
        The key used is "de.advlink_dlg" and not "de.modxlink_dlg", as one might think:
        tinyMCE.addI18n(’de.advlink_dlg’,{
        title:"Link einf\u00FCgen/bearbeiten",
        url:"Adresse",
        [...]


        What do I need to run translation properly?
          • 36686
          • 165 Posts
          The English language file has two extra lines at the end, but I doubt that would have anything to do with it...

          ,pagetitle: 'Pagetitle'
          ,alias: 'Alias'
            • 36926
            • 701 Posts
            @lottaar, any luck with the CSS selector issues? Can’t believe there doesn’t seem to be anyone else with this problem, either no one acrtually uses CSS slectors or we’re trying to add them the wrong way.


            Ben
              • 36686
              • 165 Posts
              Nope, no luck with the css selectors, and no luck with the insert link goobeldigook sad
                • 26555
                • 38 Posts
                @bennyb: You are right, I am using custom css classes. smiley

                My settings:
                editor_css_path /styles/editor.css
                editor_css_selectors Highlight=highlight, Highlight bold=highlightBold

                The editor.css obviously contains the defined classes highlight and highlightBold.
                  • 26555
                  • 38 Posts
                  Can anybody help with the link popup translation?
                    • 36686
                    • 165 Posts
                    @sebwebdev: I’d be more than happy to help with the Swedish translation. Just let me know what you need.
                      • 26555
                      • 38 Posts
                      @lotaar: Thanks. But my problem is actually, that I need somebody to point me in the right direction on how to translate the TinyMCE placeholders respectively explaining why it is not working already.