2016-12-21 2 views

답변

1

I는 사용자 지정 wp_editor()

그래서 사용자 정의 JQuery

먼저 편집기에 추가 클래스 (들)을 추가하여 text-area 필드에 속성 추가해야하는 속성을 추가하는 옵션이없는 생각 text-area

$settings = array(
    ...... 
    'editor_class' => 'customclass_for_addattr', 
    ...... 
); 
wp_editor($content, $editor_id, $settings ); 

wp_editor() 함수가 jQuery 코드를 추가 한 후. jQuery를 사용하여 text-area에 사용자 정의 속성을 추가하십시오. atrr 메소드