Recent content by Glaude

  1. Glaude

    [021] Multi-account detector [Deleted]

    Hey ! It would be great if we had the options to move users detected by the plugin into another group of our choice, do you think you could implement that ? Thanks
  2. Glaude

    XF 2.2 Interacting with the editor once initialized?

    Tested on Latest Firefox, same behavior, the text goes at the end off the editor only. I think you gave it your best shot, thanks a lot for all your help, unless you see something else that could be tried, which I'm always all hear, I hope what you posted will be able to help some other people...
  3. Glaude

    XF 2.2 Interacting with the editor once initialized?

    Tried on Chrome on Win 10, will try on some other browsers and report back to see if that made a difference
  4. Glaude

    XF 2.2 Interacting with the editor once initialized?

    This place was just choosen to run the testing, this was suppose to be the resting place of the button only. With the code between xf js, it's producing the same result I had before, the text is inserted only at the end of the editor box, between <p> elements I can try running the script from...
  5. Glaude

    XF 2.2 Interacting with the editor once initialized?

    Thanks again for all of this help, but this is not working and produce the following error : Uncaught ReferenceError: jQuery is not defined at (index):1442:2 In reference to : (jQuery, window, document); Maybe I should have specified from the start, but I was not thinking it had any...
  6. Glaude

    XF 2.2 Interacting with the editor once initialized?

    Little additon to my quest : after some stackoverflow reading, I managed to interact with the editor with : function testinsert() { $(".js-editor")[0]["data-froala.editor"].html.insert('This should work fine'); } But this doesn't seem to behave as intended as this will append to the end...
  7. Glaude

    XF 2.2 Interacting with the editor once initialized?

    Thanks again, and sorry in advance, but this is throwing this error in the console : Uncaught TypeError: Cannot read properties of undefined (reading 'html') at testinsert ((index):1421:14) at HTMLDivElement.onclick (VM4957 :1424:54) Before that I had to load the jquery script just...
  8. Glaude

    XF 2.2 Interacting with the editor once initialized?

    Thanks a lot for this, but <script> function testinsert(){ $('.js-editor').on('editor:init', function(e, editor) { editor.html.insert("mystring", true); }); } </script> <div class="button" onclick="testinsert();">...
  9. Glaude

    XF 2.2 Interacting with the editor once initialized?

    Hi everyone, little thread digging, but my question is almost the same and this thread is well referenced, so might help other people if the answer is found. I too, want to interact with the froala editor. I would like to insert content (a string) at the carret position inside the editor, this...
Back
Top Bottom