View Javadoc
1   /**
2    * CKEditorTextField.java (CKEditor)
3    *
4    * Copyright 2017 Vaadin Ltd, Sami Viitanen <sami.viitanen@vaadin.org>
5    *
6    * Based on CKEditor from Yozons, Inc, Copyright (C) 2010-2016 Yozons, Inc.
7    *
8    * Licensed under the Apache License, Version 2.0 (the "License");
9    * you may not use this file except in compliance with the License.
10   * You may obtain a copy of the License at
11   *
12   * http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing, software
15   * distributed under the License is distributed on an "AS IS" BASIS,
16   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   * See the License for the specific language governing permissions and
18   * limitations under the License.
19   */
20  package org.vaadin.alump.ckeditor;
21  
22  import com.vaadin.annotations.JavaScript;
23  
24  /**
25   * Example version of CKEditorTextField that loads ckeditor js-library from ckeditor.com. Remember that you need to
26   * have suitable license to use CKEditor. http://ckeditor.com/pricing
27   */
28  @JavaScript("vaadin://js/ckeditor/ckeditor.js")
29  @JavaScript("vaadin-save-plugin.js")
30  public class CKEditorTextField extends AbstractCKEditorTextField {
31  
32      public CKEditorTextField() {
33          super();
34      }
35  
36      public CKEditorTextField(CKEditorConfig config) {
37          super(config);
38      }
39  
40      public CKEditorTextField(CKEditorConfig config, String initialValue) {
41          super(config, initialValue);
42      }
43  }