From 63832b57c9010aca7e2f8bf305c2d672b34c4e9a Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sun, 6 Sep 2026 07:37:14 +0330 Subject: [PATCH] editor improvements --- GanjooRazor/Areas/User/Pages/Editor.cshtml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/GanjooRazor/Areas/User/Pages/Editor.cshtml b/GanjooRazor/Areas/User/Pages/Editor.cshtml index 7140e15e..ce37061b 100644 --- a/GanjooRazor/Areas/User/Pages/Editor.cshtml +++ b/GanjooRazor/Areas/User/Pages/Editor.cshtml @@ -24,6 +24,19 @@ upToast('انجام شد.'); } + function tarkib3VersePositions(verseCount) { + var index = 1; + for (var i = 1; i <= verseCount; i++) { + var newVersePosition = 'versepostion-' + i.toString(); + document.getElementById(newVersePosition).value = index == 1 ? 'Right' : index == 2 ? 'Left' : 'CenteredVerse1'; + index++; + if(index == 4){ + index = 1; + } + } + upToast('انجام شد.'); + } + function tarkib4VersePositions(verseCount) { var index = 1; for (var i = 1; i <= verseCount; i++) { @@ -1431,6 +1444,7 @@ else

چینش مصرع‌ها

🔄 پیش‌فرض + 3️⃣ مثلثی 4️⃣ مربعی 5️⃣ مخمسی 6️⃣ مسدسی