Support » Plugin: Fontsampler » Use a text area for change text of multiples font sampler blocks in same time

  • Resolved samuelgadea

    (@samuelgadea)


    Hello Johannes,

    Do you have a trick for implement a function for change the text of multiples font sampler in same time compatible with your plugin?

    I would like use a text area that allows to edit the text in live of several text sampler in same time.

    Thanks you,
    Samuel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kontur

    (@kontur)

    Hey,

    something like this (untested) should probably do what you want:

    `jQuery(function ($) {
    $(“.current-font”).on(“keyup”, function () {
    $(“.current-font”).not($(this)).html($(this).html())
    })
    });

    So you want to react to the event on the actual tester element that has contenteditable, then select all testers on the page (except this one that is already being typed in), and set their content to the current tester content.

    Let me know if that gets you to the right direction 😉

    J

    Plugin Author kontur

    (@kontur)

    I’ll mark this as resolved unless more questions surface.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.