• 26-01-2023, 23:54:16
    #1
    Merhaba arkadaşlar. Textarea nın içine klavyeden bir yazı girdiğimde sorun yok ama mesela lorem sayfasından bir yazı aldığımda ve textarea ya girdiğimde form kaydetmiyor. Yani kopyaladığım metni, textarea nın içine yapıştırdığımda, yazıya biçimlendirme uygulaması lazım galiba. Ne yapmalıyım sizce?
  • 26-01-2023, 23:57:56
    #2
    Üyeliği durduruldu
    Ne hatası alıyorsunuz tam olarak? Bir uyarı vs var mı?
    Textarea düz HTML ile kendi başına sıkıntı çıkarmaz. Muhtemelen JS ile bir validasyona takılıyor. Kodları paylaşmanız mümkün mü?
  • 26-01-2023, 23:58:41
    #3
    Merhaba,
    Kod yapısını verirsen yardımcı olabilirim.
  • 27-01-2023, 00:03:50
    #4
    <div class="mt-1 pt-1 ekle">
          <textarea id="kodekle" onmouseover="focusla()" onmouseout="focustancik()" class="text-center textarea_duzenle" style="width:210px; height:35px;" name="ozellik[]" placeholder="Özellik Giriniz" required>
    </textarea>
     </div>
  • 27-01-2023, 10:33:20
    #5
    Üyeliği durduruldu
    CodingStudent adlı üyeden alıntı: mesajı görüntüle
    <div class="mt-1 pt-1 ekle">
          <textarea id="kodekle" onmouseover="focusla()" onmouseout="focustancik()" class="text-center textarea_duzenle" style="width:210px; height:35px;" name="ozellik[]" placeholder="Özellik Giriniz" required>
    </textarea>
     </div>

    Bunu tetikleyen Js fonksiyonu nedir?
  • 28-01-2023, 01:40:00
    #6
    Javascript kodu o kadar önemli değil. Zaten yorum satırı yapmıştım. Yine de koyayım. Sorunu size en iyi şekilde tam olarak örneğini koyarak anlatayım. Aşağıdaki resme bakın.
    https://www.hizliresim.com/c7df036
    Bu benim textarea nın da olduğu form. Textarea alanı "özellik giriniz" yazan yer. Şimdi bu textarea'ya "lorem ipsum"un aşağıdaki yazısını kopyalayıp textarea ya yapıştırdığımda, veritabanına kayıt yapamıyorum.

    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    Ama, aynı sitedeki şu yazıyı kopyalayıp textarea ya yapıştırdığımda ise kayıt yapabiliyorum.

    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

        // function focusla() {
        //     document.getElementById("kodekle").style.height = "250px";
        // }
        // function focustancik() {
        //     document.getElementById("kodekle").style.height = "35px";
        // }
  • 28-01-2023, 23:09:37
    #7
    Cevap yok mu arkadaşlar.