Cant get tinymce to display
Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though
ive put this in the head of my index file
<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>
then in my info page ive put
<textarea id="infotextarea">Your content here.
</textarea>
can anyone explain why its not displaying
html css typescript tinymce angular5
add a comment |
Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though
ive put this in the head of my index file
<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>
then in my info page ive put
<textarea id="infotextarea">Your content here.
</textarea>
can anyone explain why its not displaying
html css typescript tinymce angular5
Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.
– Michael Fromin
Nov 15 '18 at 21:30
add a comment |
Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though
ive put this in the head of my index file
<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>
then in my info page ive put
<textarea id="infotextarea">Your content here.
</textarea>
can anyone explain why its not displaying
html css typescript tinymce angular5
Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though
ive put this in the head of my index file
<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>
then in my info page ive put
<textarea id="infotextarea">Your content here.
</textarea>
can anyone explain why its not displaying
html css typescript tinymce angular5
html css typescript tinymce angular5
asked Nov 15 '18 at 15:17
Aidan WardAidan Ward
327
327
Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.
– Michael Fromin
Nov 15 '18 at 21:30
add a comment |
Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.
– Michael Fromin
Nov 15 '18 at 21:30
Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.
– Michael Fromin
Nov 15 '18 at 21:30
Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.
– Michael Fromin
Nov 15 '18 at 21:30
add a comment |
3 Answers
3
active
oldest
votes
It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea
in the DOM.
Try debugging your code on the following line:
<script>
debugger;
tinymce.init({selector:'infotextarea'});
</script>
When the web's execution has stopped on that line, in the development console of your browser type the following:
$('#infotextarea').length
If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.
thanks buddy ive got the text area to display but its only displaying as a normal text area
– Aidan Ward
Nov 15 '18 at 15:42
add a comment |
If you want to target a <textarea>
by ID you need to use a valid CSS selector.
selector: "#infotextarea"
(note the #
at the beginning of the string)
I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient
add a comment |
Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
I must have a mistake somewhere that i or my team could not find with tinymce
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53322548%2fcant-get-tinymce-to-display%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea
in the DOM.
Try debugging your code on the following line:
<script>
debugger;
tinymce.init({selector:'infotextarea'});
</script>
When the web's execution has stopped on that line, in the development console of your browser type the following:
$('#infotextarea').length
If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.
thanks buddy ive got the text area to display but its only displaying as a normal text area
– Aidan Ward
Nov 15 '18 at 15:42
add a comment |
It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea
in the DOM.
Try debugging your code on the following line:
<script>
debugger;
tinymce.init({selector:'infotextarea'});
</script>
When the web's execution has stopped on that line, in the development console of your browser type the following:
$('#infotextarea').length
If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.
thanks buddy ive got the text area to display but its only displaying as a normal text area
– Aidan Ward
Nov 15 '18 at 15:42
add a comment |
It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea
in the DOM.
Try debugging your code on the following line:
<script>
debugger;
tinymce.init({selector:'infotextarea'});
</script>
When the web's execution has stopped on that line, in the development console of your browser type the following:
$('#infotextarea').length
If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.
It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea
in the DOM.
Try debugging your code on the following line:
<script>
debugger;
tinymce.init({selector:'infotextarea'});
</script>
When the web's execution has stopped on that line, in the development console of your browser type the following:
$('#infotextarea').length
If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.
answered Nov 15 '18 at 15:35
javimovijavimovi
318110
318110
thanks buddy ive got the text area to display but its only displaying as a normal text area
– Aidan Ward
Nov 15 '18 at 15:42
add a comment |
thanks buddy ive got the text area to display but its only displaying as a normal text area
– Aidan Ward
Nov 15 '18 at 15:42
thanks buddy ive got the text area to display but its only displaying as a normal text area
– Aidan Ward
Nov 15 '18 at 15:42
thanks buddy ive got the text area to display but its only displaying as a normal text area
– Aidan Ward
Nov 15 '18 at 15:42
add a comment |
If you want to target a <textarea>
by ID you need to use a valid CSS selector.
selector: "#infotextarea"
(note the #
at the beginning of the string)
I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient
add a comment |
If you want to target a <textarea>
by ID you need to use a valid CSS selector.
selector: "#infotextarea"
(note the #
at the beginning of the string)
I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient
add a comment |
If you want to target a <textarea>
by ID you need to use a valid CSS selector.
selector: "#infotextarea"
(note the #
at the beginning of the string)
I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient
If you want to target a <textarea>
by ID you need to use a valid CSS selector.
selector: "#infotextarea"
(note the #
at the beginning of the string)
I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient
answered Nov 16 '18 at 3:44
Michael FrominMichael Fromin
6,8472820
6,8472820
add a comment |
add a comment |
Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
I must have a mistake somewhere that i or my team could not find with tinymce
add a comment |
Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
I must have a mistake somewhere that i or my team could not find with tinymce
add a comment |
Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
I must have a mistake somewhere that i or my team could not find with tinymce
Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
I must have a mistake somewhere that i or my team could not find with tinymce
answered Nov 16 '18 at 16:28
Aidan WardAidan Ward
327
327
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53322548%2fcant-get-tinymce-to-display%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Perhaps you can make a JS Fiddle or CodePen that shows the issue? Without running code it will be hard for folks to know why this is failing. I will note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be all you need to do.
– Michael Fromin
Nov 15 '18 at 21:30