redactor2
4.2.1
พื้นที่ข้อความที่มีคลาส redactorEditor2-%profileName%
จะถูกแปลงโดยอัตโนมัติจากช่องป้อนข้อความปกติไปเป็นตัวแก้ไขแบบ WYSIWYG เช่น B. <textarea class="redactorEditor2-full"></textarea>
ในพื้นที่ข้อความ yForm ในฟิลด์ "Individual Attributes": {"class":"redactorEditor2-full"}
โปรไฟล์ที่แตกต่างกันซึ่งมีการตั้งค่าการกำหนดค่าที่แตกต่างกันสำหรับเครื่องมือแก้ไข Redactor สามารถสร้างได้ในแบ็กเอนด์
มีตัวเลือกในการมอบสไตล์ CSS ของคุณเองให้กับตัวแก้ไข สิ่งที่คุณต้องทำคือสร้างไฟล์ชื่อ skin.css
ในโฟลเดอร์ /assets/addons/ redactor2
อินพุตโมดูล:
< fieldset class =" form-horizontal " >
< div class =" form-group " >
< label class =" col-sm-2 control-label " for =" value-1 " > VALUE 1 </ label >
< div class =" col-sm-10 " >
< textarea class =" form-control redactorEditor2-full " id =" value-1 " name =" REX_INPUT_VALUE[1] " > REX_VALUE[1] </ textarea >
</ div >
</ div >
</ fieldset >
เอาท์พุทโมดูล:
REX_VALUE [id= " 1 " output= " html " ]
สร้างโปรไฟล์ผ่านโมดูลหรือส่วนเสริม:
<?php
if (! redactor2 :: profileExists ( ' simple ' )) {
redactor2 :: insertProfile ( ' simple ' , $ description = '' , $ minheight = ' 300 ' , $ maxheight = ' 800 ' , $ urltype = ' relative ' , $ characterlimit = 0 , $ toolbarfixed = 0 , $ shortcuts = 0 , $ linkify = 1 , $ redactorPlugins = '' );
}
?>