In a discussion titled ‘Custom composer fullscreen issue’ under the Dev category, saish reports that customizations added via the composer-fields connector disappear in fullscreen mode, likely because the connector isn’t available in that template. Attempts to use pluginOutlet with composeState and lazyHash failed. NateDhaliwal suggests using api.onToolbarCreate() for toolbar buttons, but saish clarifies they’re adding a full custom form (inputs, selects, file uploads) and hiding the default textarea. NateDhaliwal then proposes the before-composer-fields connector, which reportedly persists in fullscreen. saish acknowledges this might work but notes the drawback: they’d need to manually rebuild the entire composer UI, including the category selector and other default components, which currently rely on built-in functionality. The issue centers on maintaining custom form elements across composer modes without duplicating core UI logic.
יצרתי מלחין מותאם אישית באמצעות מחבר composer-fields, אשר פועל כמצופה בתצוגת המלחין הסטנדרטית (עוגנת). עם זאת, בעת מעבר למצב מסך מלא, ההתאמות האישיות אינן מופיעות. אני מאמין שזה נובע מכך שהמחבר שהשתמשתי בו אינו קיים בתבנית המלחין במסך מלא.
כדי לטפל בכך, ניסיתי להשתמש ב-pluginOutlet בתוך בלוק מותנה המבוסס על composeState, תוך העברת composer.model דרך outletArgs עם lazyHash. למרבה הצער, גישה זו לא עבדה. ניסיתי גם מחברים שונים, אך אף אחד מהם לא הניב את התוצאות הרצויות.
אם למישהו יש הצעות או שיטות עבודה מומלצות לפתרון בעיה זו, אשמח מאוד לקבל הדרכה.
אני מוסיף טופס מותאם אישית בתוך מחבר composer-fields, הכולל אלמנטים כגון שדות קלט, אזורי טקסט, אפשרויות בחירה והעלאות קבצים. כדי לאפשר זאת, הסתרתי את d-textarea-wrapper ברירת המחדל.
כן, אני מאמין שניגש זה יעבוד. עם זאת, האתגר הוא שאצטרך ליצור מחדש את כל המלחין. כרגע, אני מסתמך על בורר הקטגוריות המוגדר כברירת מחדל, מה שאומר שאצטרך גם להוסיף אותו ידנית בתוך מחבר ה-before-composer-fields, יחד עם שאר האלמנטים הנדרשים.