Set default editor to codemirror in global configuration.
Open com_content and start creating an article. See, that there are no errors in web console.
Open the file
administrator/components/com_content/forms/article.xml
and add the text
<field
name="articletext2"
type="editor"
label="COM_CONTENT_FIELD_ARTICLETEXT_LABEL"
filter="JComponentHelper::filterText"
buttons="true"
/>
after the field with the name articletext
/administrator/components/com_content/tmpl/article/edit.php
and add the text
<?php echo $this->form->getInput('articletext2'); ?>
after the text
<?php echo $this->form->getInput('articletext'); ?>
Again open com_content and start creating an article. See an error in web console:
/media/vendor/codemirror/mode/text/html/text/html.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Write the text "first editor" into the first editor and the text "second editor" into the second editor.
Make sure, that the Cursur is in the first editor and click F10
to open full screen editing. You now expect the first editor to open in full screen mode. But it opens the second editor.
Labels |
Added:
?
|
Cool, thanks. I'll check it out.
Status | New | ⇒ | Information Required |
Category | ⇒ | Plugins |
@dgrammatiko Thanks :) I take a look on this.
@dgrammatiko I tested this. Now, error from the console is gone and all bugs are fixed. :) Thank you very much.
But, I have one question is this possible to make a fullscreen of an editor which is readonly: true
?
@franz-wohlkoenig
Yes, #18519 describes one point (I did not mention the outputs erratic string) of this issue.
About the xtd buttons: I’ve observed also the problem and the solution should be similar to what we’ve done in tinymce (eg the modal ids need to be unique for each instance of the editor), probably this needs to be patched in the staging repo and the 4 branch as well.
About the readonly: I don’t see any problem with that although I haven’t tested this case
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/20679
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-07 12:43:01 |
Closed_By | ⇒ | franz-wohlkoenig |
@franz-wohlkoenig I made a mistake this morning. The issue #18519 is not solved with the PR to this issue. Can you please reopen this issue again?
Status | Closed | ⇒ | New |
Closed_Date | 2018-06-07 12:43:01 | ⇒ | |
Closed_By | joomla-cms-bot | ⇒ |
re-opened as requested
Status | New | ⇒ | Discussion |
Labels |
Added:
J4 Issue
|
By the way, this does not appear to be a problem in J3 but please let me know if I'm wrong about that.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-06-24 20:44:36 |
Closed_By | ⇒ | astridx |
@astridx here's the code to fix those bugs:
Please either you or the GSOC student do the PR for this...
@okonomiyaki3000 I'm not sure if codemirror's function keys are ok in the J3 branch. If you haven't already done this maybe you might want to back port this part: