Converting the textarea fields to editor fields, in the rest of JCB where code is being edited. gh-305

This commit is contained in:
2018-06-25 22:54:26 +02:00
parent fd93feac42
commit 1312e45d4a
22 changed files with 580 additions and 440 deletions

View File

@@ -356,30 +356,39 @@
required="false"
button="true"
/>
<!-- Php_jview Field. Type: Textarea. (joomla) -->
<!-- Php_jview Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="php_jview"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DESCRIPTION"
class="text_area span12"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_HINT"
required="true"
validate="code"
/>
<!-- Default Field. Type: Textarea. (joomla) -->
<!-- Default Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="default"
label="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL"
rows="20"
description="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_DESCRIPTION"
width="100%"
height="500px"
cols="15"
class="text_area span12"
rows="30"
buttons="no"
syntax="html"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_HINT"
required="true"
validate="code"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
@@ -387,18 +396,22 @@
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Php_view Field. Type: Textarea. (joomla) -->
<!-- Php_view Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="php_view"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_DESCRIPTION"
class="text_area span12"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_HINT"
required="true"
validate="code"
/>
<!-- Add_javascript_file Field. Type: Radio. (joomla) -->
<field
@@ -415,18 +428,22 @@
<option value="0">
COM_COMPONENTBUILDER_SITE_VIEW_NO</option>
</field>
<!-- Php_jview_display Field. Type: Textarea. (joomla) -->
<!-- Php_jview_display Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="php_jview_display"
label="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="php"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true"
validate="code"
/>
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<field
@@ -450,18 +467,22 @@
/>
<!-- Note_libraries_selection Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_libraries_selection" label="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_NOTE_LIBRARIES_SELECTION_DESCRIPTION" heading="h4" class="alert alert-info note_libraries_selection" />
<!-- Javascript_file Field. Type: Textarea. (joomla) -->
<!-- Javascript_file Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="javascript_file"
label="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION"
class="text_area span12"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_HINT"
required="true"
validate="code"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
@@ -471,18 +492,22 @@
description="COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
/>
<!-- Js_document Field. Type: Textarea. (joomla) -->
<!-- Js_document Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="js_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="javascript"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_HINT"
required="true"
validate="code"
/>
<!-- Main_get Field. Type: Maingets. (custom) -->
<field
@@ -494,18 +519,22 @@
required="true"
button="true"
/>
<!-- Css_document Field. Type: Textarea. (joomla) -->
<!-- Css_document Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="css_document"
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_DESCRIPTION"
class="text_area span12"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="css"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_HINT"
required="true"
validate="code"
/>
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
<field
@@ -516,18 +545,22 @@
multiple="false"
required="false"
/>
<!-- Css Field. Type: Textarea. (joomla) -->
<!-- Css Field. Type: Editor. (joomla) -->
<field
type="textarea"
type="editor"
name="css"
label="COM_COMPONENTBUILDER_SITE_VIEW_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_SITE_VIEW_CSS_DESCRIPTION"
class="text_area span12"
width="100%"
height="450px"
cols="15"
rows="30"
buttons="no"
syntax="css"
editor="codemirror|none"
filter="raw"
hint="COM_COMPONENTBUILDER_SITE_VIEW_CSS_HINT"
required="true"
validate="code"
/>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />