redactor2
4.2.1
Area teks dengan kelas redactorEditor2-%profileName%
secara otomatis dikonversi dari kolom input teks normal ke editor WYSIWYG, misalnya. B. <textarea class="redactorEditor2-full"></textarea>
, di area teks yForm di bidang "Atribut Individu": {"class":"redactorEditor2-full"}
Profil berbeda dengan pengaturan konfigurasi berbeda untuk editor Redactor dapat dibuat di backend.
Ada opsi untuk memberi editor gaya CSS Anda sendiri. Yang harus Anda lakukan adalah membuat file bernama skin.css
di folder /assets/addons/ redactor2
.
Masukan modul:
< 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 >
Keluaran modul:
REX_VALUE [id= " 1 " output= " html " ]
Buat profil melalui modul atau add-on:
<?php
if (! redactor2 :: profileExists ( ' simple ' )) {
redactor2 :: insertProfile ( ' simple ' , $ description = '' , $ minheight = ' 300 ' , $ maxheight = ' 800 ' , $ urltype = ' relative ' , $ characterlimit = 0 , $ toolbarfixed = 0 , $ shortcuts = 0 , $ linkify = 1 , $ redactorPlugins = '' );
}
?>