Skip to content

Commit

Permalink
Add build files (auto-generated)
Browse files Browse the repository at this point in the history
Fixes #660
  • Loading branch information
ipeychev committed Jan 14, 2017
1 parent 3cf1c4c commit adc436d
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 81 deletions.
24 changes: 12 additions & 12 deletions api/classes/ButtonLinkEdit.html
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ <h3 class="name"><code>_clearLink</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l236"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:236</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l237"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:237</code></a>
</p>


Expand Down Expand Up @@ -448,7 +448,7 @@ <h3 class="name"><code>_focusLinkInput</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l250"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:250</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l253"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:253</code></a>
</p>


Expand Down Expand Up @@ -708,7 +708,7 @@ <h3 class="name"><code>_handleKeyDown</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l271"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:271</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l274"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:274</code></a>
</p>


Expand Down Expand Up @@ -766,7 +766,7 @@ <h3 class="name"><code>_handleLinkAutocompleteClick</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l331"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:331</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l334"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:334</code></a>
</p>


Expand Down Expand Up @@ -820,7 +820,7 @@ <h3 class="name"><code>_handleLinkHrefChange</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l300"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:300</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l303"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:303</code></a>
</p>


Expand Down Expand Up @@ -874,7 +874,7 @@ <h3 class="name"><code>_handleLinkTargetChange</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l315"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:315</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l318"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:318</code></a>
</p>


Expand Down Expand Up @@ -1008,7 +1008,7 @@ <h3 class="name"><code>_isValidState</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l347"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:347</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l350"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:350</code></a>
</p>


Expand Down Expand Up @@ -1135,7 +1135,7 @@ <h3 class="name"><code>_removeLink</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l366"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:366</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l369"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:369</code></a>
</p>


Expand Down Expand Up @@ -1166,7 +1166,7 @@ <h3 class="name"><code>_setAutocompleteState</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l389"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:389</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l392"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:392</code></a>
</p>


Expand Down Expand Up @@ -1197,7 +1197,7 @@ <h3 class="name"><code>_updateLink</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l401"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:401</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l404"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:404</code></a>
</p>


Expand Down Expand Up @@ -1405,7 +1405,7 @@ <h3 class="name"><code>getInitialState</code></h3>
WidgetDropdown
</a>
but overwritten in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l139"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:139</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l132"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:132</code></a>
</p>


Expand Down Expand Up @@ -1696,7 +1696,7 @@ <h3 class="name"><code>render</code></h3>
<div class="meta">
<p>
Defined in
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l162"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:162</code></a>
<a href="../files/src_ui_react_src_components_buttons_button-link-edit.jsx.html#l155"><code>src&#x2F;ui&#x2F;react&#x2F;src&#x2F;components&#x2F;buttons&#x2F;button-link-edit.jsx:155</code></a>
</p>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,20 +295,13 @@ <h1><small>File</small> <code>src/ui/react/src/components/buttons/button-link-ed
* @return {Object} The default properties.
*/
getDefaultProps: function() {
var inputProps = {};

if (!CKEDITOR.env.ie &amp;&amp; AlloyEditor.Strings) {
inputProps.placeholder = AlloyEditor.Strings.editLink;
}

return {
appendProtocol: true,
autocompleteUrl: &#x27;&#x27;,
circular: true,
customIndexStart: true,
defaultLinkTarget: &#x27;&#x27;,
descendants: &#x27;.ae-toolbar-element&#x27;,
inputProps: inputProps,
keys: {
dismiss: [27],
dismissNext: [39],
Expand Down Expand Up @@ -350,10 +343,6 @@ <h1><small>File</small> <code>src/ui/react/src/components/buttons/button-link-ed
* @return {Object} The content which should be rendered.
*/
render: function() {
var clearLinkStyle = {
opacity: this.state.linkHref ? 1 : 0
};

var targetSelector = {
allowedTargets: this.props.allowedTargets,
editor: this.props.editor,
Expand Down Expand Up @@ -397,6 +386,18 @@ <h1><small>File</small> <code>src/ui/react/src/components/buttons/button-link-ed
targetButtonEdit = &lt;AlloyEditor.ButtonLinkTargetEdit {...targetSelector} /&gt;;
}

var buttonClearLink;

if (this.state.linkHref) {
buttonClearLink = &lt;button aria-label={AlloyEditor.Strings.clearInput} className=&quot;ae-button ae-icon-remove&quot; onClick={this._clearLink} title={AlloyEditor.Strings.clear}&gt;&lt;/button&gt;
}

var placeholderProp = {};

if (!CKEDITOR.env.ie &amp;&amp; AlloyEditor.Strings) {
placeholderProp.placeholder = AlloyEditor.Strings.editLink;
}

return (
&lt;div className=&quot;ae-container-edit-link&quot;&gt;
&lt;button aria-label={AlloyEditor.Strings.removeLink} className=&quot;ae-button&quot; disabled={!this.state.element} onClick={this._removeLink} title={AlloyEditor.Strings.remove}&gt;
Expand All @@ -405,10 +406,10 @@ <h1><small>File</small> <code>src/ui/react/src/components/buttons/button-link-ed
&lt;div className=&quot;ae-container-input xxl&quot;&gt;
{targetButtonEdit}
&lt;div className=&quot;ae-container-input flexible&quot;&gt;
&lt;input className=&quot;ae-input&quot; onChange={this._handleLinkHrefChange} onKeyDown={this._handleKeyDown} ref=&quot;linkInput&quot; type=&quot;text&quot; value={this.state.linkHref} {...this.props.inputProps}&gt;&lt;/input&gt;
&lt;input className=&quot;ae-input&quot; onChange={this._handleLinkHrefChange} onKeyDown={this._handleKeyDown} { ...placeholderProp } ref=&quot;linkInput&quot; type=&quot;text&quot; value={this.state.linkHref}&gt;&lt;/input&gt;
{autocompleteDropdown}
&lt;/div&gt;
&lt;button aria-label={AlloyEditor.Strings.clearInput} className=&quot;ae-button ae-icon-remove&quot; onClick={this._clearLink} style={clearLinkStyle} title={AlloyEditor.Strings.clear}&gt;&lt;/button&gt;
{buttonClearLink}
&lt;/div&gt;
&lt;button aria-label={AlloyEditor.Strings.confirm} className=&quot;ae-button&quot; disabled={!this._isValidState()} onClick={this._updateLink} title={AlloyEditor.Strings.confirm}&gt;
&lt;span className=&quot;ae-icon-ok&quot;&gt;&lt;/span&gt;
Expand All @@ -429,6 +430,8 @@ <h1><small>File</small> <code>src/ui/react/src/components/buttons/button-link-ed
this.setState({
linkHref: &#x27;&#x27;
});

this._focusLinkInput();
},

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/alloy-editor/alloy-editor-all-min.js

Large diffs are not rendered by default.

Loading

0 comments on commit adc436d

Please sign in to comment.