Copied to clipboard

Flag this post as spam?

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


  • Tom Engan 430 posts 1173 karma points
    Dec 05, 2015 @ 11:49
    Tom Engan
    0

    How to insert a LeBlender control into Rich text editor?

    I've made a Modal-control with LeBlender, and it works great.

    enter image description here

    But I want to place the Modal control optional placed inside a text, and various types of text (h1, h2, h3, p, a, div, ol, ul, etc.) is freely written best inside RTE (hints and tips if there's other solutions than RTF for this use), but I don't have the Modal-control as an option in my macro list.

    enter image description here

    enter image description here

    How can I insert the LeBlender control into RTE (or how can I make a macro for this Leblender control shown in the macro list)?

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Dec 07, 2015 @ 20:10
    Søren Kottal
    0

    This is a really bad way to go.

    What do you intent to have in your modals?

    Maybe you should create a structure for modals in your content tree instead, and make some javascript logic, for opening links to ie. /modals/my-modal-1234 in a modal.

  • Tom Engan 430 posts 1173 karma points
    Dec 08, 2015 @ 11:37
    Tom Engan
    0

    Do you have any details why you think this is not a good way to do it?

    I want to replace my current static solution with Umbraco backend, with use of the new Grid (from v. 7.2), and I've got this to work locally on my developer server, but now only with use of inline style CSS to specify the location of modal location in the text inserted before the RTE. Now I have to specify padding and margin, and since there really are a support for macro in RTE, I want to test this solution as an alternative.

    But I will test your proposal too ..

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Dec 08, 2015 @ 18:51
    Søren Kottal
    0

    Because it's too cumbersome to work with specific markup, and placement of macros in the rich text editor. You should use the benefit of the grid, but create your own controls for the different parts of content.

  • Tom Engan 430 posts 1173 karma points
    Dec 09, 2015 @ 15:10
    Tom Engan
    0

    I agree, so do you know a jQuery/JavaScript-method or other way to insert this modal widget

    enter image description here

    somewhere where my marker is placed into this text?

    enter image description here

  • Tom Engan 430 posts 1173 karma points
    Dec 10, 2015 @ 16:45
    Tom Engan
    0

    Somebody got an idea how to put a partial content (here a modal made with LeBlender) into Rich text editor?

  • Søren Kottal 712 posts 4570 karma points MVP 6x c-trib
    Dec 10, 2015 @ 19:00
    Søren Kottal
    0

    You can do that with a macro. But as I told you earlier, it is going to be a pain in the ... for the editor to work with.

Please Sign in or register to post replies

Write your reply to:

Draft