@@ -184,15 +184,15 @@ class SaveForm extends Form
184184
185185 public function __construct ( Post $ post , $ tags = array () )
186186 {
187- parent ::__construct ('save ' );
187+ parent ::__construct ('save ' , PostService:: PLUGIN_KEY );
188188
189189 $ this ->service = PostService::getInstance ();
190190
191191 $ this ->post = $ post ;
192192
193193 $ this ->setMethod ('post ' );
194194
195- $ titleTextField = new TextField ('title ' );
195+ $ titleTextField = new TextField ('title ' , PostService:: PLUGIN_KEY );
196196
197197 $ this ->addElement ($ titleTextField ->setLabel (OW ::getLanguage ()->text ('blogs ' , 'save_form_lbl_title ' ))->setValue ($ post ->getTitle ())->setRequired (true ));
198198
@@ -210,14 +210,14 @@ public function __construct( Post $post, $tags = array() )
210210 BOL_TextFormatService::WS_BTN_VIDEO
211211 );
212212
213- $ postTextArea = new WysiwygTextarea ('post ' , $ buttons );
213+ $ postTextArea = new WysiwygTextarea ('post ' , PostService:: PLUGIN_KEY , $ buttons );
214214 $ postTextArea ->setSize (WysiwygTextarea::SIZE_L );
215215 $ postTextArea ->setLabel (OW ::getLanguage ()->text ('blogs ' , 'save_form_lbl_post ' ));
216216 $ postTextArea ->setValue ($ post ->getPost ());
217217 $ postTextArea ->setRequired (true );
218218 $ this ->addElement ($ postTextArea );
219219
220- $ draftSubmit = new Submit ('draft ' );
220+ $ draftSubmit = new Submit ('draft ' , PostService:: PLUGIN_KEY );
221221 $ draftSubmit ->addAttribute ('onclick ' , "$('#save_post_command').attr('value', 'draft'); " );
222222
223223 if ( $ post ->getId () != null && !$ post ->isDraft () )
@@ -240,7 +240,7 @@ public function __construct( Post $post, $tags = array() )
240240 $ text = OW ::getLanguage ()->text ('blogs ' , 'save_publish ' );
241241 }
242242
243- $ publishSubmit = new Submit ('publish ' );
243+ $ publishSubmit = new Submit ('publish ' , PostService:: PLUGIN_KEY );
244244 $ publishSubmit ->addAttribute ('onclick ' , "$('#save_post_command').attr('value', 'publish'); " );
245245
246246 $ this ->addElement ($ publishSubmit ->setValue ($ text ));
@@ -259,7 +259,7 @@ public function __construct( Post $post, $tags = array() )
259259 }
260260 }
261261
262- $ tf = new TagsInputField ('tf ' );
262+ $ tf = new TagsInputField ('tf ' , PostService:: PLUGIN_KEY );
263263 $ tf ->setLabel (OW ::getLanguage ()->text ('blogs ' , 'tags_field_label ' ));
264264 $ tf ->setValue ($ tags );
265265
0 commit comments