You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,15 @@
6
6
* The `code-input` element should be easy to use with all popular syntax-highlighting libraries.
7
7
* Any modifications of `code-input` that would be useful for the open-source community but are not core to this functionality should be available as optional plugins in the `plugins` folder. Here's where most feature contributions will go.
8
8
9
-
To keep this community productive and enjoyable, please [don't break the code of conduct here](https://github.com/WebCoder49/code-input/blob/main/CODE_OF_CONDUCT.md).
9
+
We will generally *not* consider the following contributions:
10
+
* Excess functionality and/or complexity in the main code-input files - these types of contributions should go in the plugin folder instead.
11
+
* Issues that have been closed as not planned in the past (you can search the issue list to check), unless you bring a change that overcomes the reason they were not planned.
12
+
13
+
This said, if you're not sure whether your change will be accepted, please ask in an issue.
14
+
15
+
---
16
+
17
+
To keep this community productive and enjoyable, please [don't break our code of conduct](https://github.com/WebCoder49/code-input/blob/main/CODE_OF_CONDUCT.md).
Copy file name to clipboardExpand all lines: code-input.js
+1-54Lines changed: 1 addition & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -108,7 +108,6 @@ var codeInput = {
108
108
if(!(typeoftemplate.includeCodeInputInHighlightFunc=="boolean"||template.includeCodeInputInHighlightFuncinstanceofBoolean))throwTypeError(`code-input: Template for "${templateName}" invalid, because the includeCodeInputInHighlightFunc value provided is not a true or false; it is "${template.includeCodeInputInHighlightFunc}". Please make sure you use one of the constructors in codeInput.templates, and that you provide the correct arguments.`);
109
109
if(!(typeoftemplate.preElementStyled=="boolean"||template.preElementStyledinstanceofBoolean))throwTypeError(`code-input: Template for "${templateName}" invalid, because the preElementStyled value provided is not a true or false; it is "${template.preElementStyled}". Please make sure you use one of the constructors in codeInput.templates, and that you provide the correct arguments.`);
110
110
if(!(typeoftemplate.isCode=="boolean"||template.isCodeinstanceofBoolean))throwTypeError(`code-input: Template for "${templateName}" invalid, because the isCode value provided is not a true or false; it is "${template.isCode}". Please make sure you use one of the constructors in codeInput.templates, and that you provide the correct arguments.`);
111
-
if(!(typeoftemplate.autoDisableDuplicateSearching=="boolean"||template.autoDisableDuplicateSearchinginstanceofBoolean))throwTypeError(`code-input: Template for "${templateName}" invalid, because the autoDisableDuplicateSearching value provided is not a true or false; it is "${template.autoDisableDuplicateSearching}". Please make sure you use one of the constructors in codeInput.templates, and that you provide the correct arguments.`);
112
111
if(!Array.isArray(template.plugins))throwTypeError(`code-input: Template for "${templateName}" invalid, because the plugin array provided is not an array; it is "${template.plugins}". Please make sure you use one of the constructors in codeInput.templates, and that you provide the correct arguments.`);
113
112
114
113
template.plugins.forEach((plugin,i)=>{
@@ -166,18 +165,11 @@ var codeInput = {
166
165
* @param {codeInput.Plugin[]} plugins - An array of plugin objects to add extra features - see `codeInput.Plugin`
0 commit comments