fixes null check on linkpicker changes with anchors, fixes ng-true-value constant value

This commit is contained in:
Shannon
2018-07-19 22:35:05 +10:00
parent 09dd5cf879
commit 5fdaa451b8
2 changed files with 8 additions and 3 deletions

View File

@@ -761,9 +761,14 @@ function tinyMceService($log, imageHelper, $http, $timeout, macroResource, macro
* @param {string} input the string to parse
*/
getAnchorNames: function (input) {
var anchorPattern = /<a id=\\"(.*?)\\">/gi;
var anchors = [];
if (!input) {
return anchors;
}
var anchorPattern = /<a id=\\"(.*?)\\">/gi;
var matches = input.match(anchorPattern);
var anchors = [];
if (matches) {
anchors = matches.map(function (v) {

View File

@@ -34,7 +34,7 @@
<label class="checkbox no-indent">
<input type="checkbox"
ng-model="model.target.target"
ng-true-value="_blank"
ng-true-value="'_blank'"
ng-false-value="" /> <localize key="defaultdialogs_openInNewWindow">Opens the linked document in a new window or tab</localize>
</label>
</umb-control-group>